Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Non root user can't access function in /sbin/ :Cmd not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Coume
Guru
Guru


Joined: 11 Jun 2004
Posts: 306

PostPosted: Tue Mar 29, 2005 7:22 am    Post subject: Non root user can't access function in /sbin/ :Cmd not found Reply with quote

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:
Quote:
/sbin/backup_zip


With root I can use this command in all folders, just by typing:
Quote:
#backup_zip

But with non root user, I always have to type:
Quote:
$/sbin/backup_zip

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
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Tue Mar 29, 2005 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Tue Mar 29, 2005 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Coume
Guru
Guru


Joined: 11 Jun 2004
Posts: 306

PostPosted: Tue Mar 29, 2005 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum