Re: setting perm to files with a patern in the file hame

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

 



On 12Feb2010 08:57, ESGLinux <esggrupos@xxxxxxxxx> wrote:
| Thanks for your answer

No worries. Please don't top post; it is harder to read things as a
conversation.

| your solution is not valid for me because there is a time (before de cron
| runs) that the file has wrong permission and it could be potentially
| accesible by not autorized users.

Might I suggest something else then? Gateway directories.

Instead of doing this by filename, make directories in your naming
scheme and lock down _their_ permissions. For example:

  mkdir just_group1
  chgrp group1 just_group1
  chmod 770 just_group1

Now, provided a user's working directory is _outside_ just_group1,
only users in group1 can get at the files inside, regardless of the
state of the file permissions.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

They said it couldn't be done/they said nobody could do it/
But he tried the thing that couldn't be done!/He tried - and he couldn't do it.

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