LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? (http://www.linuxquestions.org/questions/linux-general-1/want2use-sbin-cmds-undr-non-root-account-w-o-sudo-is-it-safe-2-add-sbin-2-my-path-294709/)

kornerr 02-25-2005 08:29 AM

Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH?
 
I want to use cmds from /sbin under an avarage account without sudo. Is it safe to add /sbin to my $PATH?
Won't it make me another root?
Thanks.

satinet 02-25-2005 08:37 AM

the answer to this in no.

This will let you run the binaries as root in /sbin

But it won't give you the full range of rootly powers......

Why would you want to do this anyway?

Changed your UID to 0 if you want a second root user (but with your user name)

Don't forget that user names don't really count for anything just UID's.

oneandoneis2 02-25-2005 08:52 AM

Eh?

Just adding /sbin to his $PATH won't do anything of the sort.

Adding /sbin to the $PATH will make your shell look there for commands, but it won't give you any permission to use them. That's a whole 'nother matter.

satinet 02-25-2005 09:21 AM

lol

sorry, I misread the orgional post. I thought you where going to give a user sudo access to everything in /sbin. Hence my question 'why would you want to do this?'

Anyway, just putting it in your path will just mean that you get access denied/file not found errors.

kornerr 02-25-2005 09:29 AM

Thanks, satinet & oneandoneis2. I understood that UID change is what I really want. I just want to keep all settings after reinstall because I have /home on another partition and don't format it when reinstall the sys.
C U:)
BTW: I'm trying Mdk9.2 again:D

EDIT: satinet: no, I understood that I was misthinking:) You cleaned up my brain a bit...


All times are GMT -5. The time now is 09:23 PM.