Solved

check privileges of user in Linux ubuntu

Posted on 2014-01-18
5
734 Views
Last Modified: 2014-02-02
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
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 125 total points
ID: 39791213
Try this:

sudo -l

- it should list what you can do with sudo as user 'test'.
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 125 total points
ID: 39791676
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
 

Assisted Solution

by:amitsmakkar
amitsmakkar earned 125 total points
ID: 39793994
Hi Sir,

sudo is using for run any command with root user privileges, and use can use sudo keyword.
0
 
LVL 13

Accepted Solution

by:
Sandy earned 125 total points
ID: 39795987
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
 

Author Closing Comment

by:jskfan
ID: 39828197
I will check that ..thank you
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question