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

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

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

    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.


    Flip Guest

  2. Similar Questions and Discussions

    1. Date Parameter For Saved Parameter Queries
      Hi again, I finally got to using saved parameter queries in my application (a big thank you to Bob Barrows for helping me with this). Currently...
    2. Blue Screen / Recovery / Admin Passwd not Assgnd / User Passwd Assgnd
      As the subject states, I am having a problem getting into Recovery mode via my install CD. I uninstalled some backup software and only get the...
    3. useradd: ERROR: xxx is already in use.
      I removed the xxx user and tried to add it again, but an err msg generated: useradd: ERROR: xxx is already in use. command userdel -r xxx was...
    4. PAM + /etc/passwd
      Im sure this is a common question, but I cant find an answer. Is it possible to use PAM and store a common UID for the user instead of having to...
    5. /etc/passwd
      Hello php-general, my server is running freebsd 5.0 and yet i havent fixed bug that i knew long time ago, so can anyone point me with some...
  3. #2

    Default Re: useradd with -p parameter and having to use the passwd right afterwards?

    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 [url]http://cfaj.freeshell.org/shell[/url]
    ================================================== =================
    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
    Chris F.A. Johnson Guest

  4. #3

    Default Re: useradd with -p parameter and having to use the passwd rightafterwards?

    in comp.unix.admin i read:
    >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?
    it probably was used, but you likely provided something other than what is
    expected.

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

    --
    a signature
    those who know me have no need of my name Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139