I have a requirement to give permissions to a folder or file to multiple groups. I can do this using acl but acl is not present on our system. What other alternative do i have?
I have to do this at runtime
feedback
|
This question came from our site for professional and enthusiast programmers.
| |||||||
feedback
|
|
With the base unix permission system it's not possible for files or folders to have multiple groups. The one hackish way I could think of is to have a pam module that adds users of the other groups to these folders groups on login. Maybe http://sourceforge.net/projects/pam-script/ could be used for this. I don't think it's a good idea but could be worth a try. And this assumes you have root access. | |||
|
feedback
|