useradd with -p parameter and having to use the passwd right afterwards?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > useradd with -p parameter and having to use the passwd right afterwards?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-03-04 07: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.







[ Post a follow-up to this message ]



    Re: useradd with -p parameter and having to use the passwd right afterwards?  
Chris F.A. Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-03-04 10: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 th
e
> 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register