is multiple ownership of a single file possible? NON GROUP
So my professor is having us do some ridiculous things to our server, even though he said not to do them all according to his handout....ANYWAY one thing we are supposed to do is make a script that does $ chown -hR user1 / which makes user1 become the owner of all the files that root owns.
I was wondering something now because of this: can a user1 be an owner of a file that is also owned by Root? I know Root owns everything, but is it really possible for another user to co-own everything that root owns? User1 can now delete files created and owned by Root? Oh and they are NOT in the same group. NOTE: This is not a question on my lab report, therefore I am not asking for answers on my schoolwork. I am asking this as a result of extra interest that came out of my assignment, and I have also looked on google.com/linux for an answer, but I didn't find anything. Thanks dave247 |
A file has just one owner. The chown command needs to be run as root. Look at using acls to give more than one user full access to files without using groups.
|
Quote:
I was actually getting some weird errors when I logged in but it went away when I killed user1 and then chowned everything to root (just a precaution). |
I think the hint is here:
Quote:
Jim |
All times are GMT -5. The time now is 05:06 AM. |