Jeremys Linux Blog | don't take this blog for gospel. I'm a linux newbie!

TAG | Samba

Karmic Koala instructions for installing and configuring Samba on my Server

1. I installed Samba

sudo apt-get install samba samba-tools system-config-samba

2. I created a backup of the original Samba configuration

cd /etc

cd samba

sudo mv smb.conf  smb.conf.old

3. Create a new smb.conf

sudo nano /etc/samba/smb.conf

4. I typed the following config file thanks to help from http://samba.netfirms.com/index.htm

#Global parameters

workgroup = WORKGROUP
netbios name = server
encrypt passwords = yes

[homes]
read only = no
browseable = no

[backup]
path = /mnt/raid/backup
browseable = yes
write list = jeremy
invalid users = mediaservice

[downloaded]
path = /mnt/raid/downloaded
write list = jeremy
invalid users = mediaservice

[downloading]
path = /mnt/raid/downloading
browseable = yes
write list = jeremy
invalid users = mediaservice

[high def movies]
path = /mnt/raid/high def movies
browseable = yes
write list = jeremy

[movies]
path = /mnt/raid/movies
browseable = yes
write list = jeremy

[music]
path = /mnt/raid/music
browseable = yes
write list = jeremy

[music dvd]
path = /mnt/raid/music dvd
browseable = yes
write list = jeremy

[netsys]
path = /mnt/raid/netsys
browseable = yes
write list = jeremy
#invalid users = mediaservice

[scratch]
path = /mnt/raid/scratch
public = yes
browseable = yes

[software]
path = /mnt/raid/software
browseable = yes
write list = jeremy

[sysnet]
path = /mnt/raid/sysnet
browseable = yes
write list = jeremy
#invalid users = mediaservice

[tv]
path = /mnt/raid/tv
browseable = yes
write list = jeremy

[watch]
path = /mnt/raid/watch
browseable = yes
write list = jeremy
invalid users = mediaservice

[wing chun]
path = /mnt/raid/wing chun
browseable = yes
write list = jeremy

5. I created a new user account called mediaservice (as mentioned above)

sudo useradd -d /home/mediaservice -s /bin/false -N mediaservice

sudo passwd mediaservice

*************

*************

sudo smbpasswd -a mediaservice

*************

*************

6. I set a samba password for my own account

sudo smbpasswd -a Jeremy

*************

*************

5. I restarted samba

sudo /etc/init.d/samba restart

5. I set permissions on the files

sudo nautilus

via nautilus I navigated to /mnt/raid and right clicked and selected permissions

Owner -> Root, Create and Delete Files

Group -> Users, Create and Delete Files

Others -> Create and Delete Files

5. I tested from a windows workstation

\\192.168.0.200

, , ,

Find it!

Theme Design by devolux.org