Samba filesharing - Linux installation and setup

chris (2003-01-23 21:14:40)
1 replies
I had an interesting time today installing and configuring Samba on an old Slackware box at work. I just thought it would be of help to explain briefly some of the requirements to get samba up and running.

Firstly, there are a couple of locations on the web with some really useful docs: (my closest mirror) (the official docs) (dave lechnyr's unoffical howto)

and now the core process:

get the sources and unpack

# cd /usr/src/
# wget
# tar -zxvf samba-latest.tar.gz

compile and install
# cd samba-&lt;version&gt;
# ./configure && make && make install

drop config into place
# cp ../examples/smb.conf.default /usr/local/samba/lib/smb.conf

Then open up in vi and start editing the config. These are just a couple of notes on what has to go in for a basic setup.

# file: smb.conf
workgroup = mygroup
server string = samba server
security = user
dns proxy = no
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# homes - if you want users to be able to browse home areas
comment = Home Directories
browseable = yes
writable = yes

# publicly shared files - under 'path' on server, writeable by users in the group identified by write list = &lt;group&gt;
comment = Public Shares
path = /export/share
public = yes
writeable = yes
write list = @users

#### end of smb.conf

the users were then set up, but first they need to have entries in the system password file '/etc/passwd', so create the users thus:

# adduser username

and then create the samba password for each user

# /usr/local/samba/bin/smbpasswd -a username

The final stage on the server end of things is to start up the two daemons required - you can edit your init scripts to do this, or just fire them manually like so:

# smbd -D
# nmbd -D
2003-06-05 23:03:43


Note: Dave's unofficial howto is now located here:

reply icon