Is alternative tool available just like SUDO?


 
Thread Tools Search this Thread
Operating Systems Solaris Is alternative tool available just like SUDO?
# 1  
Old 03-23-2010
PHP Is alternative tool available just like SUDO?

Hello,

GA.

Do any one know any similar pkgs just like SUDO for solaris.

Ultimate thing is, I need to grand root access for my normal account (xyz).

1) Without providing UID 0 for xyz
2) SUDO pkg is not allowed to install

Could someone please tell me, if any other alternative tool available just like SUDO?

For OS:- Solaris / Linux / HP-UX
# 2  
Old 03-23-2010
On Solaris you could use RBAC (role based access control).
# 3  
Old 03-23-2010
Run once
Code:
usermod -P 'Primary Administrator' bullz26

and you are set.

Instead of sudo, prefix the commands to run as root by "pfexec".
# 4  
Old 03-23-2010
Hello jlliagre,

Cool, thanx for spoting it. Yes, it's working gr8 it in Solairs server.
BTW, can you please let me know that exact operation about the below commnad.

usermod -P 'Primary Administrator' bullz26

one more is, will it work on other OS like Linux and HP-UX also?

---------- Post updated at 09:24 AM ---------- Previous update was at 09:17 AM ----------

BTW, how to check this access is already granted. and how to revoke it if already present.
# 5  
Old 03-23-2010
It is a solaris only thing. No Linux, no HPUX.

You have to use sudo and the sudoers file to specifiy exactly what an individual user can sudo.

Last edited by jim mcnamara; 03-23-2010 at 11:33 AM.. Reason: typo
# 6  
Old 03-23-2010
Quote:
Originally Posted by bullz26
BTW, can you please let me know that exact operation about the below commnad.

usermod -P 'Primary Administrator' bullz26
I'm granting the primary administrator privilege to the bullz26 user.
Quote:
one more is, will it work on other OS like Linux and HP-UX also?
HP-UX has definitely something similar, also named RBAC but the implementation differs. I'm not that much familiar with it.
As far as I know, the Linux kernel doesn't implement privileges so is limited to sudo.
Quote:

BTW, how to check this access is already granted.
With this command:
Code:
profiles bullz26

Quote:
and how to revoke it if already present.
That way:
Code:
usermod -P "Basic Solaris User,all" bullz26



---------- Post updated at 16:39 ---------- Previous update was at 15:53 ----------

Quote:
Originally Posted by jim mcnamara
You have to use sudo and the sudoers file to specifiy exactly what an individual user can sudo.
Looks like a tautology to me Smilie
You can use Solaris (and probably HP-UX) RBAC to specify what an individual user can and cannot do. Sudo has several strenghts, like being cross platform and allowing to set the arguments passed to an authorized command but RBAC has a wider range of possibilities that sudo cannot achieve being userland only.
# 7  
Old 03-30-2010
Full points

Hey, thanQ so much for the help.
I wish to give full points.

BTW, I am disappointed that, I can't configure RBAC on HP-UX and Linux servers Smilie
It would be great, if something like SUOD (or) profile in solaris options in Linux and HP-UX servers too.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Not really looking to replace ps, but is there a ps 'alternative'/wrapper tool

Hi, I am not really wanting to replace ps but I am hoping that someone has written a ps wrapper of some sort that can give it some functionalities. I am looking for one that can maybe do the following: sort the process from oldest/newest running process list process that has been started... (3 Replies)
Discussion started by: newbie_01
3 Replies

2. Shell Programming and Scripting

sudo: sorry, you must have a tty to run sudo

Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error. Command: sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh Error: sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies

3. Shell Programming and Scripting

sudo: sorry, you must have a tty to run sudo

Hi All, I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing "sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
9 Replies

4. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

5. Solaris

vi alternative

Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi? I'd like to avoid installing anything new. If not, how to make vi more user-friendly? thanks. (8 Replies)
Discussion started by: orange47
8 Replies

6. AIX

sudo log and sudo auditing

Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run? sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies

7. Shell Programming and Scripting

Alternative for wc -l

Hi techies .. This is my first posting hr .. Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db I have used wc -l to confirm whether the loader... (14 Replies)
Discussion started by: rajesh_2383
14 Replies

8. Cybersecurity

sudo /bin/sh or sudo su -

we are looking at changing the way we get root on our network. in our current system if an admin needs root access he just gets the root password and uses an su. some of our staff have decided that a sudo to "/bin/sh" will be easer. some of our staff think a sudo to "su -" will be better. I... (0 Replies)
Discussion started by: robsonde
0 Replies

9. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks! When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error: exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies
Login or Register to Ask a Question