filesystem permissions

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

filesystem permissions

Postby milo7 » Mon Aug 06, 2012 3:41 pm

Hey there :)

Got a question about the permissions of my ntfs disks..
Got one disk which is ext4, everybody has full permission (Owner, group, others)
UUID=xxxxxxxxxxxxxxxx /var/hda/files/drives/drive5 ext4 defaults 1 2

Now one of the ntfs disks:
/var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=1000,gid=130,noatime 1 2
Permissions: 777 Owner, 777 group, 775 others

what do I have to change in fstab to get 777 for others, too? Do I have to leave the fmask and dmask and use umask instead? Dont get it...
Thanks

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: filesystem permissions

Postby sgtfoo » Tue Aug 07, 2012 4:51 am

before we answer anything, I gotta do this..

http://forums.amahi.org/search.php?keyw ... mit=Search

then I must also add that it doesn't make sense that you have an ntfs ext4 share. Both are file systems that don't inter-operate on the same partition... so which is it? I would guess ext4 as you're talking about permissions quartets
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: filesystem permissions

Postby milo7 » Tue Aug 07, 2012 1:32 pm

Thank's for answering sgtfoo,

think I've got to explain it more precisely..
We are not talking about the same partition, neither the same disk. We are talking about two different disks. One I've mounted and formatted it with ext4, on this one following permissions are set: 777 Owner, 777 group, 777 others.

The other one is a ntfs disk with data on it. As I mounted it, I had no permissions. Had to change the uid and the gid in fstab to get access. The prob is that the permissions now are set as following: 777 Owner, 777 group, 775 others
Others don't have full access, they have full access to disks 777, folders 777, files 775, which I would like to change to 777.
The fstab entry: /var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=1000,gid=130,noatime 1 2

What do I have to change to get also full access for "others" ? Tried it with gksudo nautilus, but it doesn't change anything, therefore I thought it would be the best to change it in fstab.
Read that the fmask has to do with the file access, just did'nt find out how the numbers have to be changed...

Also thanks for the links to share permissions, unfortunately I didn't find my answer. For somebody who has a glue how that stuff is working, it must be pretty easy (changing fmask=0113 to fmask=0777, just an example)
Please keep in mind that I am a Newbie, working 17 years with win and got my first unix install managed (was a pretty new experience, thanks to bigfoot) ;)

Who is online

Users browsing this forum: No registered users and 14 guests