Welcome, Guest. Please Login or Register.
Home Help Search Login Register


Pages: 1
Send Topic Print
bash: <command> command not found (Read 2306 times)
Mikayil
Rookie
*




Posts: 2
bash: <command> command not found
29.11.2007 at 21:06:18
 
[mika@localhost ~]$ $PATHE
[mika@localhost ~]$ $PATH
bash: /usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/b
in:/usr/X11R6/bin:/home/mika/bin: No such file or directory
[mika@localhost ~]$ userdel
bash: userdel: command not found
[mika@localhost ~]$  
[mika@localhost ~]$  
 
i keep getting this irritating messages. Does anybody know how to "activate " userdel command. I can see full description of that command by typing man userdel
 
Back to top
 
 
Email   IP Logged
roy
Administrator
*


from among the stars
will I bring thee
down...

Posts: 573
Gender: male
Re: bash: <command> command not found
Reply #1 - 29.11.2007 at 22:12:55
 
By default, "userdel" as well as any other administrative command is only in the user root's (administrator's) path. On my system, the path to userdel is   /usr/sbin/userdel. Even if you type the whole path, you are only allowed to run (most) system commands if you have admin privileges.
 
If you are in the sudoer's file, you can invoke userdel while being logged on as 'mika' using this command 'sudo userdel' If you are not in the sudoer's file, you can include yourself using visudo command (run it as root)
 
Alternatively, log on as root and run userdel. Or type "su -", enter the superuser mode and run any admin command. then exit back to you 'mika' session.
Back to top
 
 
WWW   IP Logged
Mikayil
Rookie
*




Posts: 2
Re: bash: <command> command not found
Reply #2 - 30.11.2007 at 21:34:18
 
I tried using that command by logging on as root but unfortunately it did not work. It seems that my shell does not look to the "place" where that commands are located.
Back to top
 
 
Email   IP Logged
roy
Administrator
*


from among the stars
will I bring thee
down...

Posts: 573
Gender: male
Re: bash: <command> command not found
Reply #3 - 30.11.2007 at 22:02:50
 
log on as root and type "which userdel". Unless you get smth slike /usr/sbin/userdel, this utility has not been installed on your system.
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print