Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi, Cannot do useradd in my UML instance: Code: # useradd kalle Authentication failure # more fedora-release Fedora Core release 5 (Bordeaux) # uname -a Linux localhost.localdomain 2.6.27.9 #1 Tue ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6

    useradd not working in UML

    Hi,

    Cannot do useradd in my UML instance:

    Code:
    # useradd kalle
    Authentication failure
    
    # more fedora-release 
    Fedora Core release 5 (Bordeaux)
    
    # uname -a
    Linux localhost.localdomain 2.6.27.9 #1 Tue Dec 16 11:01:57 CET 2008 i686 i686 i386 GNU/Linux
    Any ideas?

    Thanks!

    /Mats

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    From the # prompt I presume you have logged in as root to do this?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by Rubberman View Post
    From the # prompt I presume you have logged in as root to do this?
    Yes, logged in as root. Forgot to mention that.

    /Mats

  4. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    Found this additional information in /var/log/secure when issuing the useradd command:

    Code:
    Sep 25 04:20:59 localhost useradd[1190]: User root: Authentication failure
    Not much, I know...

    /Mats

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,097
    You could try it like this:

    Code:
    /sbin/useradd
    or...

    Code:
    /usr/sbin/useradd
    ...still with root permissions, of course.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  6. #6
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by ozar View Post
    You could try it like this:

    Code:
    /sbin/useradd
    or...

    Code:
    /usr/sbin/useradd
    ...still with root permissions, of course.

    Thanks for the tips Ozar, same result though...

    Code:
    [root @ localhost log]# /usr/sbin/useradd jhjhj
    Authentication failure
    /Mats

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Are you trying to add the user from a remote terminal, such as a telnet or ssh session?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by Rubberman View Post
    Are you trying to add the user from a remote terminal, such as a telnet or ssh session?
    Trying to do this within a UML instance, which has previously been started like this:

    Code:
    ${DIR}/linux-2.6.27.9-vlan-hostfs-sctp ubda=${COWFS},${FILESYSTEM} mem=1024M eth0=daemon,${MACADDR},unix,/tmp/uml.ctl
    I don't know if that corresponds to a remote telnet or ssh session? (Would that be a problem for useradd?) I guess I'm just starting the UML process, so I'm not really doing a remote login anywhere...

    /Mats

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by mats77 View Post
    Trying to do this within a UML instance, which has previously been started like this:

    Code:
    ${DIR}/linux-2.6.27.9-vlan-hostfs-sctp ubda=${COWFS},${FILESYSTEM} mem=1024M eth0=daemon,${MACADDR},unix,/tmp/uml.ctl
    I don't know if that corresponds to a remote telnet or ssh session? (Would that be a problem for useradd?) I guess I'm just starting the UML process, so I'm not really doing a remote login anywhere...

    /Mats
    Sorry, but I'm not familiar with this. In my universe, UML is Unified Modeling Language.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  10. #10
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by Rubberman View Post
    Sorry, but I'm not familiar with this. In my universe, UML is Unified Modeling Language.
    Yeah, I know! Most people think of Unified Modeling Language (and not User-Mode Linux) when they hear UML...

    Thanks anyway!

    /Mats

Page 1 of 2 1 2 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
  •  
...