You are not logged in.

#1 2004-10-12 18:40:43

mdirolf
Member
From: Princeton, NJ
Registered: 2004-05-21
Posts: 69

/etc/fstab + ownership

I am using /etc/fstab to automount my windows partition when i start Arch.  Is there an option to automatically change the ownership/permissions of the newly mounted filesystem so that a specific user has access to all of the files rather than just the superuser?  Mainly I need this because all of my music is on my windows partition, and i currently am running chown after every boot in order to play it in xmms.
thanks,
mike

Offline

#2 2004-10-12 18:50:14

Creepy
Member
From: The Netherlands
Registered: 2004-09-20
Posts: 48

Re: /etc/fstab + ownership

mdirolf wrote:

I am using /etc/fstab to automount my windows partition when i start Arch.  Is there an option to automatically change the ownership/permissions of the newly mounted filesystem so that a specific user has access to all of the files rather than just the superuser?  Mainly I need this because all of my music is on my windows partition, and i currently am running chown after every boot in order to play it in xmms.
thanks,
mike

Take a look at man mount smile

Those options can be in /etc/fstab as wel. You're looking for the uid= option, which will end up in /etc/fstab like this:

/dev/discs/disc0/part6 /windows/d vfat defaults,uid=1000 0 0

Offline

#3 2004-10-12 21:07:02

patrix
Member
Registered: 2004-08-27
Posts: 51

Re: /etc/fstab + ownership

uid would only allow this user to access it.. I use umask=000 so everyone has rwx permission to it (but of course, since ntfs is read-only nobody can write...)

You can customize your umask if you know the permission system.. just substract the permissions you want from 777 and you get the umask.

example: if you want 755 (rwxr-xr-x) permissions, umask would be 022.

Patrix.

Offline

#4 2004-10-12 21:18:43

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: /etc/fstab + ownership

What I do is give the "users" group permissions to the drive. Also, I don't like giving execute permissions to files, but I need it for directories.

auto,gid=users,fmask=117,dmask=007

I don't know if this works with NTFS, but it works fine with FAT32.

Offline

#5 2004-10-15 20:55:17

mdirolf
Member
From: Princeton, NJ
Registered: 2004-05-21
Posts: 69

Re: /etc/fstab + ownership

Thanks all for the help... what i did was umask=000, and it works just like I wanted

Offline

Board footer

Powered by FluxBB