1753768 Members
5330 Online
108799 Solutions
New Discussion юеВ

Re: permission assigning

 
guna81_m
Advisor

permission assigning

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 linux 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 ?



4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: permission assigning

There is no way to allow a user to create a file and void deleting it in a directory. The same permission that allows the creation allow the deletion.

Extrange requirement, also I would avoid the use of ACL unless very neccesary.

What you could do is to create a script to run as root (sudo) to allow a user to "put" a file in that directory, but not remove it. The user should create the file in another directory first.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
guna81_m
Advisor

Re: permission assigning

this type of permission is possible in windows , it is possible to do in linux .

Ivan Ferreira
Honored Contributor

Re: permission assigning

No.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jeeshan
Honored Contributor

Re: permission assigning

may be chattr can helps you.
a warrior never quits