LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-18-2008, 08:17 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
/sbin access available to normal users


Why is it that, if administrative binaries are supposed to live in /sbin, and not be accessible to normal users, why are they? Entering "/sbin/<command>" allows you to execute a program as a normal user.

I'd always assumed (dumb of me) that /sbin was not accessible.
 
Old 04-18-2008, 09:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Most of the programs under /sbin (and/or /usr/sbin) won't execute
potentially damaging parts of their abilities if invoked by some
other user than root, some won't do anything at all, so it's not
a big deal to have the directory(ies) accessible. No one ever
said they're not supposed to be accessible, btw.


Cheers,
Tink
 
Old 04-18-2008, 10:14 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
A lot of these commands can supply useful information run as a normal user. ifconfig is one example. As a normal user you can't use them to make changes. The commands are in a read-only mode unless they are run as root. Then they can make changes to the system.

Some commands like fdisk and mkefs are less useful since you don't have access to the hard disk devices, but you could use them to make a filesystem on a regular file.
 
Old 04-18-2008, 11:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by jschiwal View Post
Some commands like fdisk and mkefs are less useful since you don't have access to the hard disk devices, but you could use them to make a filesystem on a regular file.
Can you please contact me via e-Mail?


Cheers,
Tink
 
Old 04-19-2008, 09:25 AM   #5
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Thanks to both of you. Do the programs themselves have identity checks, or is it just that /etc is ro to normal users, so the programs can't make changes?
 
Old 04-23-2008, 06:04 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Almost all of the files in the system directories will have root as the owner and group owner. They won't be writable be "others". There are some such as /etc/sshd/sshd_config that can only be read by root. Some config files are are owned by a system user rather than root.

Some distro's use selinux protection with allow only a certain process to access the config file even though the normal permissions would allow it.
 
  


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
how to set permissions for normal users to access windows hard drives on suse 10? akshay_jp SUSE / openSUSE 4 12-25-2005 12:33 PM
Allowing normal users read-write access to Windows partitions Aphex_Twin2 Slackware 5 05-23-2005 09:22 AM
Kernel Panic (/usr/sbin/chroot) after chrooting some users. Niels@debian Linux - General 0 08-12-2004 05:22 PM
Normal users can't su to root? Why not? jon_k Linux - Software 12 07-09-2004 04:09 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM

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

All times are GMT -5. The time now is 04:47 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