Solved

check privileges of user in Linux ubuntu

Posted on 2014-01-18
5
703 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
5 Comments
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen 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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now