Adding Samba User

Process for adding user to samba

1.First create user
useradd hari
passwd hari
assign password

2.Create folder which you want o share
For me i want to share data folder ie /mnt/data

3.Lets assign permisson for user hari
chown -R hari:hari /mnt/data

4.Now lets configure smb.conf

[data]
comment = All users
path = /mnt/data
public = yes
writable = yes
valid users = hari
browseable = Yes
read only = No
inherit acls = Yes

5.Now lets restart samba
/etc/init.d/smbd restart.

Advertisements

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