1. OCAU Merchandise now available! Check out our 20th Anniversary Mugs, Classic Logo Shirts and much more! Discussion here.
    Dismiss Notice

changing owner/mode of a partition

Discussion in 'Other Operating Systems' started by ryooma, Dec 7, 2010.

  1. ryooma

    ryooma (Banned or Deleted)

    Joined:
    Jan 5, 2005
    Messages:
    1,265
    Location:
    zipcode 5163
    I want to either change the owner or the mode (to 777) of a partition.

    Everytime I reboot, it goes back to default. I logged in as root to change owner/mode.

    Any ideas on how to make the changes permanent?

    thank you :)
     
  2. shift

    shift Member

    Joined:
    Jul 28, 2001
    Messages:
    2,942
    Location:
    Hillcrest, Logan
    What file system?
     
  3. OP
    OP
    ryooma

    ryooma (Banned or Deleted)

    Joined:
    Jan 5, 2005
    Messages:
    1,265
    Location:
    zipcode 5163
    none at the moment. its just there sitting

    hasnt been partition or formatted.
     
  4. shift

    shift Member

    Joined:
    Jul 28, 2001
    Messages:
    2,942
    Location:
    Hillcrest, Logan
    Are you trying to change the owner/mode of the device file? Usually you don't want to do that.

    If you really do want to do that, set up a udev rule.
     
  5. OP
    OP
    ryooma

    ryooma (Banned or Deleted)

    Joined:
    Jan 5, 2005
    Messages:
    1,265
    Location:
    zipcode 5163
    working now :) ty :)
     
  6. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    42,502
    Location:
    Brisbane
    I can't think of a time you'd EVER want to do that.
     
  7. shift

    shift Member

    Joined:
    Jul 28, 2001
    Messages:
    2,942
    Location:
    Hillcrest, Logan
    If you want to access the raw partition in userspace as a non-root user.

    eg. For squid's COSS, which can use a raw partition.
     
  8. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    42,502
    Location:
    Brisbane
    Most devices use the following permissions:

    ~$ ls -la /dev/sda
    brw-rw---- 1 root disk 8, 0 2010-12-06 17:24 /dev/sda

    Making any user/service a member of the "disk" group allows them access to the device, which IMHO would be a better option.

    Even so, I'd be weary of letting anything access the system at the device level. Outside of something very large like Oracle, you'd need a damned good reason to convince me that the performance gains would be worth it.
     
  9. shift

    shift Member

    Joined:
    Jul 28, 2001
    Messages:
    2,942
    Location:
    Hillcrest, Logan
    I'd rather give access to one partition than all partitions.

    Yes, it's pretty rare that it would really be worth it.
     

Share This Page

Advertisement: