Results 1 to 3 of 3
is there a way to enforce that a file created on a directory will inherit the owner/groupship of the his parent folder?
if there is no way of doing this ...
- 11-21-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 11
force create permissions
is there a way to enforce that a file created on a directory will inherit the owner/groupship of the his parent folder?
if there is no way of doing this on linux, is there a way to do it in java, without explicity connecting and changing the permissions? (i know java isn't the topic here)
- 11-21-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Not as far as I know. This would be a SERIOUS security breach.
Not really. You could create a java class and/or method to do this automatically. Again, I cannot recommend this since it would be a serious security flaw. You would have no way to know that the creator of the file wasn't the owner of the directory. In forensic terms, the chain of ownership becomes suspect. Why do you want to do this?if there is no way of doing this on linux, is there a way to do it in java, without explicity connecting and changing the permissions? (i know java isn't the topic here)Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-10-2010 #3Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
A variation on the topic,
Is it possible to force file creation permissions in /var/log to 640
The reason being that tripwire complains if the permissions are looser than 640, which is fair enough. However there are applications which appear to set the log permissions to 664 even though the umask for that application user is set to 0027 which should make default file permissions 640....RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.


Reply With Quote

