Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I've googled around for some hours and I can't find a straight answer to this question...maybe there isnt' one!
I want to use my USB external drive as backup storage, so I need write permission as non-root. The filesystem is ext2, and my fstab file states the typical line: /dev/sda1 /media/usbdisk auto pamconsole,exec,noauto,fscontext=system_u: object_r:removable_t,managed 0 0
I have read permissions to the drive as non-root, but can't write. Any ideas will be much remuch appreciated.
(Fedora Core 3)
jose
I did but it did not work . The line now reads as /dev/sda1 /media/usbdisk auto pamconsole,users,exec,noauto,fscontext=system_u bject_r:removable_t,managed 0 0
When I issued mount /media/usbdisk I looked into /etc/mtab file and got the line /dev/sda1 /media/usbdisk ext3 rw,nosuid,nodev,fscontext=system_ubject_r:removable_t,user=jmborr 0 0
so according to /etc/mtab, I (jmborr) has write access (rw). However, when I cd to /media/usbdisk and touch junk I got: touch: cannot touch `junk': Permission denied.
By the way, after mounting /media/usbdisk, the directory still belongs to root: drwxr-xr-x 4 root root 4096 Oct 16 21:09 usbdisk
Shouldn't the ownership have changed to "jmborr" ? jose
I found two quick and dirty ways to gain write access:
One, after mounting as single user, switch to root and change access bits to /media/usbdisk (chmod go+w usbdisk)
Two, chown jmborr:jmborr usbdisk
But these have nothing to do with the mounting process, and one needs root access .
jose
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.