Linux Server Diary

The trials and tribulations of a Linux newbie trying to setup a home server.

Thursday, May 06, 2010

HTPC #4 - Configuring Samba

This was so easy!

I installed samba:
sudo apt-get install samba

Created the configuration file:
[global]
workgroup = MYGROUP
netbios name = HTPC
server string = HTPC
security = share
encrypt passwords = yes
local master = no
guest ok = yes
#===== Share Definitions =====

[files]
comment = Files
path = /export
public = yes
writable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

And restarted the daemon:
sudo restart smbd

Now I have a share called files that contains the /export directory. Anyone on my network can read or write files without a login.

See? I told you it was easy.

Labels:

0 Comments:

Post a Comment

<< Home