I cannot navigate /root directory from azure terminal in azure session persistence lab.
I get permission denied. How can navigate to root directory.
Your current user doesn’t have permission to access root directory.
Try switching to root user with
sudo su -
kk_lab_user_main-b120261e41d742f [ ~ ]$ sudo su -
sudo: The “no new privileges” flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
kk_lab_user_main-b120261e41d742f [ ~ ]$
Waiting for feedback regarding this.
ok, but why do you want to go to root directory in the cloud console?
What are you trying to do?
There is Lab: Session Persistence in azure 104 administrator course. In the lab mentioned below for run the script. But i cannot run the shell script.
We have created a script that sets up the infrastructure for you. Please navigate to the /root
directory and run the script named infra.sh
. Wait for a while until the script completes the infrastructure setup.
I see.
When they say navigate to /root
directory they usually mean from the terminal that the lab has, not the azure terminal.
They have provided a azure account for login. there is no separate lab terminal.
Is it possible to check the lab by you ? Hope then it will be clear for you.