enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #01863
Re: [Question #207422]: Ubuntu Server Unable to config SAMBA for file sharing
Question #207422 on samba in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba/+question/207422
actionparsnip proposed the following answer:
If you run:
sudo nano /etc/samba/smb.conf
add the below lines (but change it for your shares and usernames):
[Downloads]
path = /home/andy/Downloads
comment = Andy's stuff
browsable = yes
read only = no
writable = yes
valid users = leanne andy
invalid users = root bin daemon nobody
Press CTRL+X, Press Y, Press ENTER and then run:
sudo smbpasswd -a andy
(again match the names you add in the smb.conf file), you will use this
to authenticate with. Now if you run:
sudo service smbd stop; sudo service smbd start
And the share will be accessible. If you want to add another share, just
add another entry in the smb.conf file and restart the service. You can
also add more samba users and you can control whom has access to what.
Easy stuff.
--
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba
in Ubuntu.