privileged(9r)privileged(9r)NAME
privileged - General: Checks for proper privileges
SYNOPSIS
int privileged(
int privilege,
int error_code );
ARGUMENTS
Specifies the privilege to check against. This privilege must be one of the constants defined in /usr/sys/include/sys/security.h. For exam-
ple, you would specify SEC_FILESYS for disk drivers that must manipulate partition tables on disk drives. Specifies the value used to con-
trol auditing. You can pass one of the system's error codes or one of the following values: -1, 0, 1. An example of an error code is the
constant EPERM.
DESCRIPTION
The privileged routine checks for an appropriate privilege when the security feature is enabled. Use privileged with a privilege number
and with the error_code argument set to the constant EPERM to emulate the traditional behavior of the suser routine. Set error_code to a
value of 0 (zero) if you want to check the privilege but not fail the operation if the user does not have the proper privilege. A value of
-1 turns off all auditing as well.
RETURN VALUES
The privileged routine returns the value 0 (zero) if the process does not have privilege. It returns the value 1 if the process does have
privilege.
FILES SEE ALSO
Routines: suser(9r)privileged(9r)
Check Out this Related Man Page
polkit-is-privileged(1M) System Administration Commands polkit-is-privileged(1M)NAME
polkit-is-privileged - check PolicyKit privileges
SYNOPSIS
polkit-is-privileged [-hvV] -u user -p privilege [-r resource]
DESCRIPTION
The polkit-is-privileged command queries system policy to determine whether a user is allowed for a given privilege and resource. The
resource name can be omitted. On the Solaris operating system, RBAC authorizations names should be used as privilege names.
Currently, the only consumer of PolicyKit is hald(1M).
OPTIONS
The following options are supported:
-h, --help
Display list of options and exit.
-p privilege, --privilege privilege
Name of privilege associated with user. Command tests for this privilege.
-r resource, --resource resource
Name of resource associated with user and privilege. Command tests for this resource.
-u user, --user user
User name or user id that is tested for.
-v, --verbose
Verbose mode.
-V, --version
Displays version number.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWhalr |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO auths(1), profiles(1), hald(1M), getauthattr(3SECDB), auth_attr(4), policy.conf(4), prof_attr(4), user_attr(4), attributes(5)SunOS 5.11 22 Aug 2006 polkit-is-privileged(1M)
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)
Please let me know how to setup a non-root user to be able to access a privileged port (<1024) on Solaris 8. I am currently running tomcat as "tomcat" user and I get the following error during to start up:
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied<null>:443 (5 Replies)
I want to periodically check if ASCII password/config files on Unix have 400 or 600 access. Folders and files are owned by designated group and user. Folders and Files do not have world write access.
Are there any tools/scripts available for this kind of auditing that I can use on Solaris? (7 Replies)
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)
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)
I am trying to find out the information of my local desktop when i use putty to login to an AIX server.
This is what I do:
1. login to my PC
2. take a putty session to an AIX server
Can i get information of my local desktop from the AIX server ? Is there a command available ?
Thanks (8 Replies)
Hi ,
I want to create 3 different user with below privilege in Solaris and Linux.
1) Read Only
2)Read and Write Only
3) Admin user
Can you guys help me on this . (3 Replies)
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)