Users Command for Permissions - /etc/sudoers.temp and users simbol...

April 23, 2015 457 views
Linux Commands Linux Basics Miscellaneous WordPress

I have add the user ADMIN in file /etc/sudoers.tmp (SEE BELOW) BUT still when I connect to the ADMIN user looks like this: admin@mydomain:/$ and not user ROOT admin@mydomain:~# What do I solve this? I am grateful to those who help me. Thank you.

User privilege specification
*admin ALL=(ALL:ALL) ALL

Members of the admin group may gain root privileges
*%admin ALL=(ALL) ALL

Allow members of group sudo to execute any command
*%sudo ALL=(ALL:ALL) ALL

Is this command? sudo chown -R 755 admin and sudo chmod - R 755 admin or sudo chmod 755 /var/www/admin or sudo chown 755 /var/www/admin

1 Answer

When connecting with a user that has sudo permissions (a member of the sudo group) you can run the following command to open a shell as root:

sudo su

Have another answer? Share your knowledge.