cancel
Showing results for 
Search instead for 
Did you mean: 

SAMBA - add user

SOLVED
Go to solution
Ignite_2
Frequent Advisor

SAMBA - add user

Hi all,

I have 2 users which need samba connection to certain directories. There are already other users, so the samba is already set up... just need to add these two new. I've been provided by Name and IP. IP I added into smb.conf file under dirs, but connection for new users still doesn't work. Do these users need also accounts created on OS level? What else needs to be set up here?

Thanks in advance.
3 REPLIES
Ganesan R
Honored Contributor
Solution

Re: SAMBA - add user

Hi Ignite,

Yes. First you need to create the users at unix level then add those users to samba database using "smbpasswd" command.

1. Create unix users.

2./opt/samba/bin/smbpasswd -a username
New SMB password:
Retype new SMB password:

This will ask samba password. Give the password and it will work.
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: SAMBA - add user

Shalom,

The users being added to samba must exist on both systems.

If possible they should have the same numeric user id.

smb.conf must have security=user

For this to work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Weertman
Frequent Advisor

Re: SAMBA - add user

Check your etc/../smb.conf first
If security = ads then the users are verified on your domain controller.
Then you have to add the users with useradd to your unix.
It is also posible you have to add the users to the share to permit them to enter the share.
example:
valid users = karl kees tim