View previous topic :: View next topic |
Author |
Message |
Coume Guru
Joined: 11 Jun 2004 Posts: 306
|
Posted: Tue Mar 29, 2005 7:22 am Post subject: Non root user can't access function in /sbin/ :Cmd not found |
|
|
Hello,
I remember that I solved that on my server but I can't remember how
Basically, all the non root users can't access the function in /sbin/
I mean, if I have the file:
With root I can use this command in all folders, just by typing:
But with non root user, I always have to type:
Because if I don't use a full path, it won't find the command.
Anyone remember what is the trick there???
Thanks in advance
Ludo _________________ MythTVtalk.com - The MythTV Community forum |
|
Back to top |
|
|
EzInKy Veteran
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Tue Mar 29, 2005 7:56 am Post subject: |
|
|
Quote: | Basically, all the non root users can't access the function in /sbin/ |
If you really wanted them to you could alter their paths, but do you really want them to? _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Tue Mar 29, 2005 8:24 am Post subject: |
|
|
Put the following in your ~/.bashrc file: Code: | export PATH="${PATH}:/sbin:/usr/sbin" |
It makes life much easier especially if you are using sudo a lot because it will allow tab completion for commands in the sbin directories. |
|
Back to top |
|
|
Coume Guru
Joined: 11 Jun 2004 Posts: 306
|
Posted: Tue Mar 29, 2005 11:17 am Post subject: |
|
|
BitJam wrote: | Put the following in your ~/.bashrc file: Code: | export PATH="${PATH}:/sbin:/usr/sbin" |
It makes life much easier especially if you are using sudo a lot because it will allow tab completion for commands in the sbin directories. |
Thank you BitJam!
That was the thingie I was looking for
Ludo _________________ MythTVtalk.com - The MythTV Community forum |
|
Back to top |
|
|
|