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 10-15-2015, 12:29 PM   #1
SagarMalve
LQ Newbie
 
Registered: Apr 2014
Posts: 18

Rep: Reputation: 5
Imp


Hi Friends

Just wanted to know that in which script it is mentioned that Root should have all the privileged of read write and execute???


Any idea ????
 
Old 10-15-2015, 12:37 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I don't understand your question. It could be me, but I'd recommend you read the Welcome to LQ link to see if there's a better way to phrase the question.
 
Old 10-15-2015, 05:51 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
There is no script that gives root its privileges. Any user with a user ID of 0 is automatically superuser; this is built into UNIX and Linux.
 
1 members found this post helpful.
Old 10-15-2015, 11:51 PM   #4
yogeshjadhav96
Member
 
Registered: Jul 2015
Location: Bangalore, India
Distribution: RHEL 7
Posts: 36

Rep: Reputation: Disabled
Hi berndbausch,
Is it possible to change the user ID of normal user to '0', And What will happen if we do that?


Sagar Malve,
Please submit your thread in proper way, So that LQ Members will help you with better understandings.
 
Old 10-16-2015, 02:24 AM   #5
SagarMalve
LQ Newbie
 
Registered: Apr 2014
Posts: 18

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by SagarMalve View Post
Hi Friends

Just wanted to know that in which script it is mentioned that Root should have all the privileged of read write and execute???


Any idea ????
During installation Root has the access to make changes according to the requirements so where it is mention that Root should have UID=0 or it \
is super user that's my point
 
Old 10-16-2015, 02:27 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by yogeshjadhav96 View Post
Hi berndbausch,
Is it possible to change the user ID of normal user to '0', And What will happen if we do that?
man usermod:
Code:
       -u, --uid UID
           The new numerical value of the user's ID.

           This value must be unique, unless the -o option is used. The value
           must be non-negative.

           The user's mailbox, and any files which the user owns and which are
           located in the user's home directory will have the file user ID
           changed automatically.

           The ownership of files outside of the user's home directory must be
           fixed manually.

           No checks will be performed with regard to the UID_MIN, UID_MAX,
           SYS_UID_MIN, or SYS_UID_MAX from /etc/login.defs.
I don't know if it's a good idea to change the UID of an existing user to 0, but you can create a new user, give it the same home directory as root and set its UID to 0. useradd also has the -u option.
 
  


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
[ask] application imp satria23 Linux - Software 1 08-10-2010 03:52 PM
imp config help mithereal Linux - Software 1 01-21-2006 05:41 AM
imp+horde linuxtesting2 Linux - General 0 06-27-2004 06:51 PM
imp problem sgavan Linux - Software 0 03-15-2004 04:19 AM
Horde/IMP george3k Programming 0 09-14-2001 09:07 PM

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

All times are GMT -5. The time now is 10:51 PM.

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