1833031 Members
2166 Online
110049 Solutions
New Discussion

privilege for groups?

 
kamal_15
Regular Advisor

privilege for groups?


hi all

I have hp-ux V 10.2

I created my own group and users members in this group.

I want to know how can i grant privilege to this group or any users inthis group.

and if i want to create user with same privilege with the root.

how can i do it???

many thankx

kamal
5 REPLIES 5
Peter Nikitka
Honored Contributor

Re: privilege for groups?

Hi,

what do you mean with 'privileges'?
If you think about access permissions for files:
- chgrp MYGRP file...
- chmod 660 file...
-> now all users of the group MYGRP are permitted to read/write file...

If you really want to create a user with the same privileges as root (this 'setting' cannot be got via groups!), you must give him the uid 0 (zero). BUT: I WOULDN'T DO THAT!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Sunil Sharma_1
Honored Contributor

Re: privilege for groups?

Kamal,

mid three fields in file permissions has permission for groups. you can even use ACL's to assign permission to specific user or group.

Never ever assign root priviledge to any other user. Use sudo to assign selected priviledge to users. If you want to give some user same rights as root then edit /etc/passwd file and change his UID to zero (0).

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
kamal_15
Regular Advisor

Re: privilege for groups?

thankx for your response

but i know there are commands (getprivgrp and setprivgrp).

this commands used to assign permissions or deny permissions from spesific groups.
if it is true?
how can i used this commands to do that?
without change UID or group ID

thankx for help

kamal
BONNAFOUS Jean Marc
Trusted Contributor

Re: privilege for groups?

Hi Kamal
The setprivgrp command associates a group with a list of privileges, thus providing access to certain system capabilities for members of a particular group or groups. The privileges can be displayed with the getprivgrp command.

For more info:
see
man setprivgrp.
or
http://docs.hp.com/en/B2355-90692/setprivgrp.1M.html for hp-ux 11.x
and
http://docs.hp.com/en/B2355-90129/setprivgrp.1M.html for hp-ux 10.x


Rgds
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
kamal_15
Regular Advisor

Re: privilege for groups?

many thankx

i will try to do that commands now

many thankx

kamal