[Samba] using unix authentication (/etc/passwd)
rich at thevillas.eclipse.co.uk
Thu Jun 22 12:52:34 GMT 2006
Gary Dale wrote:
> How are you adding users?
adding users to the box with 'useradd' and now I also have to add users
who want samba access with smbpasswd -a username as well.
> You don't seem to have an add user script!
erm, no, must have missed that! Is there an example one in the samba dir?
> Look at the sample smb.conf files in the HowTo collection or the Samba
> by Example - both at www.samba.org. Also, you almost certainly want
> to encrypt passwords.
I probably should do but haven't up till now
> I recommend installing SWAT if you haven't done so already and use its
> wizard to set your box up as a domain controller (since that seems to
> be how you want to use it).
yes, I really should do, but didn't think i'd need to if I just copied
over my previous smb.conf.
> rich wrote:
>> Hi when using samba version Version 2.0.5a (I didn't compile) I never
>> had to explicitly set up samba users with smbpasswd -a.
>> Since upgrading to version 3.0.22 I now have to add each user
>> otherwise I get the following in the logs
>> [2006/06/15 14:20:46, 2] auth/auth.c:check_ntlm_password(317)
>> check_ntlm_password: Authentication for user [richard] -> [richard]
>> FAILED with error NT_STATUS_NO_SUCH_USER
>> When setting up I simply copied over the old version of smb.conf that
>> I used to use.
>> workgroup = GENOMICS
>> server string = Genome Centre Samba Server (Mendel)
>> unix password sync = Yes
>> log level = 2
>> #log file = /usr/local/samba/var/samba.log.%m
>> log file = /var/log/samba/samba.log.%m
>> max log size = 50
>> wins support = Yes
>> invalid users = root bin web daemon adm sync shutdown halt
>> mail news uucp operator nuucp lp listen nobody noaccess nobody4 david
>> gaget anna
>> create mask = 0777
>> directory mask = 0777
>> hosts allow = 192.168.1. localhost
>> comment = Home Directories
>> path = /userdata/home/%u
>> read only = No
>> guest ok = Yes
>> browseable = No
>> I've tried setting encrypt password = no but this doesn't make any
>> Any ideas?
More information about the samba