Samba Configuration
I have been trying to configure my samba server for the past month and I am about to scream.
I would like to configure it so that people on my local network can access my shares w/out entering passwords (or possibly just saving the password). Everyone else on my network (4 other computers) are running Windows XP. I would also like to share my printer. Bascially I don't need/want any fancy options, I just want it setup basically like network neighbor hood on windoze.....oops miss spelling :D if possibly someone could just post a dummy smb.conf file that i could almost copy word for word they would be the "dude" in my book. I would like to use a SHARE level security and not have to make users for every user (if possible). any help would be awesome....thanx very much |
So have you managed to start the server in the first place? Or does the server croak with a wrong config file option or so?
If it's up, do (on the linux server itself) smbclient -L <ip of the server> and post it. There's a good number of posts about the config file, some from yours truly, did you look them up? mlp |
yea I got it running, and I can see it in Network Neighborhood on the XP computers, when I try connecting I get an error message about permissions and something about another user w/ same name, but I know there is no user w/ the same name......(at least not that I know of)
here's what i got when I did that command added interface ip=192.168.0.155 bcast=192.168.0.255 nmask=255.255.255.0 Password: Domain=[MSHOME] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix] Sharename Type Comment --------- ---- ------- public Disk Music Disk Stuff Disk Misc Disk IPC$ IPC IPC Service (blando) ADMIN$ Disk IPC Service (blando) Server Comment --------- ------- DUMB-MEXICAN <= roomates computer (haha) LOCALHOST blando Workgroup Master --------- ------- MSHOME DUMB-MEXICAN I'll look up some of your posts and see what I can find, thanks.. |
These documents are quite good. I have used them to set up Samba several times. Start with the one by IBM. Note that XP needs a few extra steps to join a Samba 2.x domain. See the section on client configuration.
http://www-1.ibm.com/servers/esdd/tu...mba/index.html http://networking.earthweb.com/netos...le.php/1144701 http://networking.earthweb.com/netos...le.php/1151091 Remember to include the domain logons = yes command in your smb.conf file. This is required for Windows 2000/XP logons even though the literature suggests otherwise. |
Can you advise the Linux package your running your samba server on? I am keen to get mine working, but maybe I need a fresh approach.
Its currently running on an ASP linux machine, (installed with the initial setup packages), the services start, and the default user is setup in the KDE control module (my username, password and domain) but when I try to access it from a Windows 2k machine, it askes for the username and password. On a Windows 98se machine, no questions, logs in, but only shows an unknown or inaccessable directory called "test". I have looked through many documents pertaining to setting up a Samba server, but I haven't found one that says "start by installing your linux OS, e.g. RH 7.2, downloading the RPM package for samba, installing it etc) Thanks :-) |
I got it to work, here's what I did incase anyone in the future wants to know. This is my smb.conf file (/etc/samba/smb.conf) and I have it set up so Windows XP can access it without a password, and they all are mapped to use the guest account of sambaguest.
[global] log file = /var/log/samba/%m.log guest account = sambaguest preserve case = no guest ok = yes map to guest = sambaguest domain master = no encrypt passwords = yes hosts allow = 192.168. netbios name = blando server string = Linux local master = no workgroup = MSHOME os level = 20 security = share create mode = 666 preferred master = no directory mode = 777 domain logons = yes printcap name = lpstat printing = cups [printers] browseable = no comment = All Printers writeable = no path = /var/spool/samba public = yes printable = yes guest ok = yes print command = lpr -P %p -o raw %s -r [public] path = /home/blando guest ok = yes writeable = no browseable = yes printable = no public = yes [Mounts] path = /mnt guest ok = yes writeable = yes browseable = yes printable = no public = yes The only problem I'm having now is allowing the Windows computers to print to my printer (its a Compaq IJ600, although for Linux to recognize it I had to install it as a Lexmark Z22 (it's basically a re-Branded printer). I still haven't done much investigating into the printing problem yet, so I'm not sure what the problem is.... |
What linux os are you running? does your system have X configured?
In your samba client configuration (on the linux pc) what is the username / password? Are you using your samba server as a PDC??? does the "Domain master = no" mean that is not? When you say the user is "sambaguest" is this an account on your windows xp machine? or does it just.. "work" :-) Your share name, /home/blando, is this just a directory on your samba pc that is not shared by ANY other app in linux? Thanks :-) appreciate your reply and info :-) |
tekquest,
I'm running Redhat 9, and yes I have X configured and I'm running it. I don't have any samba users made. Basically I created a user for the linuxbox called sambaguest, I chose /sbin/nologin when i set up the user so that it wouldn't be used as a "user" exactly. And i set up the home directory for that user as / (you can add or modify users from system settings then users and groups) the sambaguest account is not an account on the windows machine, it just basically works ;-) I believe the way it works is that if a user that trys to login is not recognized (in my case every user) it then calls them a 'guest', and then i have the part that says "map to guest = sambaguest" and "guest account = sambaguest" (not sure which one of these does what or even if they are both needed, i'm just happy that it finally works) my share directory is just my home directory, not sure what you mean by it being shared by other applications - i have other directories shared too, such as I have another Hard drive on my computer that i have mounted and shared here's what it looks like (i just didn't add it to the post above for spaces reasons.) [Others] path = /mnt/Others guest ok = yes browseable = yes printable = no anymore Q's just ask |
Thanks mate, I will give it all a try tonight and report back :-)
|
I hate guest accounts, as theymake your setup less secure. If you're certain your network is secure, and you don't want to mess with passwords and such, you could use a config such as this:
[global] workgroup = WORKGROUP netbios name = Server server string = Samba server interfaces = eth0 10.0.0. socket address = 10.0.0. security = share socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY bind interfaces only = true deadtime = 5 [full] comment = all path = / hosts allow = 10.0.0. writeable = yes guest ok = yes guest account = nobody admin users = nobody That would give anyone who connected to the server full access to any files on the Linux box. http://us1.samba.org/samba/docs/using_samba/toc.html http://hr.uoregon.edu/davidrl/samba-...al-single.html |
Folks;
I know this might sounds stupid, but please help with this: I have share in my smb.conf on my SUSE 10 box. How can i make this share accessible to outside IP range or a specific IP address without need for user/pass? Here's the share as it's written in smb.conf: ;[xyz] ;comment = Filesystem Gate ;writable = yes ;browseable = yes ;public = yes ;path = /xyz include = /etc/samba/includes/cifs-share.inc and here's cifs-share.inc: [share1] writable = no path = /xyz/share1 valid users = katkota write list = katkota force user = user1 force group = nogroup browseable = no public = no printable = no security mask = 0777 |
All times are GMT -5. The time now is 09:05 AM. |