FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Fri May 14, 2021 22:47



Post new topic Reply to topic  [ 3 posts ] 
ntfs-3g permissions (after 'inherit' change) 
Author Message

Joined: Mon Aug 31, 2015 20:22
Posts: 2
Post ntfs-3g permissions (after 'inherit' change)
Hello,

I used to have the 'inherit' option in my fstab; when I updated to the last version I discovered the change in behaviour, so I removed the option from my fstab; now I can chown again any file, and chmod new files I create; but I am unable to change the group permissions of files created before I removed the option... Could you explain me what is happening? Is it a bug?

François.


Mon Aug 31, 2015 20:39
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g permissions (after 'inherit' change)
Hi,

Quote:
I used to have the 'inherit' option in my fstab; when I updated to the last version I discovered the change in behaviour, so I removed the option from my fstab; now I can chown again any file, and chmod new files I create;

The change was done on request from users. When updating a file, text editors create a temporary file which is later renamed to the original file with forced permissions, thus defeating the Windows type inheritance.
Quote:
but I am unable to change the group permissions of files created before I removed the option... Could you explain me what is happening? Is it a bug?

Do you mean chmod does not change group permissions ? Did you change the Windows version which define the permissions base, switching to Windows 8 or 10 from an older Windows ? Anyway, please give details on your user mapping parameters.

Regards

Jean-Pierre


Mon Aug 31, 2015 21:36
Profile

Joined: Mon Aug 31, 2015 20:22
Posts: 2
Post Re: ntfs-3g permissions (after 'inherit' change)
I think I finally found what happened: when using 'inherit' ntfs-3g created advanced ACL, and those where hidden (because not using 'acl' option but 'permissions') but applied anyway! By mounting with 'acl', 'ls -l' shows a '+' and doing a setfacl -b makes things return to normal (It is now mounted with 'permission' only again).

If I am correct, maybe something could be done to help users switching from one permission model to another? Maybe adding some words in the manual?

Thanks anyway for the fast response,

François.

P.S.: In case it could be useful here are some outputs from before I tried the 'acl' mode:
Code:
ls -l
-rw-r--r-- 1 root users 0 31 aoû 19:19 problem.file
-rw-rw-r-- 1 root users 0 31 aoû 19:20 texte.txt

Code:
secaudit 1.4.2 : NTFS security data auditing
File problem.file
Windows attrib : 0x20
Windows owner S-1-5-32-544
Windows group S-1-5-21-1179795790-3343862099-1410018344-10100
Interpreted Unix owner 0, group 100, mode 0664
Posix descriptor :
    acccnt 5
    defcnt 0
    firstdef 5
    mode : 0664
    tagsset : 0x3d
Posix ACL :
    version 2
    flags 0x00
ace 0 : access  USR-O   -1 perms 0006 rw-
ace 1 : access  GRP-O   -1 perms 0004 r--
ace 2 : access  GROUP   10 perms 0006 rw-
ace 3 : access  MASK    -1 perms 0006 rw-
ace 4 : access  OTHER   -1 perms 0004 r--
No errors were found

Code:
secaudit 1.4.2 : NTFS security data auditing
File texte.txt
Windows attrib : 0x20
Windows owner S-1-5-32-544
Windows group S-1-5-21-1179795790-3343862099-1410018344-10100
Interpreted Unix owner 0, group 100, mode 0664
No errors were found


Mon Aug 31, 2015 22:32
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.