Click to See Complete Forum and Search --> : samba dilema
Mike hunt
02-02-2001, 03:30 PM
I installed samba the other day ok, now I can see the linux machine from my 2k server fine and I can telnet to the 2k box from linux (being that I dont htink there is a net hood in linux) BUT, when I try to get into the linux box from windows net hood I get a "semaphore timeout error" what is this about? I didnt make any users in the SMB group but I made an account on my 2k machine named root with the same password as root on my linux box, I cant see the linux box logged in as anyone else so I'm guessing that its not a user/group issue. If anyone has ever seen an error like this or know why my machines arent playine nice together I salute you.
Thanks
Mike .. HUNT
Ryeker
02-02-2001, 03:38 PM
I think you are missing a few settings for Samba. First, let's make sure everything works. Add:
security = share
to your smb.conf, and restart Samba (both smbd and nmbd). Then try to access.
I am not sure if root can access Samba shares. There was a little discussion about it in another thread (sorry, I forgot where it was), and I have never tried it (big security risk).
HTH.
Mike hunt
02-02-2001, 03:53 PM
I'm sorry for being such a newbie ***, BUt how do I add that?
Ryeker
02-02-2001, 09:43 PM
Don't worry about being a newbie ***, this is linuxnewbie, isn't it???
I'll take it step by step, just so everything is covered. If you know how to do it better, by all means do it.
First, we need to find the Samba configuration file, smb.conf. We will change to root first then search.
su - root, Enter then enter your password
find / -name 'smb.conf'
Now, it should search your drive for this file. Once it does, it should show you the path. Mines is at /usr/local/samba/lib/smb.conf. If you can't find this file, I'll explain below. Now that we have this file, we need to edit it. I like pico.
pico /usr/local/samba/lib/smb.conf
We need to find if the 'security' setting has been checked.
Ctrl + W, Enter then type security
If it finds it, change it to share. If you don't see it, add security = share to the top.
Exit Pico.
Ctrl + X
It will ask if you want to save it. Hit Y.
You need to restart Samba. So, let's find the process.
ps -A | grep mbd
You should see something like this.
58 ? 00:00:00 smbd
60 ? 00:00:00 nmbd
We need to stop these services, so...
kill 58; kill 60
Now we need to find and restart these services.
find / -name 'smbd
You should see something like this.
/usr/local/samba/bin/smbd
So, this is what you'll need to type
/usr/local/samba/bin/smbd -D; /usr/local/samba/bin/nmbd -D
There, you should be up and running now. That was pretty fun.
If you didn't find smb.conf, let's try to find out where it was installed.
find / -name 'samba'
Change directory to that directory and go to the lib directory...
LOL...
Before I continue...
Did you make any shares?
sans-hubris
02-03-2001, 05:27 AM
Also, make sure you have an actual account on your Linux machine for Samba ("adduser public".
Now that you've created an account, make sure you add it to smb.conf after the section [homes] like the following:
[public]
comment = Public access directory
path = /home/public
writeable = yes
create mask = 0644
directory mask = 0755
guest ok = yes