PDA

View Full Version : fstab & users



ashleysnix
21st March 2005, 12:12 PM
Hi

I'm just getting back into Linux after a stint with Win2003 & I've forgotten a few things... :-(

I have the following line within my fstab file:

LABEL=/spare /spare ext3 defaults 1 2

I need to allow my user account (ashley) to have full read/write access to this partition.

Can someone please help?!

I know this is probably answered in another thread but I couldn't find it...

Thanks

Ashley

james_in_denver
21st March 2005, 06:27 PM
LABEL=/spare /spare ext3 defaults,user 1 2

then change the permissions on the directory where you will be mounting it.

something like "chgrp users /spare"
then give the "users group" permission to access the mountpoint/"directory" with "chmod g+rw /spare"

that ough to do the trick....

ashleysnix
22nd March 2005, 04:06 AM
Excellent, thanks.

I remembered the chown/chmod part in the end, but I didn't think the fstab line would be as straight forward as what you suggested.