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 ?

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

-rws-r-xr-x

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

TY/SA
0
 
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'.
0
 
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

0
 
amitsmakkarConnect With a Mentor Commented:
Hi Sir,

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

From novice to tech pro — start learning today.