User ID priviliges check


 
Thread Tools Search this Thread
Operating Systems Solaris User ID priviliges check
# 1  
Old 05-07-2012
User ID priviliges check

how can we know what priviliges i have to my user id in unix?
# 2  
Old 05-07-2012
how about id?
# 3  
Old 05-07-2012
What OS are you using?

You can run:

Code:
# roles
# profiles -l
# auths

to check what RBAC special privileges have been given to you...

Other than that you should check on the /etc/sudoers file.

Last edited by Scrutinizer; 05-07-2012 at 01:28 PM.. Reason: code tags
# 4  
Old 05-07-2012
Quote:
Originally Posted by juan.brein
What OS are you using?

You can run:

# roles
# profiles -l
# auths

to check what RBAC special privileges have been given to you...

Other than that you should check on the /etc/sudoers file.

i got the following
Code:
/home/gefadm> more /etc/sudoers
/etc/sudoers: No such file or directory
:/home/gefadm> /etc/sudoers
ksh: /etc/sudoers: not found
/home/gefadm> roles
No roles
/home/gefadm> profiles -l
      All:
          *
:/home/gefadm> auths
solaris.device.cdrw,solaris.profmgr.read,solaris.jobs.users,solaris.mail.mailq,solaris.admin.usermgr.read,solaris.admin.logsvc.read,solaris.admin.fsmgr.read,solaris.admin.serialmgr.read,solaris.admin.diskmgr.read,solaris.admin.procmgr.user,solaris.compsys.read,solaris.admin.printer.read,solaris.admin.prodreg.read,
solaris.admin.dcmgr.read,solaris.snmp.read,solaris.project.read,solaris.admin.patchmgr.read,solaris.network.hosts.read,solaris.admin.volmgr.read,solaris.cluster.read,solaris.cluster.device.read,solaris.cluster.network.read,solaris.cluster.node.read,solaris.cluster.quorum.read,solaris.cluster.resource.read,solaris.cluster.system.read,solaris.cluster.transport.read,solaris.cluster.gui
:/home/gefadm>



Please let me know any other way to find it out .

Last edited by Scrutinizer; 05-07-2012 at 01:33 PM.. Reason: code tags
# 5  
Old 05-07-2012
please read ALL/COMPLETE answers! note, solaris don't use sudo by default (not part of solaris!). if you like to use sudo, you'll have to download and install it. even if you download sudo, it won't tell you something about privs. the privs depend on the groups you are in or if you use RBAC to which roles you are assigned. check the fine docs you can view/download at docs.oracle.com.
This User Gave Thanks to DukeNuke2 For This Post:
# 6  
Old 05-07-2012
+1 to the previous answer...

What are you looking for specifically?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check user id

Hi, I am logged in to my unix box with functional id user1. myhost://home/user1> id uid=3748157(user1) gid=238(dev) I am trying to execute a script hello.sh with user1 and I am passing a PID to hello.sh. ./hello.sh 145633 This pid <145633> is running with user7. Thus, I need to... (1 Reply)
Discussion started by: mohtashims
1 Replies

2. Shell Programming and Scripting

Check user input

Hi, I need my script to check if the user enters 3 values if not 5 values to my script and alert if the input has any other number of values. for example: ./myscript.sh 22 56 3221 - > correct ./myscript.sh 22 56 3221 45 777 -> correct ./myscript.sh 22 56 3221 45 -> incorrect Please... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. Shell Programming and Scripting

Check whether user has passwordless setup

Hello Unix scripters, I have created a small tool that i can distribute to users to check whether they have passwordless login to a list of servers. The problem in my code below is if user do not have the passwordless login yet, it will prompt them with a password login and my message below... (2 Replies)
Discussion started by: ryandegreat25
2 Replies

4. Homework & Coursework Questions

Check the permissions user

i have some question for example: suppose we have the Public folder as follows: https://www.unix.com/attachments/shell-programming-scripting/2759d1334070669-check-permissions-linux-user-capture.png If user enter: -Kenshin or /home/kenshin/Public output: abc: kenshin: rw my shell:... (1 Reply)
Discussion started by: kingkner
1 Replies

5. Shell Programming and Scripting

Check the permissions linux user

i have some question for example: suppose we have the Public folder as follows: https://www.unix.com/attachment.php?attachmentid=2759&stc=1&d=1334070669 If the user enter: -Kenshin or /home/kenshin/Public output: abc: kenshin: rw my shell: echo "Enter User:" read user ... (3 Replies)
Discussion started by: kingkner
3 Replies

6. Homework & Coursework Questions

shell to check user is logged on

I was given this to do, Write a Shell script to automatically check that a specified user is logged in to the computer. The program should allow the person running the script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a... (0 Replies)
Discussion started by: operator
0 Replies

7. UNIX for Advanced & Expert Users

check user installed programs

How do check the programs that the actual user of the computer installed. I do not care at all about the default programs that came with your distro of Linux, I only want the user installed programs. (1 Reply)
Discussion started by: cokedude
1 Replies

8. UNIX for Dummies Questions & Answers

how to check the user input from terminal

Hello everybody!!! I am writing my own rm command in unix. I prompt the user to type if he wants to delete a file and then read what he typed. But how do i check what he typed? This is my program so far: echo 'Delete prog1.c (y/n)?' read yesOrNo if yesOrNo == 'y' then rm prog1.c... (6 Replies)
Discussion started by: mskart
6 Replies

9. UNIX for Advanced & Expert Users

check pass; user unknown

Hi all, While watching the log at /var/log/messages on a Centos 4.x box I keep seeing this come up Jul 18 09:38:40 ws096 PAM_pwdb: check pass; user unknown From what I understand this might be a ssh attack or am I wrong here? The bad thing is that it does not show an IP address its... (1 Reply)
Discussion started by: mcraul
1 Replies

10. Shell Programming and Scripting

how can I check the user's mail quota?

how can I check mail quota, and then how can I send mail to user whose quota get full??? :confused: For this which script must I use? (8 Replies)
Discussion started by: emreatlier
8 Replies
Login or Register to Ask a Question