View previous topic :: View next topic |
Author |
Message |
xtz Apprentice
Joined: 29 Oct 2007 Posts: 181 Location: Singapore
|
Posted: Thu Oct 29, 2009 1:16 pm Post subject: Really stupid question, but still... |
|
|
Ok, let's assume I want a user to be able to execute something that's in /sbin, without having to enter the full path to the executable. That could be easily accomplished by adding /sbin to his PATH variable. What if I want this done, only for this executable, not adding the whole /sbin directory to his PATH? Is there any other way besides creating a symlink to the executable in some of the directories, included in the default path? |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Oct 29, 2009 2:02 pm Post subject: |
|
|
I'm pretty sure creating a symlink within /usr/local/bin is the "proper" solution, the only alternative I can see is a shell alias.
You could always hack the ebuild to have the executable instaled in /bin rather than /sbin, but seriously I doubt that'd be worth the hassle. _________________ "You have to invite me in" |
|
Back to top |
|
|
|
|
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
|
|