You are not logged in.

#1 2004-07-21 02:38:02

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

Force mask file creation in one dir

I need to force mask file creation in one dir.

Basically this is the situation
"document" is a shared dir, SGID is already set on the dir so all new files are created as group "office".
But they are created with 644 mask so they are not accessible by other users in the group.
I do not want change the default user mask with umask because of security reason, but I need that in this dir file are created with 664 mask.
Suggestion??

Offline

#2 2004-07-21 13:29:53

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: Force mask file creation in one dir

make a cron-job that will do the stuff.

It is far crappy, but it works smile

Offline

#3 2004-07-21 17:32:24

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

Re: Force mask file creation in one dir

I Think I should run the cronjob each minute in order to prevent problems.
Is it possible that there is no other way?
even samba can force mask user and group on per share ......
There should be another way......

Offline

Board footer

Powered by FluxBB