LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2012, 03:02 AM   #1
kpadawal
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Exclamation Linux command about ownership


Hi!

I have question about linux command.
Let assume I have a two user on the linux server hosted .
#sudo su -
#sudo su - oracle

The linux server is having the command ./opmnctl restart command to restart a opmn process on the server.

./opmnctl command having ownership as oracle.oracle


If you logged in as root user by sudo su - ,
and did a restart of opmnctl restart .

Can it is possible that it can change a ownership of all files to root.root?
Is it logical /possible by any means?

Thanks in advance!!!

-Kailas
 
Old 05-04-2012, 03:15 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
logically root has right to do anything on the host, so root can change ownership. But also logically a restart command will not modify ownership.
 
Old 05-04-2012, 03:58 AM   #3
kpadawal
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Question +1

Yes.I agree with you.

But since , root has not changed the permission on its own.

What is the chance that it might affect the file system along with changing ownership?

Is there any chance that it is written in the script of restart that no other can run.But since
root can perform it , it allows root and damages the filesystem and changes ownership?

I am logging to these servers through putty and hosted in other country through private network.
Since after restart , permission get changed (it's not confirm that it gets changed by same action) ,
no other user than root can restart it.
 
Old 05-04-2012, 04:05 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
What I can imagine is: the script will check ownerships (or ???) and will try to restore some default values. I do not think it is a good idea but it can happen.
 
  


Reply



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
LXer: Linux File Ownership LXer Syndicated Linux News 0 08-29-2009 03:00 PM
Is there a command that gives you ownership of a folder and all it's sub-folders royeo Linux - Newbie 3 06-01-2007 01:55 PM
Command Ownership? Jamesb427 Linux - General 5 05-15-2007 05:28 PM
Creating a Linux Distribution and ownership gacott Linux - General 9 04-25-2006 04:24 PM
preserve file ownership with the "zip" command? zovres Linux - General 2 11-25-2004 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:03 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