I have a question about hard drives in Linux

This is a discussion on I have a question about hard drives in Linux within the Tech Board forums, part of the Community Boards category; I see the following partition for guest level accounts on a machine. t% ls -al /dev/mirror/gm0s2f crw-r----- 1 root operator ...

  1. #1
    Banned
    Join Date
    May 2007
    Location
    Berkeley, CA
    Posts
    329

    I have a question about hard drives in Linux

    I see the following partition for guest level accounts on a machine.

    t% ls -al /dev/mirror/gm0s2f
    crw-r----- 1 root operator 0, 94 Nov 20 05:41 /dev/mirror/gm0s2f
    I know it's possible for a guest user to read and write stuff to the hard drive from their account. How is this possible when the partition only has the read bit set for operator group?

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,248
    Quote Originally Posted by Overworked_PhD View Post
    I see the following partition for guest level accounts on a machine.



    I know it's possible for a guest user to read and write stuff to the hard drive from their account. How is this possible when the partition only has the read bit set for operator group?
    The permissions on the device node have nothing to do with it. The device was mounted by a user (root) who had privileges to do so, end of story.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    The thing that actually needs the read and write permissions is the filesystem driver, which is in the kernel. So it has these permissions.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LInux group permissions question
    By Overworked_PhD in forum Tech Board
    Replies: 2
    Last Post: 03-22-2009, 07:50 PM
  2. dual master hard drives? can this be done?
    By xddxogm3 in forum Tech Board
    Replies: 5
    Last Post: 07-23-2004, 08:18 PM
  3. Frequent hard drive access question
    By Xzyx987X in forum Windows Programming
    Replies: 2
    Last Post: 04-27-2004, 10:47 PM
  4. Math Question, hard
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 12-08-2001, 10:58 AM
  5. Question about LINUX
    By River21 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-17-2001, 06:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21