You are not logged in.

#1 2010-06-24 10:07:36

jocheem67
Member
Registered: 2009-11-09
Posts: 243

another fstab question[solved]

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      0

UUID="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

#2 2010-06-24 10:13:56

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: another fstab question[solved]

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

#3 2010-06-24 10:21:59

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: another fstab question[solved]

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

#4 2010-06-24 10:30:27

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: another fstab question[solved]

schermafdruk.png

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

#5 2010-06-24 10:46:09

Banton
Member
Registered: 2010-05-28
Posts: 67

Re: another fstab question[solved]

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

#6 2010-06-24 10:59:37

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: another fstab question[solved]

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

#7 2010-06-24 11:08:04

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: another fstab question[solved]

I'll try that, thanks..

Offline

#8 2010-06-24 11:20:34

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: another fstab question[solved]

schermafdruk1a.png

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

#9 2010-06-24 11:35:57

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: another fstab question[solved]

You know, instead of screenshots you can post the output of ls -dl /media/{Windows,Backup} . wink


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#10 2010-06-24 11:39:10

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: another fstab question[solved]

HA HA smile 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??
big_smile

Last edited by jocheem67 (2010-06-24 11:40:29)

Offline

#11 2010-06-24 11:44:34

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: another fstab question[solved]

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

#12 2010-06-24 11:59:38

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: another fstab question[solved]

Okay , thanks all for your help!!!!!!

I'm satisfied with this excellent piece of support smile

Last edited by jocheem67 (2010-06-24 12:00:36)

Offline

Board footer

Powered by FluxBB