I am trying to setup a /etc/smbpasswd file for my users. I use the
following command to create the /etc/smbpasswd file
cat /etc/passwd | ./mksmbpasswd.sh > /etc/smbpasswd
Redhat 7.1, samba 2.2.5
I thought that users could log onto the linux system and simply type the
command:
smbpasswd
and it would ask for the new password. But it asks for an OLD password
which never works. I thought the XXXXXX's meant it would not ask for old
passwords.
As root I can add users with no problem by simply typing
smbpasswd jsmith
Below is an example from the /etc/smbpasswd file and my smb.conf file
pmorgan:532:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:Patricia Morgan
[global]
workgroup = GPREP
netbios name = leonardo
server string = leonardo the lionhearted
interfaces = 172.16.0.2/16
winbind uid=10000-20000
winbind gid=10000-20000
winbind cache time = 15
winbind enum users = yes
winbind enum groups = yes
winbind separator= +
# from server to domain
security = domain
password server = GOETHE
encrypt passwords = yes
log level = 3
log file = /home/log/samba/log.%e
os level = 33
local master = No
wins proxy = Yes
wins server = 172.16.0.4
follow symlinks = no
wide links = no
# template homedir = /home/%U
# template shell = /bin/bash
obey pam restrictions = yes
smb passwd file = /etc/smbpasswd
hosts allow= 172.16.
Thanks
Jon Church
The man page for smbpasswd(5) states
Lanman Password Hash
This is the LANMAN hash of the user's password, encoded
as 32 hex digits. The LANMAN hash is created by DES
encrypting a well known string with the user's password
as the DES key. This is the same password used by
Windows 95/98 machines. Note that this password hash is
regarded as weak as it is vulnerable to dictionary
attacks and if two users choose the same password this
entry will be identical (i.e. the password is not
"salted" as the UNIX password is). If the user has a
null password this field will contain the characters
"NO PASSWORD" as the start of the hex string. If the
hex string is equal to 32 'X' characters then the
user's account is marked as disabled and the user will
not be able to log onto the Samba server.
All X's mean a disabled account. The following entry means no password
NO PASSWORDXXXXXXXXXXXXXXXXXXXXX:NO PASSWORDXXXXXXXXXXXXXXXXXXXXX
jchurch@gprep.org wrote:>
> I am trying to setup a /etc/smbpasswd file for my users. I use the
> following command to create the /etc/smbpasswd file
>
> cat /etc/passwd | ./mksmbpasswd.sh > /etc/smbpasswd
>
> Redhat 7.1, samba 2.2.5
>
> I thought that users could log onto the linux system and simply type the
> command:
>
> smbpasswd
>
> and it would ask for the new password. But it asks for an OLD password
> which never works. I thought the XXXXXX's meant it would not ask for
old
> passwords.
>
--
=====================================================================Herb Lewis
Silicon Graphics
Networking Engineer 1600 Amphitheatre Pkwy MS-510
Strategic Software Organization Mountain View, CA 94043-1351
herb@sgi.com Tel: 650-933-2177
http://www.sgi.com Fax: 650-932-2177
======================================================================