Re: External drive is being mounted as read-only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/01/14 15:30, Sudhir Khanger wrote:
> Yes, the disk is being mounted as RW but not as a regular user.
>
> On your system when mounting ext4 usb-storage through a graphical file
> manager like Dolphin or Nautilus is it mounted under root:root user?

The disk gets mounted with permissions and ownership as stored in the file system when using ext4.  That is the way the filesystem works.

The command that I gave you "sudo chmod 1777 /run/media/donnie/storejet" will make the filesystem be the same as /tmp.

[root@meimei ~]# ll -d /tmp
drwxrwxrwt. 16 root root 440 Sep  1 15:12 /tmp

This allows anyone to write to the file system and since the sticky bit is set (t) only allows the owner of the file to delete it.

Now, if you want the file system to be mounted as a given user you can use the chown command.

As an example.....

[root@meimei ~]# grep maria /etc/passwd
maria:x:1003:1003:Maria Yang:/home/maria:/bin/bash

[root@meimei ~]# ll -d /run/media/egreshko/ext
drwxr-xr-x. 3 maria maria 4096 Sep  1 06:29 /run/media/egreshko/ext

Now, every time that partition is mounted it will be mounted as owned by maria and group maria.  The downside with that is if you have system where the UID/GID aren't 1003.

-- 
If you can't laugh at yourself, others will gladly oblige.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux