01-24-2014
sudo elevates user rights by allowing to run certain commands as root There is no absolute safety in that: if a command can run other commands one gets more or all rights. Especially the shell allows everything.
A safer way to elevate user rights is RBAC (role based access control, see Wikipedia). Solaris has an RBAC implementation.
SELinux (Redhat) has another one.
--
But not HP-UX.
You can use another NIS server to provide the user identities (passwd and group), and make your HP-UX a NIS client. So root cannot delete a certain account or change its password. But still can switch to any identity, and create a local identity that covers/replaces the NIS account. NIS is not the only name service; there are LDAP or even Microsoft AD. In order to use these one needs a PAM (e.g. pam_ldap).
10 More Discussions You Might Find Interesting
1. Programming
Hi ,
I want to create a new user using c program not with unix adduser command .
is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages .
i can use system calls inside c program to do this .
i will... (5 Replies)
Discussion started by: naren_chella
5 Replies
2. Solaris
Hi All,
I'm using solaris 2.8, and I want create a new ftp user account with the following restrictions:
- Have only ftp access, no telnet or rlogin
- Have restricted access to its home directory example /export/home/newuser
- Deny access to any other directory.
Thanks for your help,
... (6 Replies)
Discussion started by: Jeremy3
6 Replies
3. UNIX for Dummies Questions & Answers
i want to create unix user account (usera) for outsider so that they can run program that exist in /application/xxx/.
The account have their own home directory (/home/usera).
But on the same time the user cannot run any application/command either than in /application/xxx/.
User can only... (1 Reply)
Discussion started by: golden_shooter
1 Replies
4. UNIX for Advanced & Expert Users
i want to create unix user account (usera) for outsider so that they can run program that exist in /application/xxx/.
The account have their own home directory (/home/usera).
But on the same time the user cannot run any application/command either than in /application/xxx/.
User can only... (1 Reply)
Discussion started by: golden_shooter
1 Replies
5. Shell Programming and Scripting
Is there any way to create user with default password by shell script withoud manual intervantion and from a text file having user's information and default password.
Thanks (6 Replies)
Discussion started by: wenay
6 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I wish to create some users, I can do that using the following command.
useradd
I wonder If i could create Uers as a clone of Root. I mean different users but having the same provileages as Root user. Can be ablle to access the Root Dir and so on ..
Please help me out Is this... (6 Replies)
Discussion started by: Asteroid
6 Replies
7. UNIX for Dummies Questions & Answers
hi
how to create new user in unix
plz explain me (3 Replies)
Discussion started by: arulkumar
3 Replies
8. Solaris
Hi,
I tried to search, but could not find answer for this really:
Is it possible to create a user that would have access only to a defined list of files? I would like to create a user that can access a set of files that are located behind different path. This user should not have access to... (1 Reply)
Discussion started by: Juha
1 Replies
9. UNIX for Dummies Questions & Answers
dear guys,
sorry for asking a noob :p question, tried to search the forum for an answer but couldn't find one, i am running solaris 10 and i would like to create a user with limited access to view only one directory, the directory already exist, is this possible:confused:?
thanks and regards (4 Replies)
Discussion started by: q8devilish
4 Replies
10. Ubuntu
Hello folks,
I pretend install Lubuntu 16.04 LTS in pc for any employer use this pc! I think create an user with, only, permission to read and write, 770.
This is the best scenario?
I think create this user through terminal, because I pretend create a script, and I don't where wizard has... (0 Replies)
Discussion started by: enodev
0 Replies
LEARN ABOUT SUNOS
roledel
roledel(1M) System Administration Commands roledel(1M)
NAME
roledel - delete a role's login from the system
SYNOPSIS
roledel [-r] role
DESCRIPTION
The roledel utility deletes a role account from the system and makes the appropriate account-related changes to the system file and file
system. roledel also removes the role from each user's list of assumable roles.
OPTIONS
The following options are supported:
-r Remove the role's home directory from the system. This directory must exist. The files and directories under the home
directory will no longer be accessible following successful execution of the command.
OPERANDS
The following operands are supported:
role An existing role name to be deleted.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
2 Invalid command syntax. A usage message for the roledel command is displayed.
6 The account to be removed does not exist.
8 The account to be removed is in use.
10 Cannot update the /etc/group or /etc/user_attr file but the login is removed from the /etc/passwd file.
12 Cannot remove or otherwise modify the home directory.
FILES
/etc/passwd system password file
/etc/shadow system file containing roles' encrypted passwords and related information
/etc/group system file containing group definitions
/etc/user_attr system file containing additional role attributes
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
|ATTRIBUTE TYPE |ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
auths(1), passwd(1), profiles(1), roles(1), users(1B), groupadd(1M), groupdel(1M), groupmod(1M), logins(1M), roleadd(1M), rolemod(1M),
useradd(1M), userdel(1M), usermod(1M), passwd(4), prof_attr(4), user_attr(4), attributes(5)
NOTES
The roledel utility only deletes an account definition that is in the local /etc/group, /etc/passwd, /etc/shadow, and /etc/user_attr file.
file. If a network name service such as NIS or NIS+ is being used to supplement the local /etc/passwd file with additional entries, roledel
cannot change information supplied by the network name service.
SunOS 5.10 8 Sep 1999 roledel(1M)