You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run "sudo su - [email protected]", the user gets switched to vsda. Documentation states that the "root" account should be shown after running "whoami" command. Additionally "rm /etc/sudoers.d/minions" will fail since we are still using vsda account.
"""
[root@ip-172-31-19-115 ~]# sudo su - [email protected]
Creating home directory for [email protected].
[[email protected]@ip-172-31-19-115 ~]$ rm /etc/sudoers.d/minions
rm: cannot remove '/etc/sudoers.d/minions': Permission denied
"""
This can be solved by adding "exit" before removing minions:
[root@ip-172-31-19-115 ~]# sudo su - [email protected]
Last login: Wed Feb 26 09:46:52 UTC 2020 on pts/0
[[email protected]@ip-172-31-19-115 ~]$ rm /etc/sudoers.d/minions
rm: cannot remove '/etc/sudoers.d/minions': Permission denied
[[email protected]@ip-172-31-19-115 ~]$ exit
logout
[root@ip-172-31-19-115 ~]# rm /etc/sudoers.d/minions
rm: remove regular file '/etc/sudoers.d/minions'? y
[root@ip-172-31-19-115 ~]# whoami
root
[root@ip-172-31-19-115 ~]#
The text was updated successfully, but these errors were encountered:
When you run "sudo su - [email protected]", the user gets switched to vsda. Documentation states that the "root" account should be shown after running "whoami" command. Additionally "rm /etc/sudoers.d/minions" will fail since we are still using vsda account.
"""
[root@ip-172-31-19-115 ~]# sudo su - [email protected]
Creating home directory for [email protected].
[[email protected]@ip-172-31-19-115 ~]$ rm /etc/sudoers.d/minions
rm: cannot remove '/etc/sudoers.d/minions': Permission denied
"""
This can be solved by adding "exit" before removing minions:
[root@ip-172-31-19-115 ~]# sudo su - [email protected]
Last login: Wed Feb 26 09:46:52 UTC 2020 on pts/0
[[email protected]@ip-172-31-19-115 ~]$ rm /etc/sudoers.d/minions
rm: cannot remove '/etc/sudoers.d/minions': Permission denied
[[email protected]@ip-172-31-19-115 ~]$ exit
logout
[root@ip-172-31-19-115 ~]# rm /etc/sudoers.d/minions
rm: remove regular file '/etc/sudoers.d/minions'? y
[root@ip-172-31-19-115 ~]# whoami
root
[root@ip-172-31-19-115 ~]#
The text was updated successfully, but these errors were encountered: