Fedora Linux Support Community & Resources Center
  #1  
Old 14th September 2006, 04:25 PM
geeare1 Offline
Registered User
 
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
Reply With Quote
  #2  
Old 14th September 2006, 04:26 PM
sentry Offline
Registered User
 
Join Date: Jul 2005
Posts: 591
What's the output of which useradd ?
Reply With Quote
  #3  
Old 14th September 2006, 04:55 PM
mr_manny Offline
Registered User
 
Join Date: Aug 2004
Location: SF
Age: 48
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
Reply With Quote
  #4  
Old 14th September 2006, 05:16 PM
homey Offline
Registered User
 
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 - 
Reply With Quote
  #5  
Old 15th September 2006, 03:00 PM
geeare1 Offline
Registered User
 
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
Reply With Quote
  #6  
Old 15th September 2006, 11:52 PM
sebnukem Offline
Registered User
 
Join Date: May 2004
Location: Colorado
Age: 41
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.
Reply With Quote
  #7  
Old 17th June 2008, 05:45 PM
f14f21 Offline
Registered User
 
Join Date: Jun 2008
Posts: 2
hi
login as root

#cd /usr/sbin
#./useradd username
please notice to "./"
have nice time
Reply With Quote
  #8  
Old 17th June 2008, 05:55 PM
A.Serbinski Offline
Registered User
 
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
Reply With Quote
Reply

Tags
command, useradd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
terminal command problem "chkconfig: command not found" Omni-Tom Using Fedora 5 20th June 2013 03:32 PM
Add An User Without Using useradd command gorabhat Using Fedora 1 7th March 2009 03:24 PM
/usr/sbin/useradd - why not just useradd? melbs Using Fedora 7 22nd January 2009 10:43 PM
gcc command not found rsnow Using Fedora 4 9th July 2007 10:48 PM
Fedora Core 3 - useradd command problem after machine joined LDAP jvin Using Fedora 1 13th July 2005 12:09 AM


Current GMT-time: 03:22 (Friday, 18-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat