Results 1 to 5 of 5
Hi all,
I have a really weird problem here.
When i try to add a user like this
Code:
useradd test2 -g labels -m -d /home/labels/test2 -s /bin/sh -p $1$FaOtejz7$4BbqatyzZ6AZ0WQHV1xlv.
...
- 01-05-2007 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 5
Sarge: useradd -p encrypted passwords not adding right password
Hi all,
I have a really weird problem here.
When i try to add a user like this
The user is added normally but the password does NOT workCode:useradd test2 -g labels -m -d /home/labels/test2 -s /bin/sh -p $1$FaOtejz7$4BbqatyzZ6AZ0WQHV1xlv.
(so i cannot login with that user - using "testuserpass" in this case)...
when i go to Webmin the user's pre-encrypted password is different..
and when i add "$FaOtejz7$4BbqatyzZ6AZ0WQHV1xlv." (the same as above) for the same user in the webmin form.. the password is added correctly!
I had made the same in Woody and all worked fine..
could it be that useradd in sarge is bugy??
i do not think so.. so please give me some help
Thanks,
Alex
- 01-05-2007 #2
My guess is you need to drop the $1 from the beginning.
- 01-05-2007 #3Just Joined!
- Join Date
- Jan 2007
- Posts
- 5

you have a good eye.. but that was just a copying mistake on this forum post
the string i added to webmin is actually "$1$FaOtejz7$4BbqatyzZ6AZ0WQHV1xlv." so with the "$1".. i also double checked just to be sure.. the problem is still there..
- 01-05-2007 #4Just Joined!
- Join Date
- Jan 2007
- Posts
- 5
resolved here:
http://forums.debian.net/viewtopic.php?p=45579#45579
Thanks,
Alex
- 06-17-2011 #5Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
hi
-m and -d options are not be used at a time



