Samba for a Ubuntu dev box

when setting up a dev box, security isn’t the most important thing. Your live box is where your security needs need to be met, your dev box however is where you may be able to relax them…

So from the top:

Install samba service : sudo apt-get install samba smbfs

Edit the config : sudo gedit /etc/samba/smb.conf

add the following (leaky and very very unsecure )

[samba]
comment = public complete access to web dev only
path = www/sites
force user = samba
force group = samba
read only = no
writable = yes
create mask = 0777
force create mode = 0777
force directory mode = 0777
guest ok = yes

Now any dev looking at the above will know this will leave your system open to abuse of all kinds – however I think I’ve listed most if not all possibilities so check them and adjust them to suit.

Now before windows will give you access you need to set up the user “samba” mentioned in the config; both a linux user and a samba user.

sudo adduser --shell /bin/false 'samba'

sudo smbpasswd -L -a samba

now start samba and voila

sudo start smbd

or service smbd restart

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s