Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-04-2005, 10:11 PM   #1
Registered: Aug 2004
Location: Virginia Tech
Distribution: Xandros 3.01
Posts: 30

Rep: Reputation: 15
Help setting up Samba...

Ok, I'm sure the people here get this all the time. And I have done this before, which makes it so confusing. I'm a recent convert from MDK10.0 to FC3. I'm very much like Fedora, but I really got it because the drive holding my Mandrake crashed and I wanted something new. Anyway, I had a backup of my smb.conf file, configured just as I liked it: Totally open access. Some directories writeable, some read-only, but ALL were TOTALLY viewable by anyone on the network without so much as a password prompt. All other machines in the house are Win2k or XP. So I figured I copy my old smb.conf file right over and it works, right? Wrong. Even with the directories set up the same and the same file (I also THINK I did the smbpasswd thing in the command line properly), I can SEE the linux box on my network, but when I try to connect (from multiple XP computers) I get it not accessible, can't find network path, several errors. And I also don't know WHERE to start to get my printer shared as easily, either. Strange thing is, this samba file was working perfectly for months on the old machine. I don't know if there are different procedures for samba, but I almost get the feeling like I'm missing another step not even related to samba, but I don't know what it is or where to begin looking. I'm posting the ENTIRETY of my smb.conf file. I would greatly appreciate any help. Also, keep in mind, I'm still NEW to linux. If I need to locate a file, I need to be told WHERE it is. I know the system should feel logical, but I don't yet have a good grasp of WHERE linux PUTS things.

workgroup = WORKGROUP
server string = Linuxbox
netbios name = Denputer
security = share
guest = tim

path = /home/tim/netshare
writeable = no

path = /home/tim/pubdrv
writeable = yes

Now I know it's simple, and I suppose it's possible I may have edited it after I saved this copy to get it to work, but I'm 99% sure that did everything file-related just fine for me. It's pretty simple. Thanks. Oh, and "tim" is the primary user of the machine and the home directory where all the stuff resides. First share is read-only, second is a public writeable drive.
Old 04-04-2005, 11:19 PM   #2
Registered: Aug 2003
Location: Minnesota, USA
Distribution: RedHat, Suse
Posts: 106

Rep: Reputation: 15
Well... different distros put things different places - which is confusing.

I am not familiar with Mandrake at all, and only marginally familiar with FC. I typically use Suse, but with regards to Samba, they should be pretty much the same. I assume Samba 3.x here.

You won't be able to magically login to samba with root unless you've added the "root" user to samba -

smbpasswd root

then set the password.

Keep in mind that samba does not set the security on the shares, which sounds like it could be your problem. Make sure the shares are owned by the user you expect to use them, or have a group assignment for multiples - chown and chmod for setting the proper access to the file system.

You might try looking at the Samba 3 By Example book over on - which steps through configuration of Samba 3.

Jon Johnston
Creative Business Solutions
IBM, Microsoft, Novell/Suse and Sophos Consulting
Old 04-05-2005, 08:03 AM   #3
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
Also check to be sure you don't have a firewall blocking access to your Samba server. Executing iptables -F as root should stop the firewall so you can test if that's the problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Samba under 5.0.4 Linux31 Ubuntu 2 07-04-2005 12:37 AM
Help setting up Samba? snakeo2 Linux - Newbie 17 03-25-2004 07:32 AM
Setting up Samba Inexactitude Linux - Networking 1 10-29-2003 11:08 PM
Setting up Samba fettouhi Linux - Newbie 14 08-05-2003 08:43 AM
Setting UP samba ??? chienchie Linux - Networking 3 07-23-2003 10:19 AM

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration