[clug] Samba not running

Amitay Isaacs amitay at gmail.com
Sat Aug 29 03:33:13 MDT 2009


Hi Ian,

On Sat, Aug 29, 2009 at 6:43 PM, Ian McLeod <ianmcleod75 at gmail.com> wrote:

> Hi,
>
> I'm running Ubuntu and have quite happily had Samba running well for a long
> time and all was well in the world.
>
> Lately, I can access other computers but this one is not sharing out.  I
> must have broken something along the times but I just can figure out what.
>  I have tried restarting with service samba restart and even rebooting with
> no luck.
>
> smbd and nmbd are not running.
>
> Should I just reset it all to default somehow and start again?
>
> testparm reveals:
>
> Load smb config files from /etc/samba/smb.conf
> Processing section "[printers]"
> Processing section "[print$]"
> Processing section "[Disk One]"
> Processing section "[Disk Two]"
> Processing section "[Disk Three]"
> Processing section "[Media]"
> Processing section "[Media Two]"
> Loaded services file OK.
> ERROR: pid directory file:///var/run/samba does not exist


Looks like directory /var/run/samba has been deleted.
If it is missing, creating that directory should fix the problem.



> Server role: ROLE_STANDALONE
>
>       server string = %h server (Samba, Ubuntu)             security =
> SHARE                                       map to guest = Bad User
>                       obey pam restrictions = Yes
> smb passwd file = file:///etc/samba/smbpasswd         private dir =
> file:///etc/samba                       passdb backend = tdbsam
>                   pam password change = Yes
> passwd program = file:///usr/bin/passwd%20%25u         passwd chat =
> *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n
> *password\supdated\ssuccessfully* .
>       unix password sync = Yes
>
>       syslog = 0
>
>       log file = file:///var/log/samba/log.%25m
>
>       max log size = 1000
>
>       logon path = %5C%5C%25N%5C%25U%5Cprofile
>
>       logon home = %5C%5C%25N%5C%25U
>
>       domain master = No
>       dns proxy = No
>       pid directory = file:///var/run/samba
>       usershare allow guests = Yes
>       usershare owner only = No
>       panic action = /usr/share/samba/panic-action %d
>
> The only error or indication I can find is in the samba log:
>
> [2009/08/29 18:22:43,  0] lib/debug.c:reopen_logs(663)
>  Unable to open new log file file:///var/log/samba/log.%25m: No such file
> or directory
> [2009/08/29 18:22:43,  0] lib/debug.c:reopen_logs(663)
>  Unable to open new log file file:///var/log/samba/log.%25m: No such file
> or directory
> [2009/08/29 18:22:43,  0] lib/debug.c:reopen_logs(663)
>  Unable to open new log file file:///var/log/samba/log.%25m: No such file
> or directory
> [2009/08/29 18:22:43,  0] lib/pidfile.c:pidfile_create(127)
>  ERROR: can't open file:///var/run/samba/smbd.pid: Error was No such file
> or directory
>
>
It appears that even /var/log/samba directory is missing. Can you confirm
that?
Make sure that owner is root and group is adm for /var/log/samba.



Amitay.


More information about the linux mailing list