On Mon, 17 Apr 2000, Bret Hughes wrote:

> UK Jaiswal wrote:
> 
> > Hi,
> >
> > When I type "smbstatus",
> > I get :
> > Couldn't open status file /var/lock/samba/STATUS..LCK
> >
> > What does it mean and what is the significance of the "/var/lock/"
> > directory.
> >
> 
> Are you doing this as root?  Always the first thing I look at if I get
> messages of this nature.
> Check to see if the file exists also.
> 
> /var/lock is used by several programs to place "lock" files to let
> processes know what is running or what might have a lock on a particular
> resource.  It might be that the samba suite is using the existance of this
> file to know if the thing is even running.  I am not that familier with
> it.  For us samba just runs and runs.  I never have to putz with it since
> getting it configured.
> 
> Hope this helps.
> 
> Bret
> 

If I am not mistaken, the lock file "/var/lock/samba/STATUS..LCK" should 
be created before you even attempt to start the smbd daemon. I would do 
the following in this order...

0) /bin/su -
1) /etc/rc.d/init.d/smb stop
2) rm /var/lock/samba/STATUS..LCK
3) touch /var/lock/samba/STATUS..LCK
4) /etc/rc.d/init.d/smb start

5) smbstatus

Steps 1-4 need to be performed as root. Step 5 can be performed by anyone.

Carey

 ======================================================================
<>   Carey F. Cox, PhD             |  PHONE: (409) 880-8770           <>
<>   Assistant Professor           |  FAX:   (409) 880-8121           <>
<>   Dept. of Mech. Eng.           |  EMAIL: [EMAIL PROTECTED]  <>
<>   Lamar University              |  WEB:   N/A                      <>
 ======================================================================


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to