LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba (https://www.linuxquestions.org/questions/linux-software-2/samba-59946/)

roofy 05-15-2003 12:51 PM

samba
 
hey guys i just installed samba on my rh 7.2 server...i got both the deamons up and running...but i cant get to SWAT over the network with 192.168.1.100:901 (thats the correct ip)...smbd and nmbd are up...what did i do wrong...also i cant find my smb.conf ANYWHERE...its not in /etc/samba (i dont even have a samba in etc) or in /usr/local/samba/lib/....help...thanks

tangle 05-15-2003 12:57 PM

If you don't have /etc/samba, I would reinstall samba. that is where your config file needs to be. RH default it there. I am not sure why it is not there.

roofy 05-15-2003 01:05 PM

hmm ok lemme try taht

roofy 05-15-2003 01:11 PM

ok i recompiled it and reinstalled this time i use make install > install.log.....so i searched thru the log and i found that it installed testparm...which lets me see where samba is looking for its .conf file...and it still couldnt find smb.conf

tangle 05-15-2003 01:15 PM

Do you have /etc/samba?

roofy 05-15-2003 01:17 PM

nope

tangle 05-15-2003 01:23 PM

Is there anything in /usr/local/samba/lib? In FreeBSD 4.2 you had to make a smb.conf file. I have a little how-to at http://www.valkyrie.net/~tangle/comp.../smb_conf.htm. You can just cut and past this and change the values to what you need. I would do this and see if it works.

roofy 05-15-2003 01:28 PM

hmm thanks

roofy 05-15-2003 01:33 PM

ok testparm OK'ed the file...going to reboot now..THANKS :D

tangle 05-15-2003 01:36 PM

You don't have to reboot. Just type smbd restart and nmbd restart at the command line.

roofy 05-15-2003 01:38 PM

well i already rebooted....now how do i get swat working...i also changed the password dir to /etc/passwd

tangle 05-15-2003 01:42 PM

Check out http://de.samba.org/samba/ftp/docs/h...s/swat.8.html.

roofy 05-15-2003 01:53 PM

ok well i read the link and i did all that...created the file in xinetd.d and mapped the service in /etc/services....now how do i make xinetd call the swat file?

tangle 05-15-2003 02:23 PM

If your /etc/xinet.d/swat (Ithink that is the location) then it should work. Make sure that server = is the path to the swat binary.

# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/local/samba/swat
log_on_failure += USERID
disable = no
}

KennyK 05-15-2003 05:14 PM

only_from = localhost

I think that this in your swat file will prevent you from accessing swat across the network.

Regards


All times are GMT -5. The time now is 09:57 AM.