How to give sudo access to the personal id's to that of application id in Solaris 10?


 
Thread Tools Search this Thread
Operating Systems Solaris How to give sudo access to the personal id's to that of application id in Solaris 10?
# 1  
Old 05-22-2013
How to give sudo access to the personal id's to that of application id in Solaris 10?

Hi,
I am using solaris 10. Requirement is I need to give sudo access to the normal id's to the application userid.

Example:I have an personal id calle "rzynv5" on the solaris server.I have an application id called "gmdidp".Requirement here is when user logged in as rzynv5 next thing he should be able sudo to the application id.
sudo su gmdidp.

Also, how to configure user activity tracking here on the sudo activities

Advance thanks for your replies.
# 2  
Old 05-22-2013
sudoers:
Code:
rzynv5 ALL=(gmdidp)command

Invoke as
Code:
sudo -u gmdidp command

More help:
Code:
man sudo
man sudoers


Last edited by MadeInGermany; 05-23-2013 at 07:53 AM.. Reason: host= missing; put ALL=
# 3  
Old 05-23-2013
sudo is not part of Solaris 10. The better way of doing things is to use the RBAC facility provided in Solaris 10.
# 4  
Old 05-23-2013
Thanks for you response.I could see sudo and sudoers files exist on the server.I have put the below code in sudoers file but it did not work for me.

Code:
vi sudoers
rzynv5 ALL=gmdidp
wq!

Code:
Error:
sudo: parse error in /opt/sfw/etc/sudoers near line 38
sudo: no valid sudoers sources found, quitting

Actually nothing is present and it is empty line at 38.

I have tried below code as well and even it did not work.
Code:
User_Alias GMDIDP_USER = gmdidp
Cmnd_Alias GMDIDP_CMD = /usr/bin/su - rzynv5,                      
GMDIDP_USER ALL= (ALL) GMDIDP_CMD

asking for password:
 
sudo su - gmdidp 
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
Password:





Last edited by Scott; 05-23-2013 at 11:50 AM.. Reason: Code tags, not icode tags
# 5  
Old 05-23-2013
For the sudo -u form you are missing the command!
For example,
put to sudoers
Code:
rzynv5 ALL = (gmdidp) /bin/bash

and run
Code:
sudo -u gmdidp /bin/bash

When prompted for password you type the password for rzynv5.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to give a user sudo permissions

Can some one please let me know a script which gives the user sudo permissions? Thanks in advance.... (6 Replies)
Discussion started by: Revanth547
6 Replies

2. 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

3. Solaris

How to give sudo entry in .profile file in Solaris?

Hi all, In Solaris , What entry should I add in my .profile file in home directory so that every time I don't have to give Sudo's full path like /usr/local/bin/sudo as well as /usr/sbin/ping and it will be Great help if you could tell me how to know what should be added. Please Advice.... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

4. 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

5. SCO

how to give Telnet access

Hello, I have recently taken over administration of a Sco Unixware server (Version 7.1.4), but have no previous experience with Unix. I now have the following problem: Most computers on the network are unable to Telnet to the Unix server but some PCs with privileged users can, which is... (7 Replies)
Discussion started by: nicke75
7 Replies

6. UNIX for Advanced & Expert Users

How to give FTP access to a single user

Hi all, How can i give ftp access to single user on solaris9 system? others should not have the ftp access. i know about ftpusers file in /etc/ftpd but still what about if so many new users are created daily? And now for that single user how can we restict him to ftp the files only from... (2 Replies)
Discussion started by: santhoshkumar_d
2 Replies

7. UNIX for Dummies Questions & Answers

How do I give Java developers access to Solaris server

I am new to UNIX administration. I have 10 years of Windows admin experience. I need to know how to give java developers the access they need to install and maintain the applications they are writing. In the Windows world I would make them a local admin on a test server but give them limited... (4 Replies)
Discussion started by: gsander
4 Replies

8. UNIX for Dummies Questions & Answers

Possible to give sudo access to subdirectories?

Say I want to give someone access to /example/directory/* where * equals all the sub directories inside of /example/directory I tried doing something like joe DEV1=(ROOT) /example/directory/ But that doesn't seem to want to work. If I give him the full subdirectory... (3 Replies)
Discussion started by: LordJezo
3 Replies

9. UNIX for Dummies Questions & Answers

sudo: application install question

I need to install an application on my Sun station and need root privleges to do so. I was given sudo privileges and was told to issue the following command. bash-2.03$ sudo init 0 I've read the man pages for init and understand the purpose of that command. My questions are: 1. From the... (2 Replies)
Discussion started by: forbin24
2 Replies
Login or Register to Ask a Question