LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2005, 08:29 AM   #1
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
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.

Last edited by kornerr; 02-25-2005 at 08:30 AM.
 
Old 02-25-2005, 08:37 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
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.
 
Old 02-25-2005, 08:52 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
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.
 
Old 02-25-2005, 09:21 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
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.
 
Old 02-25-2005, 09:29 AM   #5
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
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

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

Last edited by kornerr; 02-25-2005 at 09:33 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 04:44 PM
$PATH for root to /sbin mickeyboa Fedora 6 01-15-2005 11:07 AM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM
/sbin/clock and /sbin/hwclock: out of memory problems victor2000 Linux - General 0 07-29-2003 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration