setting perm to files with a patern in the file hame

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux