[Samba] smbpasswd

John H Terpstra jht at samba.org
Wed Mar 5 22:29:45 GMT 2003


On Wed, 5 Mar 2003, Frank Liu wrote:

> samba-2.2.7a and user security.
>
> [root at napalm private]# grep fliu /etc/passwd
> fliu:x:504:14::/export/home/fliu:/bin/bash
> [root at napalm private]# grep fliu /usr/local/samba/private/users.map
> fliu = liuf
> [root at napalm private]# grep users.map /usr/local/samba/lib/smb.conf
>         username map = /usr/local/samba/private/users.map
> [root at napalm private]# /usr/local/samba/bin/smbpasswd -a liuf
> New SMB password:
> Retype new SMB password:
> User liuf does not exist in system password file (usually /etc/passwd). Cannot
> add account without a valid local system user.
> Failed to modify password entry for user liuf
>
> any ideas why the error?

Yes, of course!

I'll bet that:
	smbpasswd -a fliu
will work just fine. And after you have done this, the user 'liuf' will be
able to access the system from Windows jsut fine also.

smbpasswd is adding the user from /etc/passwd. users.map will only
translate from Windows-land to Unix-land.

- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list