1827738 Members
3310 Online
109969 Solutions
New Discussion

permission assignment

 
guna81_m
Advisor

permission assignment

iam having four

1. groups - group1,group2,group3,group4

2. each group contain set of users .

3. directory name -- test

using ACL i assigned permission for test directory

group1 : rwx for directory test

group2 : r-x for directory test

if a user from group1 log into unix m/c
and he creates a file (or) directory in test and he can delete as mentioned in acl settings

question :

i have to set a permission in such a way , so that user from group1 can create a file and he should not delete the created file , how can i set the permission for this ?
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: permission assignment

I don't think you can. Write permission on a directory allows you to add AND remove entries.
guna81_m
Advisor

Re: permission assignment

we can do this type of permission setting , why can't we do in unix
guna81_m
Advisor

Re: permission assignment

we can do this type of permission setting in windows , why can't we do in unix
Jeeshan
Honored Contributor

Re: permission assignment

may be chattr can helps you

#man chattr
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: permission assignment

>why can't we do in unix

(Because that's the way HP-UX is. :-)
If a user puts a file there, why can't he delete it? About the only thing that may be helpful is the sticky bit. This prevents non-owners from removing the file, even if they have Group or Other permission. Useful for /tmp and /var/tmp.

>ahsan: may be chattr can helps you

No chattr on HP-UX, just linux with that -i. There is chatr(1) but that only works on load modules dealing with execution properties.
guna81_m
Advisor

Re: permission assignment

so each and every time user have to use chattr command for created files , it is possibe to write a script ,so that user created files and directory automatically chattr .
Dennis Handly
Acclaimed Contributor

Re: permission assignment

You have duplicate in linux:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1248947
Which OS are you using?
guna81_m
Advisor

Re: permission assignment

i have do similar settings in unix and linux