12-31-2014
I'm not sure this request makes a lot of sense, as Bakunin pointed out, very politely.
With your apparent current level of understanding, please be very careful creating accounts or you can cause a lot of problems on your systems.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to grant write privileges to a user on a directory with out having to add the user to a group or make the user the owner of the directory?
My background is in Windows and in Windows you can grant specific privileges to a user without having to put the user in a group or making the... (3 Replies)
Discussion started by: here2learn
3 Replies
2. AIX
I'm trying to give a non-root user the right to start IBM HTTP Server, the web server is listening on port 80, but for AIX, ports under 1024 are privilege ports which can be used only by root.
/usr/IBMIHS/bin# ./apachectl start
(13)Permission denied: make_sock: could not bind to address :::80... (1 Reply)
Discussion started by: ibmer414
1 Replies
3. Solaris
Can anyone please tell how to give root privilege to a normal user in solaris 10? (5 Replies)
Discussion started by: nicktrix
5 Replies
4. UNIX for Dummies Questions & Answers
Hello experts I am new to Unix.
Env : HPUX
I need to create a user say testuser such that it does not have access to file/directories from the other group i.e the last 3 digits .
How do I do that.
Reason for such a request :-
I have an existing user oracle which has default umask... (3 Replies)
Discussion started by: simonsimon
3 Replies
5. Solaris
OS Version: Sun Solaris version 9
Other than root, we need operation to manage printer queue by using following command:
lprm -P
cancel
enable/disable
What privilege should be given?
Pls advise.
Thank you. (4 Replies)
Discussion started by: KhawHL
4 Replies
6. UNIX for Advanced & Expert Users
Upon trying to open up permissions between 2 accounts in Snow Leopard I caused the os to crash - restarting/turning off then on did nothing - the os would no longer load. I took it into Apple where they got the os back up and running with a slight twist. The secondary drive was flagged (a little... (0 Replies)
Discussion started by: Alexander4444
0 Replies
7. AIX
How to assign superuser privilege to an ordinary user temporarily (1 Reply)
Discussion started by: udtyuvaraj
1 Replies
8. AIX
I am planning to implement sudo for users.
Under , it looks I have to put the users who need to have sudo access:
What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users.
I'd like to know the commonly used privilege specification for sudo... (9 Replies)
Discussion started by: Daniel Gate
9 Replies
9. Cybersecurity
I am planning to implement sudo for users.
Under , it looks I have to put the users who need to have sudo access:
What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users.
I'd like to know the commonly used privilege specification for sudo... (1 Reply)
Discussion started by: Daniel Gate
1 Replies
10. Solaris
Hi
I need to assign proc_owner privilege to particular user through RBAC. How can I assign this privilege to user, I need help on this.
Further I need to understand if I give this proc_owner privilege to particular user, what kind of control user will get on other user or system processes... (7 Replies)
Discussion started by: sb200
7 Replies
LEARN ABOUT X11R4
priv_policy
priv_policy(9F) Kernel Functions for Drivers priv_policy(9F)
NAME
priv_policy, priv_policy_only, priv_policy_choice - check, report, and audit privileges
SYNOPSIS
#include <sys/cred.h>
int priv_policy(const cred_t *cr, int priv, int err, const char *msg);
int priv_policy_only(const cred_t *cr, int priv);
int priv_policy_choice(const cred_t *cr, int priv);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
cr
The credential to be checked.
priv
The integer value of the privilege to test.
err
The error code to return.
msg
String that is added to the privilege debugging message if one is generated. NULL if no additional information is needed. Because the
function name is included in the output, NULL is usually the best value to pass as a parameter.
DESCRIPTION
These functions aid in privilege checking and privilege debugging.
priv_policy(), priv_policy_only(), and priv_policy_choice() all check whether priv is asserted in the effective set of the credential. The
special value PRIV_ALL tests for all privileges.
priv_policy() updates the ASU accounting flag and records the privilege used on success in the audit trail if the required privilege was
not a basic privilege.
priv_policy_only() checks whether a privilege is asserted and has no side effects.
priv_policy_choice() behaves like priv_policy_only() but records the successfully used non-basic privileges in the audit trail.
RETURN VALUES
On success, priv_policy() return 0. On failure it returns its parameter err.
On success, priv_policy_choice() and priv_policy_only() return 1, on failure both return 0.
ERRORS
EINVAL
This might be caused by any of the following:
o The flags parameter is invalid.
o The specified privilege does not exist.
o The priv parameter contains invalid characters.
ENOMEM
There is no room to allocate another privilege.
ENAMETOOLONG
An attempt was made to allocate a privilege that was longer than {PRIVNAME_MAX} characters.
CONTEXT
This functions can be called from user or interrupt context.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
acct(3HEAD), attributes(5), privileges(5)
Writing Device Drivers
SunOS 5.10 9 Dec 2002 priv_policy(9F)