Results 1 to 10 of 10

Thread: Normal User rw access to ext4 partitions

  1. #1
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Normal User rw access to ext4 partitions

    Hi,

    I need to access sdc2 & sdc4 from SUSE, have shared the partitions already but i am unable to write data there. I checked permissions, it says only owner can change the permission. I need to get rw access for a normal user. Have chmod it already but it didnt work.

    Best,

    David

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Re: Normal User rw access to ext4 partitions

    Fixed it -

    mount /dev/sdc4 /mnt/sdc4
    sudo chmod 777 /mnt/sdc4

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Normal User rw access to ext4 partitions

    Any solution involving mode 777 is usually wrong and unsafe.

  4. #4
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Re: Normal User rw access to ext4 partitions

    how do I do it the other way.

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Normal User rw access to ext4 partitions

    If you are the only user, make yourself the owner of that directory. But only if it's not a system directory but somewhere you store your files.

    If they are system directories, then you are not meant to write into them as a normal user as a matter of course.

  6. #6
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Re: Normal User rw access to ext4 partitions

    One is disk back up partition and 1 is data back up partition. How do i make myself a owner?

  7. #7
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Normal User rw access to ext4 partitions

    The owner, there is only one owner for an object.

    chown is the program you want.

  8. #8
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Re: Normal User rw access to ext4 partitions

    I figured chown, how should I run it

    chown david:david /mnt/sdc4
    or something else.

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Normal User rw access to ext4 partitions

    There may not be a group called david, you are probably in group users. So

    chown david:users /mnt/sdc4

    BTW, /mnt/* is not a good place to mount things longer than temporarily because /mnt is often used already. Something like /backup, or /extra or whatever makes sense to you.

  10. #10
    Join Date
    Jun 2010
    Location
    London
    Posts
    572

    Default Re: Normal User rw access to ext4 partitions

    Quote Originally Posted by ken_yap View Post
    BTW, /mnt/* is not a good place to mount things longer than temporarily because /mnt is often used already. Something like /backup, or /extra or whatever makes sense to you.
    Noted, will keep that in mind. Thanks for heelping me out with this.

    Best,

    David

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •