Samba no worky - could not access PID file for smbd

    • OMV 0.5

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Samba no worky - could not access PID file for smbd

      Hi All,

      I'm really hoping one of you lovely people will be able to help me out here. I've somehow managed to mess up my samba config so much that I cannot connect to any of my shares any more

      I'm a debian and Samba noob so you'll have to bear with me here.....

      I started following this post to join OMV to my Windows AD domain: phpbb.openmediavault.org/viewtopic.php?f=3&t=1493

      So, successfully configured Kerberos, winbind and ldap (with the plugin) etc and managed to join my domain with no problems.

      Once I'd joined I suddenly realised I could no longer connect to any of the shares which were working fine previously.

      I had saved all of my smb config before I started so reverted all of my changes thinking I'd somehow gone wrong joining the windows domain...... Still can't connect.

      The problem I have is that sometimes (not all of the time) smbd just refuses to start and when I try to get the status I get the following:

      Source Code

      1. root@NAS01:~# /etc/init.d/samba restart
      2. Stopping Samba daemons: nmbd smbd.
      3. Starting Samba daemons: nmbd smbd.
      4. root@NAS01:~# /etc/init.d/samba status
      5. nmbd is running.
      6. could not access PID file for smbd ... failed!


      A search for the PID file sometimes returns one, sometime not.

      When I run a testparm I get the following:

      Source Code

      1. root@NAS01:/var/log/samba# testparm
      2. Load smb config files from /etc/samba/smb.conf
      3. rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
      4. Processing section "[Acronis_Vault]"
      5. Processing section "[KEVTEST]"
      6. Processing section "[Backup]"
      7. Processing section "[homes]"
      8. Loaded services file OK.
      9. WARNING: You have some share names that are longer than 12 characters.
      10. These may not be accessible to some older clients.
      11. (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
      12. Server role: ROLE_STANDALONE
      Display All


      After a quick google I still don't know how to fix the rlimit_max issue, is this likely to be my problem?

      The weird thing is that sometimes Smbd just won't be running at all and there is nothing in either the log.nmbd or the log.smbd files even though debug is maxed out.

      When I do get the smbd running I get 2 instances:

      Source Code

      1. root@NAS01:~# ps ax | grep mbd
      2. 1299 ? Ss 0:00 /usr/sbin/nmbd -D
      3. 1330 ? Ss 0:00 /usr/sbin/smbd -D
      4. 1347 ? S 0:00 /usr/sbin/smbd -D
      5. 5876 pts/0 S+ 0:00 grep mbd


      Here is my current smb.conf file (written by the gui):

      Source Code

      1. #======================= Global Settings =======================
      2. [global]
      3. workgroup = DOMAIN
      4. server string = NAS01
      5. include = /etc/samba/dhcp.conf
      6. dns proxy = no
      7. log level = 10
      8. syslog = 10
      9. log file = /var/log/samba/log.%m
      10. max log size = 1000
      11. syslog only = yes
      12. panic action = /usr/share/samba/panic-action %d
      13. encrypt passwords = true
      14. passdb backend = tdbsam
      15. obey pam restrictions = yes
      16. unix password sync = no
      17. passwd program = /usr/bin/passwd %u
      18. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      19. pam password change = yes
      20. socket options = TCP_NODELAY IPTOS_LOWDELAY
      21. guest account = nobody
      22. load printers = no
      23. disable spoolss = yes
      24. printing = bsd
      25. printcap name = /dev/null
      26. unix extensions = yes
      27. wide links = no
      28. create mask = 0777
      29. directory mask = 0777
      30. map to guest = Bad User
      31. use sendfile = yes
      32. aio read size = 16384
      33. aio write size = 16384
      34. null passwords = yes
      35. local master = yes
      36. time server = no
      37. wins support = no
      38. #======================= Share Definitions =======================
      39. [KEVTEST]
      40. comment = exchange 2k3 files
      41. path = /media/7f7729c2-4c05-41d3-a535-9bac4e2a6393/Kev/
      42. guest ok = yes
      43. read only = no
      44. browseable = yes
      45. inherit acls = yes
      46. inherit permissions = no
      47. ea support = no
      48. store dos attributes = no
      49. printable = no
      50. create mask = 0755
      51. force create mode = 0644
      52. directory mask = 0755
      53. force directory mode = 0755
      54. hide dot files = yes
      55. invalid users =
      56. read list =
      57. [Backup]
      58. path = /media/7f7729c2-4c05-41d3-a535-9bac4e2a6393/Backup/
      59. guest ok = yes
      60. read only = no
      61. browseable = yes
      62. inherit acls = no
      63. inherit permissions = no
      64. ea support = no
      65. store dos attributes = no
      66. printable = no
      67. create mask = 0755
      Display All


      As far as I can see my config is OK.

      Any suggestions will be greatly appreciated.

      Cheers,

      Kev

      The post was edited 1 time, last by davidh2k ().

    • romanes eunt domus wrote:

      After a quick google I still don't know how to fix the rlimit_max issue, is this likely to be my problem?


      Nope, it won't be your problem.

      Delete all shares in the WebGUI and every file you might have messed up and set them up from scratch again.

      Oh, and please use codeboxes. Thank you.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.