setting perm to files with a patern in the file hame
ESGLinux
esggrupos at gmail.com
Thu Feb 11 18:37:03 UTC 2010
Hello,
I´m having a problem setting file permission because I need to do a strange
thing.
I have to set the permission of the files using the name of the file. I´ll
try to explain myself:
I need a rule that says that if the filename begins with public* everybody
can make all with this file,
If the file begins with private_g1* only the users in the g1 group can
access de the file.
If the file begins with private_g2* only the users in the g2 group can
access de the file.
....
When I create a new file the system must check the file name and assign the
correct permissions.
With normal security schema I think this is impossible, with acl I don´t
know how to set new files automatically. so, what about selinux? can I make
something like that with it?
do you know other alternative?
Thanks in advance,
ESG
More information about the redhat-list
mailing list