PDA

View Full Version : Fedora 7 : Automount and NTFS permissions



schotty
2nd June 2007, 11:36 AM
Hello,

I am curious as to how to change the default permissions on automounted USB external NTFS formatted drives? I am currently only having root get access, I would of course like to change this.

Thanks.

schotty
2nd June 2007, 12:37 PM
I got some help on IRC. This is what I did.

Add yourself to the group "Disk". Mine happened to be GID 6, so I hardcoded that (not sure offhand if having gid=disk is okay or not)

Since I want this to work for automount, I will need to find thepartition type for mount so automount will know what to do specifically with it.



[andrew@localhost ~]$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext3 147321916 4202504 135515048 4% /
tmpfs tmpfs 1037720 0 1037720 0% /dev/shm
/dev/sdb1 vfat 292890560 3869360 289021200 2% /media/300GB-USB
/dev/sdc1 fuseblk 732572000 436117512 296454488 60% /media/750GB Seagate FreeAgent
[andrew@localhost ~]$


Now, I need to enter the following line (modified as you see fit) to /etc/auto.misc


seagate-750gb -fstype=fuseblk,user,auto,fmask=0002,dmask=0002,uma sk=0002,gid=6,case_sensitive=false
[code]

Then run the following command to reload the auto.misc file:
[code]
[andrew@localhost etc]# sudo /etc/rc.d/init.d/autofs reload
Reloading maps
[andrew@localhost etc]#


Good to go then. Unmount if if need be, then plug it back in. At first I was confused that I did something wrong, since GNOME's drive properties said that ownership is still root.root, with read only permissions, but creating and deleting of files works just fine (for me at least).

Thanks.