FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    26

    useradd: command not found

    Hi,
    I'm following the Sourceforge instructions to get my Intel PRO/Wireless card to work. I've downloaded and installed the Regulatory Daemon and I'm attempting to remove root privileges using the following command as per the instructions but I get the following error message:
    Code:
    [root@bellsouth ~]# useradd ipw3945d -s /bin/false
    bash: useradd: command not found
    What am I doing wrong?

    Thanks very much,
    gr

  2. #2
    Join Date
    Jul 2005
    Posts
    591
    What's the output of which useradd ?

  3. #3
    Join Date
    Aug 2004
    Location
    SF
    Age
    52
    Posts
    14
    Quote Originally Posted by sentry
    What's the output of which useradd ?
    # whereis useradd
    useradd: /usr/sbin/useradd /usr/share/man/man8/useradd.8.gz

    locate is your friend

    # locate useradd
    warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
    /etc/default/useradd
    /usr2/share/man/fr/man8/useradd.8.gz
    /usr2/share/man/man8/useradd.8.gz
    /usr2/share/man/ja/man8/useradd.8.gz
    /usr2/share/man/id/man8/useradd.8.gz
    /usr2/share/man/pl/man8/useradd.8.gz
    /usr2/share/man/it/man8/useradd.8.gz
    /usr/bin/seuseradd
    /usr/sbin/luseradd
    /usr/sbin/useradd

  4. #4
    Join Date
    Feb 2005
    Posts
    415
    When a user can't get a program to work even as root,
    I think it is likely they forgot the dash ( - )

    Code:
    su - 

  5. #5
    Join Date
    Aug 2006
    Posts
    26
    Thanks to all who replied to my post. I had no idea you're supposed to put a dash after su!

    Thanks again,
    gr

  6. #6
    Join Date
    May 2004
    Location
    Colorado
    Age
    45
    Posts
    159
    I belive that a su without a dash will just update your current UID. A su - (short for su -login) will log you in as root and update your environment accordingly, PATH included.

  7. #7
    Join Date
    Jun 2008
    Posts
    2
    hi
    login as root

    #cd /usr/sbin
    #./useradd username
    please notice to "./"
    have nice time

  8. #8
    Join Date
    Jul 2006
    Posts
    1,123
    It is not necessary to update the environment. There are two paths to look in for commands that are not available to normal users... /sbin and /usr/sbin. Bearing this in mind, you can always specify the full path to the command when executing the command....
    su
    /usr/sbin/useradd blah blah

Similar Threads

  1. Replies: 5
    Last Post: 20th June 2013, 03:32 PM
  2. Add An User Without Using useradd command
    By gorabhat in forum Using Fedora
    Replies: 1
    Last Post: 7th March 2009, 04:24 PM
  3. /usr/sbin/useradd - why not just useradd?
    By melbs in forum Using Fedora
    Replies: 7
    Last Post: 22nd January 2009, 11:43 PM
  4. gcc command not found
    By rsnow in forum Using Fedora
    Replies: 4
    Last Post: 9th July 2007, 10:48 PM
  5. Replies: 1
    Last Post: 13th July 2005, 12:09 AM

Tags for this Thread

Posting Permissions

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