how to assign the rights to groups in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris how to assign the rights to groups in solaris
# 1  
Old 10-09-2008
how to assign the rights to groups in solaris

Hi,

how to assign the rights(admin,..) to groups .
I can create group using groupadd.
but i don't know how to assign rights and adding members
please tell me how to do that

Thank you
# 2  
Old 10-09-2008
you can add users to group with the help of usermod command

usermod -g( in case if u want to assign the primary group or -G in case the of secondary group ) followed by group name or gid then user name .

i.e

usermod -g <primary group name / gid> -G < secondary group name / gid> <username>

check the detail with

groups <username>
# 3  
Old 10-13-2008
Dears.

To assign the rights to specific User In Solaris

Role-based access control (RBAC) is an alternative to the all-or-nothing superuser model. RBAC uses the security principle of least privilege. No user should be given more privilege than necessary for performing the user's job. RBAC makes it possible for an organization to separate superusers' capabilities and assign these capabilities to specific users or to special user accounts that are called roles. Roles can be assigned to specific individuals, according to their job needs

you have already user in your system named dell
you want to assign some administration tasks to del to do

1) you must make profile in this example the profile named is useradmin
# vi /etc/security/prof_attr
then you will write at the end of the file

useradmin::::
==========================================================
then at this file /etc/security/exec_attr you will assign the command what you want this user (dell) to do

/etc/security/exec_attr

useracc:suser:cmd:::/usr/sbin/useradd:uid=0
useracc:suser:cmd:::/usr/sbin/userdel:uid=0
useracc:suser:cmd:::/usr/sbin/usermod:uid=0
useracc:suser:cmd:::/usr/sbin/groupadd:uid=0
useracc:suser:cmd:::/usr/sbin/groupdel:uid=0
useracc:suser:cmd:::/usr/sbin/groupmod:uid=0
==========================================================
when you add role it's like useradd you will found the role name at /etc/passwd


Create role:-
**************
# roleadd -c "User Administration" -g "Primary Group" -md /export/home/username -s /user/bin/pfksh -P "useracc" username

-c if you want to add comment
-g if you want to add this role to primary group
-md to create the home directory for the role (it's like useradd home directory for the user)
-s to assign shell for user (this is like ksh we use but it is special for this command becouse it is check the rights you given to the user)
-P capital P to assign the profile


# passwd username
# usermod -R username dell
-R to assign role to existing user

Last edited by dellroxy; 03-02-2009 at 10:36 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 groups

I have a Solaris 10 system inherited from several previous admins. While trying to decipher a permissions issue, I ran "grpck" and it reported a ton of errors. Among them were these: 1. group name too long 2. group name contains illegal characters (special chars or caps) 3. group membership... (2 Replies)
Discussion started by: cjhilinski
2 Replies

2. Shell Programming and Scripting

Script to read through a file and create new users/assign them to groups in Ubuntu

Hi all. I need a shell script that can, in short, read through a text file line by line and create a new user in Ubuntu, as well as assign that user to a group. The format of the text file is not important but preferably: 'username:group'. I don't have much programming knowledge no matter shell... (3 Replies)
Discussion started by: LewisWeekly
3 Replies

3. Shell Programming and Scripting

Domain and work groups in solaris 10

Hello all, In solaris 10 can we create domains and workgroups like Active directory in windows? If that is possible, can some one please advise the procedure.. (1 Reply)
Discussion started by: bhargav90
1 Replies

4. Solaris

Maximum limit for allocation of groups to a folder in solaris 10

Hi, As per my knowledge, the maximum number of groups that can be allocated to a folder (in Solaris 10) is 16. But I wonder how this rule is applicable to folders which are mounted on NFS which can be accessed by 100s of groups? or is there is a restriction present? I have never handled such a... (5 Replies)
Discussion started by: poga
5 Replies

5. UNIX for Advanced & Expert Users

Assign default password to new users in Solaris

Hi All, I am working on a Solaris 10 machine and now working with a user creation script. I want to create users using the script and assign a default password. I found the use of 'expect' in one post, but 'expect' is not available in our server. Also, the below code is not working for... (2 Replies)
Discussion started by: jaiseaugustine
2 Replies

6. Solaris

Assign Superuser rights to normal user

Hi, It's actually strange, but Is there any way through which I can assign super user rights to normal user. Actually su/sudo/rbac does solve these but switching id is the problem for an application. For eg: $dladm show-dev insufficient priviliges. Is there any way to get it done ? ... (8 Replies)
Discussion started by: tuxian
8 Replies

7. Solaris

Solaris - Assign Static IP

Hi, I have cloned a SOLARIS 8 (BLADE 150) Hard Disk and have put into other system. So, now how do I configure the NIC and assign static IP for this new machine ? (8 Replies)
Discussion started by: angshuman_ag
8 Replies

8. Solaris

How to assign MAC address to N/W interface in solaris

I m having interface ce0 ce1 and its sub interfaces for that. I want to give MAC addresses for the same. How will I assign it. Please give solution for the same (4 Replies)
Discussion started by: sunray
4 Replies

9. UNIX for Dummies Questions & Answers

Assign groups by e-mail

Folks; I want to give a group a read access to a directory tree, but i want the group to be defined by the email account. here's the details: I have a punch users who use e-mail addresses of "*@blue.com". I want give this group of "*@blue.com" a read access to a directory tree so every one who... (8 Replies)
Discussion started by: moe2266
8 Replies

10. UNIX Desktop Questions & Answers

Groups Rights

I just created a group. How do i make the groups read only to a specific file systems.(home directory). (3 Replies)
Discussion started by: niasdad
3 Replies
Login or Register to Ask a Question