Nocser Technology
Please Login or Register

Knowledgebase

Adding users to samba

Add user to linux user with command below

useradd peter
passwd peter
New password: *******
Retype new password: ********

smbpasswd –a peter
New SMB password: ********
Retype new SMB password:********

Add a user to a Samab share
By default user gets access to /home/peter from windows system. Let us say you want to give peter access to /data/accounts (make sure directory /data/accounts exists) directory. Open /etc/samba/smb.conf file and add/modify share called [accounts]:

[accounts]
comment = Accounts data directory
path = /data/accounts
valid users = user1 user2 peter
public = no
writable = yes

save the file

restart samba: service smb restart



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Public DSN (Views: 167)
How to set java_home (Views: 381)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter