3

I logged into Ubuntu with guest session account, but the ls command is not permitted even using sudo.

But... why? Any ideas?

1
  • 1
    Maybe your user account not included in sudoers!!
    – shgnInc
    Commented May 4, 2014 at 3:18

1 Answer 1

5

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:

  1. Become root by: su and entering root's password
  2. visudo (Brings up a comamndline text editor specifically for editing the sudoers file)
  3. Add this line to the bottom of the list: YOUR_USERNAME_HERE ALL=(ALL) ALL
1
  • 1
    To answer the other half of the question - why isn't 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.
    – Pockets
    Commented May 4, 2014 at 4:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .