Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-16-2005, 09:55 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 9

Rep: Reputation: 0
USB/ntfs drive and user permissions

I have an external ntfs-formatted USB drive. When I turn the drive on, Fedora FC3 correctly identifies this hardware and mounts it, but does so with root having sole permissions. Here's the fstab entry (automatically generated):

/dev/sdd1 on /media/remote type ntfs (rw,nosuid,nodev,fscontext=system_u:object_r:removable_t,user=rolf)

Despite the user=rolf entry, as a user I can only access the drive by becoming root, unmounting the drive, and remounting with umask=0222. I tried at first modifying fstab to add an entry such as

/dev/sdd1 /media/remote ntfs ro,defaults,umask=0222 0 0

which gives me access for that login session, but apparently I can't always count on the drive being mounted as the same device after a reboot (sometimes comes up /dev/sdd, and sometimes /dev/sde, etc.). Thus permanent modifications to fstab don't always seem to work. Is there some way other than by modifying fstab to ensure that this drive is reliably mounted with user read permissions at boot time? Does this behavior come about because of ntfs -- i.e., if the drive were fat, would the system mount the drive with the user permissions automatically?

Thanks much in advance, great forum. --Rolf
Old 02-16-2005, 10:37 AM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Actually this is an interesting question that I have asked myself for a long time

I have never tried this and live happy with changing device names, but I found this nice description about udev rules:

udev creates the device names in /dev. You can write rules to assign device names to certain devices. Have a look in the section about the digital camera. The basci idea behind this is to assign the hardware encoded ID of your external drive to a symlink, e.g. /dev/usbdrive and then mounting this sysmlink instead of the actual device name.

Another option would be to modify the hotplug script that creates this fstab-line and tell it to add the umask parameter.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
9.3(Here's how to Read Windows NTFS files on ext USB drive as user 1kyle SUSE / openSUSE 0 09-01-2005 03:59 AM
Read permissions for ntfs drive. Billy|B-A Linux - General 2 02-01-2005 10:20 PM
no user permissions on windows NTFS partition mcgoon Linux - Newbie 4 01-28-2005 03:26 AM
Change permissions on ntfs drive PieEater Linux - Newbie 2 09-11-2004 09:26 AM
ntfs drive permissions Mack Linux - General 4 01-13-2003 03:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration