Samba on Ubuntu from command line
August 5, 2009
Instead of just right clicking on the folder and asking for it to be shared I decided to go command line and found this thread.
I found it simple enough to simply stop samba
>sudo /etc/init.d/samba stop
then make a back up of the /etc/smb.conf
add my projects directory similar to this
[MyFiles]
path = /home/mydir/myprojectsdir
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = YOUR_USERNAME
force group = YOUR_USERGROUP
then start up samba and all was good.
>sudo /etc/init.d/samba start
Advertisement