Sponsored Content
Full Discussion: sudo access verification
Operating Systems Linux sudo access verification Post 302351841 by TonyFullerMalv on Wednesday 9th of September 2009 05:35:43 PM
Old 09-09-2009
You should be able to run:
Code:
$ sudo -l

having previously run:
Code:
# su - userid

Check that /etc/sudoers has the correct ownership and permissions, mine is owned by root:root is set to r--r-----.
Check that if the line in the sudoers(5) file you are allowing them to run something with starts with a group (e.g. line starts with: %groupname ) then the user is actually in that group, if you are specifying a particular user (e.g. line starts with userid ) then ensure that it has been entered correctly, for instance by running:
Code:
# getent passwd userid

and ensuring that you get a response.

Apart from that it would be a case of checking the syntax of the suoders line but visduo(8) does that for you?
 

10 More Discussions You Might Find Interesting

1. Solaris

secure access using sudo

I just need to know what should be done on a login user so that no one can access it except through sudo i.e. telnet server login: user NO ACCESS telnet server login: mylogin sudo - user <any command> ACCESS GRANTED thanks (0 Replies)
Discussion started by: melanie_pfefer
0 Replies

2. AIX

sudo user access

I have installed sudo on AIX 6100-04 and want to know how do I set it up for a user to be able to run only some commands? I want to give the user the rights to only cd to certain directories and run the ls command to name a few? Are there any issues with running sudo when the user is forced to... (2 Replies)
Discussion started by: daveisme
2 Replies

3. Shell Programming and Scripting

ONLY SU Sudo access

Hello All, I want to create a script that will do ONLY su to any user on the server with hpadmin login using sudo. Can anyone let me know how can it do it. Regards Ankit (1 Reply)
Discussion started by: ajaincv
1 Replies

4. UNIX for Dummies Questions & Answers

sudo/root access

I'm actually working with a Ubuntu-System here and have a question about executing a command with 'sudo'. I tried and got a error message like "not allowed". After this I logged in with 'sudo -s' and typed the command without 'sudo'. This worked well. Can please somebody explain me this... (0 Replies)
Discussion started by: daWonderer
0 Replies

5. Ubuntu

Restrict SUDO Access

Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Hi Folks, Please help me. I am bit struck here. Here is the OS info. Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux I have a... (17 Replies)
Discussion started by: explorer007
17 Replies

6. UNIX for Advanced & Expert Users

Help needed in sudo access

I want to give root access to a user called denielr on server - tsprd01, but do not want to share root password. I have sudoers configured already. He should have all access equal to root. I made this entry in /etc/sudoers, but it is not working denielr tsprd01 =(root) NOPASSWD: ALL I tried to... (2 Replies)
Discussion started by: solaris_1977
2 Replies

7. Solaris

Sudo access in Solaris

Install the sudo pkg SFWsudo.tar bash#tar -xvf SFWsudo.tar bash#pkgadd -d . SFWsudo path may be /opt/sfw/bin Make entry the user name in sudoer file path of the sudoer file /opt/sfw/etc/sudoers check with the below command as a user (not as a root user) user1$... (1 Reply)
Discussion started by: Narendiran
1 Replies

8. Red Hat

Sudo access issue

Hi, I have given access to user mwadmin in shudders file as : mwadmin ALL:NOPASSWD:/www/* /usr/* /opt/* However, not able to execute below command: sudo mkdir -p /usr/test password for mwadmin: Sorry, user mwadmin is not allowed to execute '/bin/mkdir -p /usr/test' as root. ... (4 Replies)
Discussion started by: saurau
4 Replies

9. UNIX for Dummies Questions & Answers

Inheriting SUDO access?

I had a question on users inheriting SUDO capabilities of another account. Let's say that there are three users A, B, and C. A has access to Sudo into B. B has access to Sudo into C. Does this give A access to sudo into B and then sudo into C. A -> B B -> C A -> B -> C ? Another example. My... (2 Replies)
Discussion started by: sbcopty
2 Replies

10. Shell Programming and Scripting

Using plink with sudo access

I have similar issue as mentioned in 167174-how-run-script-using-batch-file.html It works good, but the control is not coming back to source i tried adding exit to remote script. Thanks, Suresh (0 Replies)
Discussion started by: snsuresh
0 Replies
bioutil(1)						    BSD General Commands Manual 						bioutil(1)

NAME
bioutil -- tool for viewing/changing Touch ID configuration and listing/deleting enrolled fingerprints SYNOPSIS
bioutil {-r | -w [-f { 0 | 1 }] [-u { 0 | 1 }] [-a { 0 | 1 }]} | [-c] | [-p] | [-d <uid>] [-s] DESCRIPTION
bioutil provides the possibility of viewing and changing Touch ID configuration, both system-wide and user-specific. It also allows listing and deleting enrolled fingerprints. OPTIONS
-r, --read Read Touch ID configuration. -w, --write Write Touch ID configuration. -s, --system Indicates that system-wide configuration is to be read/written (user-specific configuration is the default) or that a system-wide list/delete operation is to be performed. -f, --function Enables (1) or disables (0) overall Touch ID functionality (system-wide configuration only). -u, --unlock Enables (1) or disables (0) Touch ID for unlock. -a, --applepay Enables (1) or disables (0) Touch ID for ApplePay (user-specific configuration only). -c, --count Provides number of enrolled fingerprints of the current user or of all users (when run with -s as an administrator) -p, --purge Deletes all enrolled fingerprints of the current user or of all users (when run with -s as an administrator) -d, --delete Deletes all enrolled fingerprints of the user with given user ID (must be run as an administrator) EXAMPLES
bioutil -r Reads Touch ID configuration for the current user. bioutil -r -s Reads system-wide Touch ID configuration. bioutil -w -u 1 Enables Touch ID for unlock for the current user. sudo bioutil -w -s -u 0 Disables Touch ID for unlock for the whole system. bioutil -c Prints the number of enrolled fingerprints of the current user. bioutil -p Deletes all enrolled fingerprints of the current user. sudo bioutil -c -s Prints numbers of enrolled fingerprints of all enrolled users. sudo bioutil -p -s Deletes all fingerprints from the system. sudo bioutil -s -d 501 Deletes all fingerprints of user 501. Darwin May 31, 2019 Darwin
All times are GMT -4. The time now is 06:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy