Showing posts with label Samba. Show all posts
Showing posts with label Samba. Show all posts

Thursday, April 9, 2009

Create public folder on samba

My environment: Samba 3.0.28 on RH FC8

Nothing better than learn by example, let see the following 2 examples on /etc/samba/smb.conf to create a writable and read-only share

Writable share - A publicly accessible directory, but read only, except for people in software group

[software]
comment = Software Share
path = /media/disk/software
public = yes
writable = yes
printable = no
browseable = yes
write list = +software

A read-only share

[VM]
comment = VM
path = /media/disk/VM
public = yes
writable = no
printable = no
browseable = yes

Start your samba server in 5 mins

My environment: Samba 3.0.28 on RH FC8

Again it’s time for our quick and dirty series – the samba episode.  Let's create a samba share in 5 mins!

1. Make sure you have samba server installed.  If not, yum –y install samba-common
2. Add your existing users to samba, say I have an user pandaeatsbamboo already in the system:
smbpasswd -a pandaeatsbamboo
3. Restart your samba server:

/etc/init.d/smb restart

4. Access your share via UNC path, \\192.168.1.10 and you’ll see your home folder as a shared folder.