LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-17-2010, 08:04 PM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
LFS and /sbin security issues?


So here is the deal. I was trying to figure out what my thumb drive had set for the partition type so I needed to run cfdisk. Anyway cfdisk is located in /sbin on my system. So I ran the command /sbin/cfdisk and it worked and allowed me to pull up the thumb drive and even work with and save partitions. Well that did not concern me too much since I am supposed to have access to that device anyway but it got me thinking if I could do it with the root partition drive and low and behold it does and I am also allowed to run anything in /sbin? From what I remember are users not supposed to be able to execute code here? The permissions for this directory are drwxr_xr_x which allows all users to be able to execute code here. This is how the directories are setup by default when building a system. Or is having normal user access to the programs in sbin not a problem?
 
Old 01-17-2010, 08:10 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
Hmmm never mind it seams that /sbin was not created for security reasons but just as a way to seperate binaries for managing the system and normal user programs.


Quote:
We recommend that users have read and execute permission for everything
in /sbin except, perhaps, certain setuid and setgid programs. The
division between /bin and /sbin was not created for security reasons or
to prevent users from seeing the operating system, but to provide a
good partition between binaries that everyone uses and ones that are
primarily used for administration tasks. There is no inherent security
advantage in making /sbin off-limits for users.
Quote taken from: http://tldp.org/LDP/Linux-Filesystem...html/sbin.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Linux Live Networking Issues thomas55 Linux From Scratch 0 07-21-2009 06:49 AM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 10:16 AM
ipv6 tunneling setup issues, /sbin/ip errors zer0python Linux - Networking 0 01-30-2005 09:43 PM
Microsoft Wireless Desktop (PS/2 Keyboard and mouse) issues with /sbin/loader on FC3 BiafraRepublic Fedora - Installation 0 01-24-2005 06:47 PM
rdesktop compile issues on LFS system Z3u55 Linux From Scratch 3 07-03-2004 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:41 AM.

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