I logged into Ubuntu with guest session account, but the ls
command is not permitted even using sudo
.
But... why? Any ideas?
It's because you're not a sudoer
. Which is a list of users allowed to use the sudo
command.
You can become a sudoer
by adding your username to the list of sudoer
as root:
su
and entering root's passwordvisudo
(Brings up a comamndline text editor specifically for editing the sudoers
file)YOUR_USERNAME_HERE ALL=(ALL) ALL
ls
working? - it's because the guest account doesn't have read permission for the /home
directory. By default (reading from an Ubuntu 14.04 LTS VM), only the owner has permission to do anything with the /home
directory (its permissions show up as drwx------
for me). This offers a more thorough explanation of file permissions.