I am doing an online course and the current exercise sees me learning more about sudo. I had to log in as another user and run a command to acccess a password.
In my sudo exercise I have finally got myself logged in as the
pseudo user with the discovered password from the first part of the question. Now I have to access a token in the file
/root/token.txt. Whilst logged in as the user
pseudo I can see from sudo -l the following:
user pseudo may run the following commands on sudo (ALL) NOPASSWD: ALL
if I cd to the / directory and run ls -la I get
drwx------ 2 root root 4096 Jun 18 1521 root
From the above I deduce only the owner has
rwx permissions and that the owner is root. What I am struggling with is how do I access the token file when it would appear to me that I need root access, HELP please?