Unix administration - useradd with -p parameter and having to use the passwd right afterwards?

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > September 2004 > useradd with -p parameter and having to use the passwd right afterwards?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author useradd with -p parameter and having to use the passwd right afterwards?
Flip

2004-09-03, 2:57 am

Hello. I just created a user using the useradd command and using the man
pages, it says I can put a -p password on it all in one command. But the
account is unuseable. :< I have to use the passwd in order to activate the
account, but I'm putting in the same password as I did before. I tried the
usermod -U command but that didn't work either. What is the point of the
useradd command with the -p parameter if it's not used/ignored altogether?

Thanks.


Chris F.A. Johnson

2004-09-03, 5:52 pm

On 2004-09-02, Flip wrote:
> Hello. I just created a user using the useradd command and using the man
> pages, it says I can put a -p password on it all in one command. But the
> account is unuseable. :< I have to use the passwd in order to activate the
> account, but I'm putting in the same password as I did before. I tried the
> usermod -U command but that didn't work either. What is the point of the
> useradd command with the -p parameter if it's not used/ignored altogether?


Did you enter an _encrypted_ password?

man useradd:

-p passwd
The encrypted password, as returned by crypt(3). The default is
to disable the account.


--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com