New files created by my application not inheriting parent group name
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In my linux machine, I have set group permission of parent folder Node1 using chmod g+s
,
drwxrwsr-x 2 root fsync 4096 Jun 27 17:40 Node1
But some of the new files (not all) created by my application inside, folder-Node1 are getting group name root. (My application is written in C and runs as root. It uses fopen,fwrite to write to file). Why is it not inheriting parent group-fsync ?
ls -l
Node1 gives below result
-rw-rw-r-- 1 root root 6.9K Jun 27 15:28 180906,163151896,IST,P047,Node1,Kalkitech.CFG
-rw-rw-r-- 1 root root 107.5K Jun 27 15:31 180906,163151896,IST,P047,Node1,Kalkitech.DAT
files permissions
add a comment |Â
up vote
0
down vote
favorite
In my linux machine, I have set group permission of parent folder Node1 using chmod g+s
,
drwxrwsr-x 2 root fsync 4096 Jun 27 17:40 Node1
But some of the new files (not all) created by my application inside, folder-Node1 are getting group name root. (My application is written in C and runs as root. It uses fopen,fwrite to write to file). Why is it not inheriting parent group-fsync ?
ls -l
Node1 gives below result
-rw-rw-r-- 1 root root 6.9K Jun 27 15:28 180906,163151896,IST,P047,Node1,Kalkitech.CFG
-rw-rw-r-- 1 root root 107.5K Jun 27 15:31 180906,163151896,IST,P047,Node1,Kalkitech.DAT
files permissions
1
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my linux machine, I have set group permission of parent folder Node1 using chmod g+s
,
drwxrwsr-x 2 root fsync 4096 Jun 27 17:40 Node1
But some of the new files (not all) created by my application inside, folder-Node1 are getting group name root. (My application is written in C and runs as root. It uses fopen,fwrite to write to file). Why is it not inheriting parent group-fsync ?
ls -l
Node1 gives below result
-rw-rw-r-- 1 root root 6.9K Jun 27 15:28 180906,163151896,IST,P047,Node1,Kalkitech.CFG
-rw-rw-r-- 1 root root 107.5K Jun 27 15:31 180906,163151896,IST,P047,Node1,Kalkitech.DAT
files permissions
In my linux machine, I have set group permission of parent folder Node1 using chmod g+s
,
drwxrwsr-x 2 root fsync 4096 Jun 27 17:40 Node1
But some of the new files (not all) created by my application inside, folder-Node1 are getting group name root. (My application is written in C and runs as root. It uses fopen,fwrite to write to file). Why is it not inheriting parent group-fsync ?
ls -l
Node1 gives below result
-rw-rw-r-- 1 root root 6.9K Jun 27 15:28 180906,163151896,IST,P047,Node1,Kalkitech.CFG
-rw-rw-r-- 1 root root 107.5K Jun 27 15:31 180906,163151896,IST,P047,Node1,Kalkitech.DAT
files permissions
edited Jun 27 at 14:40
Arushix
9968
9968
asked Jun 27 at 12:43
Sreesyam K
1
1
1
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27
add a comment |Â
1
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27
1
1
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452209%2fnew-files-created-by-my-application-not-inheriting-parent-group-name%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
it's possible the file is initially created with the fsync group and then your application changes the group. Or the file is created outside of Node1 then moved there (thus not created if on the same filesystem, the group won't change). Could be debugged with strace on the application or perhaps with inotifywait on the directory.
â A.B
Jun 29 at 20:27