Error State Directory /var/lib/samba
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [SOLVED] Samba sharing error - Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 7 of 7 Thread: Samba sharing error - Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 4th, 2010 #1 marsters256 View Profile View Forum Posts Private Message Spilled the Beans Join Date Mar 2010 Beans 12 Samba sharing error - [FIXED] I can't share my /var/www folder on this machine - it worked fine on my Desktop, it just asked me to install the samba windows something. What's going wrong with this. I have searched for fixes to this issue with no luck. Here is the error I get after right clicking and going to sharing and trying to share the folder... Code: Samba's testparm returned error 1: Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[printers]" Processing section "[print$]" Loaded services file OK. WARNING: state directory /var/lib/samba should have permissions 0755 for browsing to work WARNING: cache directory /var/cache/samba should have permissions 0755 for browsing to work have tried Code: sudo chmod 0755 /var/lib/samba sudo chmod 0755 /var/cache/samba But no luck... Please help Last edited by marsters256; September 4th, 2010 at 09:52 PM. Reason: fixed Adv Reply September 4th, 2010 #2 marsters256 View Profile View Forum Posts Private Message Spilled the Beans Join Date Mar 2010 Beans 12 Re: Samba sharing error - Fixed it myself, thought I'd be nice and let you all know how I did it as per Ubuntu spirit. Code: sudo chmod 777 /etc/samba/smb.conf sudo chmod 0755 /var/cache/samba sudo chmod 0755 /var/lib/samba added line Code: usershare owner only = false ## added by ben to global settings in /etc/samba/smb.conf file... If anyone knows why it didn't work straight away I'd love to know 'cas it worked on my desktop and I've updated ubuntu and restarted before I tried all this... Adv Reply September 5th, 2010 #3 dmizer V
Saturday 26 September 2009 10:56:32 Bob Williams wrote: > Hello Helmut, > > On Saturday 26 September 2009 10:17:00 Helmut Hullen wrote: > > Hallo, Bob, > > > > Du meintest am 26.09.09: > > > barrowhillfarm:~ # testparm /etc/samba/smb.conf > > > > > > ERROR: lock directory file:///var/lib/samba does not exist > > > ERROR: state directory file:///var/lib/samba does not exist > > > ERROR: cache directory file:///var/lib/samba does not exist > > > ERROR: pid https://ubuntuforums.org/showthread.php?t=1568081 directory file:///var/run/samba does not exist > > > > > > > > > Why are those lock, state, cache and pid directory files missing? I > > > can't believe I'm supposed to create them myself ;) The testparm > > > command was run as root, so it can't be a permissions problem. > > > > https://lists.samba.org/archive/samba/2009-September/150769.html What tells > > > > ls -ld /var/lib/samba > > ls -ld /var/run/samba > > barrowhillfarm:~ # ls -ld /var/lib/samba > drwxr-xr-x 8 root root 4096 Sep 24 11:01 /var/lib/samba > barrowhillfarm:~ # ls -ld /var/run/samba > drwxr-xr-x 2 root root 4096 Sep 24 11:01 /var/run/samba > barrowhillfarm:~ # > > Thanks, > > Bob > Well, I've made some progress by commenting out the following two lines [global] ; lock directory = file:///var/lib/samba ; pid directory = file:///var/lib/samba so I can now restart both daemons: barrowhillfarm:~ # rcnmb restart Shutting down Samba NMB daemon Warning: daemon not running. done Starting Samba NMB daemon done barrowhillfarm:~ # rcsmb restart Shutting down Samba SMB daemon Warning: daemon not running. done Starting Samba SMB daemon done but I still cannot add a user :( : barrowhillfarm:~ # smbpasswd -a bob Failed to open file:///etc/samba/secrets.tdb Failed to open file:///etc/samba/secrets.tdb PANIC (pid 27336): could not open secrets db BACKTRACE: 6 stack frames: #0 smbpasswd(log_stack_trace+0x1a) [0x7f384121bcda] #1 smbpasswd(smb_panic+0x1f) [0x7f384121bdaf] #2 smbpasswd(get_global_sam_sid+0x52f) [0x7f384114bd8f] #3 smbpasswd(main+0x4fc) [0x7f38410ef5ec] #4 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f383e93a586] #5 smbpass
♦ ♦ | Report Content as Inappropriate ♦ ♦ Broken samba Hi, I'm trying to setup Samba on my linux machine, running openSUSE 11.1 and KDE 4.3, so that I can share a folder with my wife's laptop http://samba.2283325.n4.nabble.com/Broken-samba-td2448440.html which is running Windows XP. The following makes me think my samba installation is seriously http://linuxforums.org.uk/index.php?topic=9471.5;wap2 broken, but I don't where to start looking to fix it... barrowhillfarm:~ # smbd restart Aborted (core dumped) barrowhillfarm:~ # smbpasswd -a hils Failed to open file:///etc/samba/secrets.tdb Failed to open file:///etc/samba/secrets.tdb PANIC (pid 28462): could not open secrets db BACKTRACE: 6 stack frames: #0 smbpasswd(log_stack_trace+0x1a) [0x7f19fbb0029a] #1 smbpasswd(smb_panic+0x1f) [0x7f19fbb0036f] #2 smbpasswd(get_global_sam_sid+0x547) [0x7f19fba6eb77] #3 smbpasswd(main+0x514) [0x7f19fba123f4] #4 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f19f924e586] error state #5 smbpasswd [0x7f19fba11ac9] Segmentation fault barrowhillfarm:~ # Any suggestions would be gratefully received :) Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba Adam Nielsen-2 Reply | Threaded Open error state directory this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Broken samba > The following makes me think my samba installation is seriously broken, but I > don't where to start looking to fix it... > > barrowhillfarm:~ # smbd restart > Aborted (core dumped) Possibly one of the libraries that Samba uses has been upgraded, and Samba is still accessing it as if it was the old version. Recompiling Samba should fix the problem, and is a good excuse to upgrade to the latest release while you're at it. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba Bugzilla from linux@barrowhillfarm.org.uk Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Broken samba Hi Adam, On Thursday 24 September 2009 02:56:42 Adam Nielsen wrote: > > The following makes me think my samba installation is seriously broken, > > but I don't where to start looking to fix it... > > > > barrowhillfarm:~ # smbd restart > > Aborted (core dumped) > > Possibly one of the libraries that Samba uses has been upgraded, and > Samba is still accessing it as if it was the old version. > > Reco
a member of the sambashare group ? .. see 3) here:http://linuxforums.org.uk/general-help-advice/networking-with-windows-pss/msg44831/#msg44831 Tramlink: Hi, have changed the computer name OK.I ran a test parm and got the following Error message.Error state Directory/var/lib/samba dose not existI am not a member of the samba groupAs it is a clean install I could start again by doing a reinstall. Mark Greaves (PCNetSpec): Make sure you ARE a member of the sambashare group... see here:http://linuxforums.org.uk/general-help-advice/networking-with-windows-pss/msg44831/#msg44831then log off and on again, or reboot... or run:--- Code: ---sudo service smbd restart--- End code ---Does the /var/lib/samba directory *actually* exist ? .. what is the output from:--- Code: ---ls -l /var/lib/samba--- End code ---What is the output from:--- Code: ---ps ax | grep nmbd--- End code ------ Quote from: Tramlink ---As it is a clean install I could start again by doing a reinstall.--- End quote ---A bit drastic at this point, but your call ;) Tramlink: Hi output you requested..usertwo@Mobiletwo ~ $ ls -l /var/lib/sambals: cannot access /var/lib/samba: No such file or directorusertwo@Mobiletwo ~ $ ps ax | grep nmbd2200 pts/1 S+ 0:00 grep --colour=auto nmbdI will join the group and give it a bit longer before doing a reinstall. Mark Greaves (PCNetSpec): Once you are a member of the samabashare group, and have rebooted .. if the /var/lib/samba directory still doesn't exist, try reinstalling samba:--- Code: ---sudo apt-get install --reinstall samba--- End code ---Then check you are still a member of sambashare, and that the /var/lib/samba directory exists. Navigation [0] Message Index [#] Next page [*] Previous page Go to full version