You are not logged in.
Pages: 1
Hi All...
I've got a permissions-owner question:
fstab
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0UUID="54c9145b-1176-40a6-84bb-505df52a654a" / ext4 defaults,noatime 0 1
UUID="5561ccbb-a3f9-4420-b548-72b9b436fa03" swap swap defaults,noatime 0 0
UUID="2AEE513FEE51050B" /media/Windows ntfs uid=1000,gid=95,noatime 0 0
UUID="32DCB0F4DCB0B407" /media/Backup ntfs uid=1000,gid=95,noatime 0 0
The uid=1000 stand for the owner of the ntfs-partitions. The gid stands for the group optical...
However, I kinda feel to only let root get access to these partitions, aside from uid=1000 ( myself ).
I guess I can omit the gid=95 and skip the optical group...I'm the only user of this computer.
How can I be the owner of these partitions and it's contents and give root read and writer access......and nothing else???
Been fiddling around for an hour...
Last edited by jocheem67 (2010-06-24 11:59:58)
Offline
Root has read/write access to everything, so just make yourself the owner and that's enough.
Edit: Oh, and nothing else. Not sure, sorry.
Last edited by Barrucadu (2010-06-24 10:17:05)
Offline
Just a question, isn't ntfs-3g a better driver than ntfsprogs for read/write?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Uploaded with ImageShack.us
As you can see, " Anderen" ( others ) have "read and write" access ( lezen en schrijven ).
My goal is to only let myself ( jochem ) and root have control over my partitions...
Is there a way to achieve this from within fstab???
Offline
As I know NTFS doesn't handle accessrights from Linux. so only the user and group which are specified during mount have the rights to access the partition and root of course.
Offline
Add
fmask=0077,dmask=0077
to the mount options in fstab. How it works: everything starts with 777 permissions (rwxrwxrwx) and you specify which permissions to "subtract". So these settings give files (fmask = file mask) the permissions 700 and the same for directories (dmask).
Offline
I'll try that, thanks..
Offline
Funny, it looks like root is denied access here now, after adding above code to fstab.
I did test this ofcourse by ( as root ) creating a directory and copying a file onto the partition ( media/Backup )..
My fstab:
UUID="2AEE513FEE51050B" /media/Windows ntfs uid=1000,fmask=0077,dmask=0077,noatime 0 0
UUID="32DCB0F4DCB0B407" /media/Backup ntfs uid=1000,fmask=0077,dmask=0077,noatime 0 0
Any light on this? Or just leave it this way??
Offline
You know, instead of screenshots you can post the output of ls -dl /media/{Windows,Backup} .
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
HA HA Very sharp.....
drwx------ 1 jochem root 32768 jun 24 13:13 /media/Backup
drwx------ 1 jochem root 24576 jun 24 10:57 /media/Windows
Now help me out okay??
Last edited by jocheem67 (2010-06-24 11:40:29)
Offline
Problem solved. ^_______^
See the "drwx------" ? It means only the owner has full priviledges. Everyone else is denied everything. Except root, you can't deny root anything.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Okay , thanks all for your help!!!!!!
I'm satisfied with this excellent piece of support
Last edited by jocheem67 (2010-06-24 12:00:36)
Offline
Pages: 1