Solved

check privileges of user in Linux ubuntu

Posted on 2014-01-18
5
694 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
docker invalid registry name 2 106
gdb doesn't stop on breakpoint 2 48
Backup & Restore 3 46
Choosing CentOS 16 50
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

919 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

19 Experts available now in Live!

Get 1:1 Help Now