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
  • Message-id: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAxevMM82Q/E2sjvhYQ/oJTMKAAAAQAAAAyCVae88Fb0KhbGomw0cL4gEAAAAA@xxxxxxxxxxxx>
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



< Previous Next >
This Thread
References