You are not logged in.

#1 2007-06-29 17:33:24

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Samba is not working - ERROR: pid directory /usr/var/run does not exis

Hi, samba sudenly stoped working on my machine (it supposedely starts, but doesn't appear in ps -A), I looked through all log files and found nothing, the only anormal thing it tells me is when I run testparm, and it says

testparm wrote:

ERROR: pid directory /usr/var/run does not exist

. Any ideas? what's supposed to be at /usr/var/run. (btw, that directory doesn't exist, /usr/var exists though)
EDIT: forgot to post my smb.conf:

[global]
        workgroup = SADOJANI
        server string = Tarro de Phrodo_00
        security = share
        #hosts allow = 192.168. 127.
        load printers = no
        log file = /var/log/samba/log.%m
        max log size = 50
        dns proxy = no 
        wins support = no
[Juegos]
        path = /media/archivos/Juegos
        comment = weeeeeeeh!
        available = yes
        browseable = yes
        public = yes
        writable = yes
[Descargas]
        path = /media/archivos/Descargas
        available = yes
        browseable = yes
        public = yes
        writable = yes
[musica]
        path = /media/archivos/Musica
        available = yes
        browseable = yes
        public = yes
        writable = yes
[Videos]
        path = /media/archivos/Videos
        available = yes
        browseable = yes
        public = yes
        writable = yes
[CShare]
        path = /media/windows/shared
        comment = Compartidos en C:
        available = yes
        browseable = yes
        public = yes
        writable = yes

Last edited by Phrodo_00 (2007-06-29 17:51:20)

Offline

#2 2007-06-30 12:16:51

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: Samba is not working - ERROR: pid directory /usr/var/run does not exis

I looked through my usr dir, and /usr/var/run/samba exists and contains the following

account_policy.tdb  group_mapping.tdb  ntforms.tdb     sessionid.tdb
brlock.tdb          locking.tdb        ntprinters.tdb  share_info.tdb
browse.dat          messages.tdb       perfmon[dir]
connections.tdb     notify.tdb         printing[dir]
gencache.tdb        ntdrivers.tdb      registry.tdb

The directory seems to hold the session files for the sever, to see what clients are connected.
The folder has the following permissions.

drwxr-xr-x 4 root root 4096 2007-06-30 14:12 samba

Have you tried to make the samba directory in/usr/var/run?


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#3 2007-06-30 18:35:39

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Samba is not working - ERROR: pid directory /usr/var/run does not exis

It seems like something is seriously wrong on your machine if you don't have /var/run on your machine - this is where many processes stick PID files and sockets.  LOTS of stuff wouldn't work w/o config changes if this dir wasn't there.  Please verify that /usr/var on your box is actually a symlink to /var.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

Board footer

Powered by FluxBB