Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

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
0
jskfan
Asked:
jskfan
4 Solutions
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Try this:

sudo -l

- it should list what you can do with sudo as user 'test'.
0
 
MazdajaiCommented:
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
 
amitsmakkarCommented:
Hi Sir,

sudo is using for run any command with root user privileges, and use can use sudo keyword.
0
 
SandyCommented:
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
 
jskfanAuthor Commented:
I will check that ..thank you
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now