This resets most environment variables and is the cleanest and most secure method for switching to the root user. And an other hint: Please dont use 'sudo su'. Otherwise the group policy will overwrite your user policy and you will be asked for the password. ![]() bashrc file (copied from /etc/skel on account creation) looks like: head /etc/skel/.bashrc /. For example, the start of the Ubuntu default. Allow members of group sudo to execute any command sudo ALL (ALL:ALL) NOPASSWD: ALL. When I execute sudo su - username I get the following output: bashprofile Sourcing bashrc Path set Sourced bashrc However, when I execute sudo su.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |