Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

swat won't read alternate smb.conf

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

I just installed the latest 3.0.25 Version of Samba and tried to run swat. Problem is, that we're not using the default path for smb.conf ...

So I changed the /etc/inetd.conf as follows:

swat stream tcp nowait root /opt/pware/samba/3.0.25/sbin/swat -s /u1/samba/smb.conf swat

And I also tried this one:

swat stream tcp nowait root /opt/pware/samba/3.0.25/sbin/swat --configfile=/u1/samba/smb.conf

But neither one of these entries is working. After I do a "refresh -s inetd" and login to swat it shows me none of the entries contained in the smb.conf and even shows an empty default smb.conf under "Views" ...

Any idea what might be wrong here ?

When we start the smbd and nmbd using the alternate path it uses the right smb.conf

Only swat won't ....

Regards
Thomas
 
Thomas,

I was googling to find something useful for your case but i couldn't find any!

The only thing that paid attention was this statement "The default configuration file name is determined at compile time."

I'm not sure what they meant by compile time!

We have samba installed on one of our servers but i don't use swat to edit the smb.conf because it is a very simple configuration in our case!

I think they meant this:

Code:
After you compile SWAT you need to run "make install" to install the swat binary and the various help files and images. A default install would put these in: 



/usr/local/samba/bin/swat
/usr/local/samba/swat/images/*
/usr/local/samba/swat/help/*


Any way, these are the links that i've been though for the record:




Regards,
Khalid
 
Hi Thomas,

Try using

swat stream tcp nowait root /opt/pware/samba/3.0.25/sbin/swat swat -s /u1/samba/smb.conf

in your /etc/inetd.conf file.

If that fails you could try altering the default, and re-compiling, but i'd avoid that ... if at all possible. :)

Brgds.

____________________
Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debuging Mondays code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top