LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2013, 10:02 AM   #1
nurasivam
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
permission


how to give root permission for user? centos6.4
 
Old 11-29-2013, 10:10 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Quote:
Originally Posted by nurasivam View Post
how to give root permission for user? centos6.4
Assuming that user knows the root password:
Code:
su -
If the user does not know the root password (which is normal/advisable in production environments): Sudo needs to be set up. Have a look at these links:
- HowTO: Sudoers Configuration
- Quick HOWTO : Ch09 : Linux Users and Sudo
- CentOS - Sudo An Advanced Howto
 
Old 11-29-2013, 10:41 AM   #3
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by nurasivam View Post
how to give root permission for user? centos6.4
Type 1 (Recommend): By adding user (in this case dummy) in /etc/sudoers file.

PHP Code:
## Allow root to run any commands anywhere 
root    ALL=(ALL)     ALL
dummy    ALL
=(ALL)     ALL 
Type 2: Create another root user. Although it is highly not recommended...

Code:
# id dummy
uid=505(dummy) gid=505(dummy) groups=505(dummy)

# usermod -ou 0 dummy

# id dummy
uid=0(root) gid=505(dummy) groups=0(root)

Last edited by mddnix; 11-29-2013 at 10:45 AM.
 
  


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
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 05:41 AM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
i have given chmod 777 permission for access now how to revert that permission mohdsuboor23 Linux - Server 1 12-11-2010 06:19 AM
group permission the sticky bit permission comes in capital 'S' pkishorenayak Linux - Newbie 1 04-11-2008 06:04 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration