LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission (https://www.linuxquestions.org/questions/linux-newbie-8/permission-4175486252/)

nurasivam 11-29-2013 09:02 AM

permission
 
how to give root permission for user? centos6.4

druuna 11-29-2013 09:10 AM

Quote:

Originally Posted by nurasivam (Post 5072448)
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

Madhu Desai 11-29-2013 09:41 AM

Quote:

Originally Posted by nurasivam (Post 5072448)
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)



All times are GMT -5. The time now is 09:45 PM.