Thursday, December 11, 2014

How to Create extra root user account in Linux

Create extra root user account in Linux
********************************
vi /etc/sudoers
testuser ALL=(ALL) NOPASSWD: ALL
*************
after this still we have to use sudo like: (or jst do sudo -s)
#sudo <superuser command>
*************
#usermod -o -u 0 -g 0 <user_name>
*************
#adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 -M root2
*************


How to Enable the "root" Account on CentOS or Mac OS X
#sudo passwd root
Enter Password: Changing password for root
New password: Verify password:

No comments:

Post a Comment

TCP/UDP Protocols/Prots & important port numbers in Linux OS

TCP/UDP Protocols/Ports are ranging from 0-65535 so total we have 65536 ports & because of the limitation in TCP/IP stack where the por...