If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
File ownership is set by the effective UID of the process creating the file and cannot be inherited. Why do you need to change the owner? Why not use group permissions to control access to the file?
the situation is that there are two users admin and projects, each in the same group. over samba, they manage their home dirs and login as themselves. however admin user requires access to projects's home dir (all of it). so with admin's account i umask'ed to make sure that they permit rwx permissions to the group. what i'd like to do is make sure that any files that admin writes to projects are readable by projects. but i don't want to allow projects to access any of admin's stuff so umask won't do what i want.
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."
-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.