Mailinglist Archive: opensuse (4398 mails)

< Previous Next >
RE: [SLE] samba works but how to secure it
  • From: "Albert" <albert@xxxxxxxxxxxx>
  • Date: Mon, 5 Sep 2005 14:37:26 +0200
Hi Mike

>How do I secure it so it needs a password to gain access?

My /etc/samba/smb.conf looks like:

# Global parameters
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
comment = Home Directories
read only = No
create mask = 0750
browseable = No

# Directory that everybody with a username on this linux machine can see
comment = Data (Global access)
path = /home/data
read only = No
guest ok = Yes

I used the following references to get it working:

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.


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

< Previous Next >
This Thread