LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-23-2005, 02:10 PM   #1
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Rep: Reputation: 15
command usermod not found


says the command usermod not found (using Putty to connect with a Red Hat Enterprise Server) . in bash shell.

options?
 
Old 11-23-2005, 02:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
You have to "su -" to root, the file is in /usr/sbin
 
Old 11-24-2005, 03:25 AM   #3
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
[root@firebird sbin]# usermod brian

bash: usermod: command not found

[root@firebird sbin]# usermod

bash: usermod: command not found

[root@firebird sbin]# emacs usermod

--------------------------------------------------------
^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@P\233^D^H4^@^@^@^@^@^@^@^@^@4^@ \
^@^G^@(^@^X^@^W^@^F^@^@^@4^@^@^@4\200^D^H4\200^D^H^@^@^@^@^@^@^E^@^@^@^D^@^@^\
@^C^@^@^@^T^A^@^@^T\201^D^H^T\201^D^H^S^@^@^@^S^@^@^@^D^@^@^@^A^@^@^@^A^@^@^@^@\
^@^@^@^@\200^D^H^ ...etc
------------------------------------------------------------

what am i doing wrong here?
 
Old 11-24-2005, 03:44 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
'usermod' might not be in your path. Try the full path instead.

-twantrd
 
Old 11-24-2005, 08:13 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
Quote:
Originally posted by Tinkster
You have to "su -" to root, the file is in /usr/sbin
You have to read more carefully. The quote solves your problem completely. Trust Tinkster

You have two choices:
1) the program you want to start is included in your path
2) you start the program giving the full path

ad 1) Starting su with the option " -" gives you the full path root would have when logging in to the system after startup. So directories like /usr/sbin, /sbin or /opt/kde/bin become part of roots path variable after doing su and will be searched for commands.
ad 2) the other possibility is to start /usr/sbin/usermod (giving the full path) or doing ./usermod in the /usr/sbin directory (giving relative path)
 
Old 11-25-2005, 05:38 AM   #6
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
ok, I'll get to this today. thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
usermod and groupadd meDream Linux - Newbie 0 10-05-2005 05:01 AM
usermod / useradd ? bibilit Linux - Software 1 12-19-2003 02:16 AM
usermod shanenin Linux - Software 4 12-08-2003 08:49 AM
usermod thelight1 Linux - Newbie 1 07-24-2003 12:00 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration