You are not logged in.

#1 2011-07-28 18:51:54

zasire
Member
Registered: 2011-07-20
Posts: 11

[SOLVED] force folder to given group

i need all files (newly created or existing) within a folder and its subfolders to be in the same group by default, independent from users. i don't want to do this with a cronjob. is this possible? i found that umask might make this possible but i didn't found out how. can anyone help me?

Last edited by zasire (2011-07-28 20:36:22)

Offline

#2 2011-07-28 18:56:14

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] force folder to given group

Edit: let's make this simpler:

$ chgrp mygroup myfolder
$ chmod 2755 myfolder

Will make any new file or directory under myfolder be assigned the group mygroup.

Last edited by litemotiv (2011-07-28 19:09:17)


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-07-28 19:45:30

zasire
Member
Registered: 2011-07-20
Posts: 11

Re: [SOLVED] force folder to given group

thanks allot! seems to work! smile

Offline

#4 2011-07-28 20:24:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] force folder to given group

please mark as solved.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB