LinuxQuestions.org
Weather apps tell you it'll rain. Wyndo tells you when to go.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-24-2006, 11:25 AM   #1
Skarekroh
LQ Newbie
 
Registered: Mar 2005
Location: N. Texas
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
User permissions for external USB drive FC5


I recently performed a clean install of FC5 on my machine (dual boot with Windows XP, Windows on one drive and Fedora on a separate drive), and all is smooth and slick except for one thing - I have an external USB drive (/dev/sda1) that auto-mounts, but as root:root and with root-only read-only permissions, so when I'm logged into the machine as a regular user, I can see the drive, but not its contents. The drive is NTFS, and I do have kernel-module-ntfs installed, and can see the Windows drive as a user through proper /etc/fstab configuration.

To provide further clue, my USB thumb drive functions normally - of course, it's using FAT, rather than NTFS.

I've tried resetting permissions/ownership on the NTFS external as root, but if I power-cycle it, or reboot the machine, it remounts as root:root 200.

Is there a way to configure FC5 to allow the drive to automount with all user read-access?

Thanks for your help, and let me know if more details will be helpful.

Rob
 
Old 03-24-2006, 12:58 PM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
You need to add the umask='xxx' to the options list in fstab. e.g.

/dev/sda1 /mnt/usbdrive ntfs defaults, umask=222 0 0

which sets the directory mode of the drive to 555 (r-xr-xr-x) and files 444 (r--r--r--).

This is apt as it's best to mount an nt filesystem as read-only.
 
Old 03-24-2006, 06:29 PM   #3
Skarekroh
LQ Newbie
 
Registered: Mar 2005
Location: N. Texas
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
The drive doesn't show up in /etc/fstab as /dev/sda1, but it does appear as /dev/sda1 when I issue a 'df -h'.

Adding '/dev/sda1 /media/Backup ntfs defaults, umask=0222 0 0' to /etc/fstab doesn't do the trick, likely because the drive is automatically re-setup each time, being hotpluggable.

I do have /dev/hda1 set up the way you mention above, for the /mnt/windows partition, and it works, but that is a static, internal drive.

In FC4, this automagical control was done via fstab-sync, but the release notes for FC5 mention that it's done by a different mechanism in the new release.

I'm fine with mounting as read-only if the drive is NTFS - I'd just like regular users to be able to read/execute from it, as well as root.

Last edited by Skarekroh; 03-25-2006 at 10:24 AM.
 
Old 03-24-2006, 08:57 PM   #4
buzzbiker
Member
 
Registered: Jul 2002
Location: Oregon
Distribution: Fedora Core 7 - vista
Posts: 38

Rep: Reputation: 15
Why?. What was the.Can you Believe? Can this be true I don't get it.
|
|
V
7.7. No automatic fstab editing for removable media

The fstab-sync facility has been removed. In Fedora Core , the fstab-sync program is removed in favor of desktop specific solutions for mounting removable media. Entries for hotplug devices or inserted media are no longer automatically added to the /etc/fstab file. Command-line users may migrate to gnome-mount, which provides similar functionality.


file:///usr/share/doc/HTML/index.html#id311421
 
Old 03-27-2006, 06:29 PM   #5
Skarekroh
LQ Newbie
 
Registered: Mar 2005
Location: N. Texas
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Cuh-uriously enough, I set SELinux to permissive, rebooted, couldn't mount as even root, so I turned SELinux off, rebooted again, and voila, it works exactly the way I wanted it to.

Call it solved
 
Old 04-29-2006, 10:12 AM   #6
Alarmo
LQ Newbie
 
Registered: Apr 2006
Location: Atlanta, GA
Distribution: Fedora Core 5
Posts: 1

Rep: Reputation: 0
I have the exact same set-up and problem as Skarekroh, but turning SELinux off and rebooting doesn't do anything. I may have not turned off SELinux correctly (I went to /etc/sysconfig/selinux and set SELINUX to "disabled"). Otherwise, I have no idea why it's not working. I'm also not crazy about disabling security in order to plug in a removable drive. Any light that can be shed on this? Thanks!

Greg
 
Old 05-19-2006, 01:33 PM   #7
Skarekroh
LQ Newbie
 
Registered: Mar 2005
Location: N. Texas
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
As a bump to bring this back to light, after a yum upgrade of the kernel to the latest released, the drive reverted to not readable by the user, owned by root:root with read/execute but not write permissions for root (ntfs, so that's fine). Now, like Alarmo, shifting to Permissive SELinux, then Disabled SELinux is not doing the trick.

Ideas?
 
Old 04-15-2007, 11:57 PM   #8
angelpoplin
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
FC6 NTFS-3g automount umask on removable media

This is an old thread but I had an issue with the umask and a removable NTFS partition on USB with NTFS-3g (FC6) - it would always mount with a 222 umask and I could not write or modify files in Gnome. After spending time reading about all the other people with this problem and not finding a solution I came across the gnome-mount utility. You can set the mount options for removable media this way.

gnome-mount --verbose -p mountpoint -o umask=000 --write-settings

and to display settings

gnome-mount --verbose -p mountpoint --display-settings

you can also use -d /dev/device after you plug it in - the same goes for the mount point I was not able to get it to modify the mount options with the drive unplugged and using -h.

BTW, lshal tell you a bit about the mounted volumes(and other devices).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only access USB external drive when in ROOT user bytebull Mandriva 15 01-06-2007 12:02 PM
Fedora Core 4 External Hard drive on FC5 mrground Linux - Hardware 1 03-24-2006 04:25 PM
external hard drive permissions djljjm Linux - Hardware 12 04-06-2005 01:23 PM
USB/ntfs drive and user permissions FC3noob Linux - Newbie 1 02-16-2005 10:37 AM
Setting permissions on an external USB hard drive so that all users can read from it? Pi Man Linux - Hardware 2 09-07-2004 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:33 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions