check privileges of user in Linux ubuntu

I have an account named test. I can run commands with it account test preceded with Sudo keyword.

I thought since I can do that means test account is a member of Sudoers, so I checked the file Sudoer under /etc directory, but cannot see test there.

Any idea ?

Who is Participating?
SandyConnect With a Mentor Commented:
sudo -l and all those commands which has below permissions you can run


Set UID will allow you to run the command as per your account type/UID.

Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
Try this:

sudo -l

- it should list what you can do with sudo as user 'test'.
MazdajaiConnect With a Mentor Commented:
It is possible that it is specified as group. Check the group that test (id test) belong to and verify entries beginning with %.

For instance -
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

Open in new window

amitsmakkarConnect With a Mentor Commented:
Hi Sir,

sudo is using for run any command with root user privileges, and use can use sudo keyword.
jskfanAuthor Commented:
I will check that ..thank you
All Courses

From novice to tech pro — start learning today.