Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22
Well, when I try to do useradd -, -G users,audio 11 I get the error invalid user name '11'. I want to add all the users under there client number. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    Cant add user?


    Well, when I try to do useradd -, -G users,audio 11 I get the error invalid user name '11'.
    I want to add all the users under there client number.
    So I want to give them Numbers, why cant I?
    Is there a way to do that? (I know the old way to add users self editing the Shadow+Passwd file but I am scared of breaking this system)

    Cheers.
    Robin
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Code:
    # useradd '11'
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    heh no this aint that easy.
    I cant do that.
    Ill get the same error.
    Its what I tryed first. After that I did look at the Gentoo helpfile.
    They gave me: "useradd -, -G users,audio,wheel <UserName>"
    So, 11 doesnt work..

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Whats the -, for ?

    Not seen that before. I tried adding '11' on a FC7 box worked no problem.

    I'll try it on a RHEL4 box in a mo.
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  6. #5
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Ok,

    It works on RHEL4 as well, even without the quotes.

    -, just returns invalid option...
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  7. #6
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Heh well I cant do "useradd 11" in Gentoo Ill get invalid UserName..
    So, how can I change that..?
    I think I should be able to add a user called 11..

    ps.
    the first .- is a typo for useradd -m -G users,audio,wheel username
    New Users, please read this..
    Google first, then ask..

  8. #7
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Hmm, could be a pam setting ?
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  9. #8
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Ok, how to check?
    I know waht PAM is, but I dont know how to Configure it or Check it..
    New Users, please read this..
    Google first, then ask..

  10. #9
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Just been looking not found anything yet though.

    You might want to have a dig through /etc/libuser.conf
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  11. #10
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Will do next monday.
    Since this is at a pc at work.

    Thanks, Cheers
    New Users, please read this..
    Google first, then ask..

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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