samba works but how to secure it
TIA I can get samba sorta working. I made a directory on 9.3 called /zak and shared it as hard as I could and was able to copy stuff on to it from a WinXP machine without needing to login. This is part of my samba.conf ... [zak] path = /zak/ guest ok = yes read only = no valid users = admin users = case sensitive = yes msdfs proxy = no How do I secure it so it needs a password to gain access? Making it like that (above) was the only way way I could get access. SuSE is in LAN with a Novell 5.0 file server and no Windows domain controller. It isn't critical for me but I want to be able to do it in a Windows LAN without a domain controller for a client because I want to keep him away from Win 2003 SBS if I can. I have already said it would be better to use Linux than install a Windows domain controller. I gotta bigmouth. Mike
Hi Mike
How do I secure it so it needs a password to gain access?
My /etc/samba/smb.conf looks like: [SNIP] # Global parameters [global] netbios name = FILE_SERVER server string = FILE_SERVER encrypt passwords = Yes password level = 20 wins support = Yes # Home directories of users on this linux machine [homes] comment = Home Directories read only = No create mask = 0750 browseable = No # Directory that everybody with a username on this linux machine can see [data] comment = Data (Global access) path = /home/data read only = No guest ok = Yes [/SNIP] I used the following references to get it working: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#id25 32665 http://www.troubleshooters.com/linux/samba.htm To add a user I simply execute: # useradd -d /home/mike mike # passwd mike # smbpasswd -a mike I also enabled SWAT by editing /etc/inetd.conf and uncommenting the entry for swat. Then restarting inetd by running rcinetd restart My setup works for Windows XP and SuSE 8.0/9.1/9.2/9.3 machines. I'm running Samba on SuSE 8.0 (Celeron 400 with 256MB RAM and 160GB hdd) but there shouldn't be too many changes. Albert -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 02/09/2005
participants (2)
-
Albert
-
Mike Dewhirst