possible to assign limit root task to a userid?


 
Thread Tools Search this Thread
Operating Systems Solaris possible to assign limit root task to a userid?
# 1  
Old 04-10-2008
possible to assign limit root task to a userid?

I am trying to figure out to add a root task to a userid. I have some security software being installed on Solaris 9 boxes and these software actually need to be executed by root but these users do not need to have root privileges.

For example, a userid is adminjj, and I would like to assign this user the root privilege to only execute the software because only root accounts can execute this software. However, I do not want the userid adminjj to have the whole root privilege such as removing accounts or adding accounts.

I think RBAC is the way to go, but don't see any way to assign limit root privileges. Maybe this is not possible? Anyone have ideas how this can be worked out?

I know we can set up RBAC accounts to manage printers and change passwords etc, but cannot seem to find any information on what needs to be done to assign or set up a role account to be able to execute specific software.

Thanks for the tips if you have any.
# 2  
Old 04-10-2008
topic has been posted about 10000 times Smilie

you could use sudo.
Sudo Main Page
# 3  
Old 04-10-2008
Quote:
Originally Posted by pupp
topic has been posted about 10000 times Smilie

you could use sudo.
Sudo Main Page
but as sudo'er you can execute ALL commands with root privileges...

@op

maybe you can use "setuid" to let the user execute the programm with root permissions?

Setuid - Wikipedia
# 4  
Old 04-10-2008
Quote:
Originally Posted by DukeNuke2
but as sudo'er you can execute ALL commands with root privileges
Not true at all. man sudo
# 5  
Old 04-10-2008
Quote:
Originally Posted by era
Not true at all. man sudo
right, but you need to edit the config files to set sudo permissions for a specific command. so it's maybe easier to work with setuid for the file which needs the permission.
there are allways more then one way to solve a problem...

and btw.
i think sudo is not part of the solaris 9 os... i don't have a box with sol 9 to check this right now.

Last edited by DukeNuke2; 04-10-2008 at 04:24 AM..
# 6  
Old 04-10-2008
It is correct sudo is indeed not part of any released Solaris version, nor is planned in the next one.

OTOH, rbac is is supported and part of the OS.

You just need to modify two files to achive what you want, eg.:

Assuming you want user "guest" to run "id" as root:

/etc/user_attr
guest::::type=normal;profiles=runid

/etc/security/exec_attr
runid:suser:cmd:::/usr/bin/id:uid=0

Then, as user guest, run "pfexec id".
# 7  
Old 04-10-2008
yea i meant to also do setuid but i forgot to post that. setuid would probably be the best bet. easiest i think.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Limit root user of SSH logins

Hi team, I tried to modify the /etc/security/limits.conf file to limit the root user for more one login. I added the line in limits.conf file like: @root hard maxlogins 1 I also tried to modify /etc/ssh/sshd_config to limit the root userlogin by adding this: ... (10 Replies)
Discussion started by: leo_ultra_leo
10 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. Solaris

Limit: stacksize: Can't remove limit

Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine? Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies

4. Cybersecurity

How to limit patchadd command to root user only?

How to limit patchadd command to root user only? I'm running a solaris 10 5/09 server, I have 2 users other than root. One being able to use the patchadd command and one is unable to do so. What I'm trying to do is to limit the patchadd command so that only root is able to run it. (7 Replies)
Discussion started by: ShouTenraku
7 Replies

5. UNIX for Dummies Questions & Answers

userid and pw

questions: a. where can I customized the password of userid in solaris? say I wanted 10digits long, all caps? thanks (4 Replies)
Discussion started by: lhareigh890
4 Replies

6. Shell Programming and Scripting

Parse an XML task list to create each task.xml file

I have an task definition listing xml file that contains a list of tasks such as <TASKLIST <TASK definition="Completion date" id="Taskname1" Some other <CODE name="Code12" <Parameter pname="Dog" input="5.6" units="feet" etc /Parameter> <Parameter... (3 Replies)
Discussion started by: MissI
3 Replies

7. Shell Programming and Scripting

comment and Uncomment single task out of multiple task

I have a file contains TASK gsnmpproxy { CommandLine = $SMCHOME/bin/gsnmpProxy.exe } TASK gsnmpdbgui { CommandLine = $SMCHOME/bin/gsnmpdbgui.exe I would like to comment and than uncomment specific task eg TASK gsnmpproxy Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies

8. UNIX for Advanced & Expert Users

userid

I would like to know the difference between the real user-id and the effective user-id. If user-A runs a program owned by user-B then which is the real user-id and which is the effective user-id ? (1 Reply)
Discussion started by: sundaresh
1 Replies

9. Solaris

How to set Root password age limit in Solaris 9/10

Hi Friends, Can anyone tell me how can I set the password age limit for root user to 14 days....??? Also would like to add following for root password; min-alpha --- 4 min-other --- 1 min-length -- 6 min-diff ----- 3 How can I do these on command line....??? Regards, jumadhiya (7 Replies)
Discussion started by: jumadhiya
7 Replies

10. UNIX for Advanced & Expert Users

Question on UserID with "root" priviledges

I know we can create a normal UserID with "root" priviledges by assigning the user into the "root" group. As such, everything that is modified by the UserID will also contain "root" as the group and ID. This is return causes less tracability on who made the change onto a certain file, etc. My... (3 Replies)
Discussion started by: Alvin
3 Replies
Login or Register to Ask a Question