LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-09-2008, 02:17 AM   #1
dave247
Member
 
Registered: May 2004
Posts: 206

Rep: Reputation: 30
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

Last edited by dave247; 10-09-2008 at 02:26 AM.
 
Old 10-09-2008, 02:22 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
1 members found this post helpful.
Old 10-09-2008, 02:46 AM   #3
dave247
Member
 
Registered: May 2004
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jschiwal View Post
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.
Yeah I did run it as root. So aside from acl's, doesnt this kind of mess things up in a way? If user1 also owns */* like Root, can user1 do a lot more than normal or is he just owner of everything in an unorthodox and error causing way?

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

Last edited by dave247; 10-09-2008 at 03:07 AM.
 
Old 10-09-2008, 05:53 AM   #4
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
I think the hint is here:

Quote:
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
It sounds as though he's asking you to do something that he expects you to know should not be done. It seems to me a rather odd teaching method, but maybe it works if you learn something in the process.

Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a single file to multiple directories quest49 Linux - Software 6 12-04-2006 09:07 AM
How to Unrar/unzip multiple archives at once containing a single file? SentralOrigin Linux - Software 11 11-30-2006 06:57 PM
Adding Multiple Files In A Single Gz File onacorpuscle Linux - Newbie 3 08-31-2006 04:18 AM
Compiling multiple .c file using single command in makefile vipulc Linux - General 2 03-19-2006 12:49 AM
Copying a single file to multiple directories tgolly Linux - Newbie 3 04-26-2004 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration