Install Samba Server on Ubuntu :: the How-To Geek

#4 of 93 marked pages on the trail linux.ubuntu by enjoylife
enjoylife's comments

To reemphasize what hhcv said: I also needed to do
sudo adduser SomeNewUserName

(and give this new user a password)

before I could successfully run

sudo smbpasswd -a SomeNewUserName

The first creates a UNIX user, the second creates an SMB user. I don't know if the two passwords need to be the same, but I made them the same just in case.


===================================

1) create unix user (e.g. wsuser)
2) sudo apt-get install samba smbfs
3) sudo smbpasswd -a wsuser
4) sudo gedit /etc/samba/smbusers
#add this line
wsuser = "wsuser"
5) sudo gedit /etc/samba/smb.conf
# add two lines after "####### Authentication #######"
security = user
username map = /etc/samba/smbusers

# Uncomment below three lines
[homes]
comment = Home Directories
browseable = yes
# add line
writable = yes


access windows shared directory from Linux samba

sudo mkdir /mnt/l-sjn-xxx.corp.yyy.com

sudo smbmount //l-sjn-xxx.corp.yyy.com/public_share /mnt/l-sjn-xxx.corp.yyy.com -o user=xxx,gid=users


Other comments
There are no comments on this mark.