02-01-2002
What OS? Do you have any security package on the system (such as BoKS?)?
Best bet without knowing the answers to these questions - install and use sudo. This allows you to give certain users or groups some of the access as if they were root.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Dear all,
An ordinary user can shutdown the UNIX MACHINE ?
SCO UNIXWARE 7.0.
what has to be done to privilage for an ordinary user to SHUTDOWN the PC??
i would be thankful if i will get a solution.
with regards,
konda. (2 Replies)
Discussion started by: konda
2 Replies
2. 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
3. Solaris
Hello All,
I need your help to know how i can give regular user ALL root privileges.
If there is any way pleas help me :)
Regards,
Ahmad (7 Replies)
Discussion started by: ahmad_one
7 Replies
4. 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
5. UNIX for Dummies Questions & Answers
what does x(in rwx) privilege mean?
just text files or shell script files?
that's so confusing. (3 Replies)
Discussion started by: kang
3 Replies
6. UNIX for Dummies Questions & Answers
I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS).
Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies
7. AIX
How to assign superuser privilege to an ordinary user temporarily (1 Reply)
Discussion started by: udtyuvaraj
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Naveen Pathak
3 Replies
9. Emergency UNIX and Linux Support
I would like to capture the list of all users that belong to the "system" group. Or in other words all those who have privilege access on the system. Can someone please help me with a shell script/sed/awk code to obtain this please. (3 Replies)
Discussion started by: ggayathri
3 Replies
10. Red Hat
Hey
is there any method (base on kernel) to block adding any root Privilege?
only "root" account allow on system and no one can add new root Privilege, ? (4 Replies)
Discussion started by: nimafire
4 Replies
LEARN ABOUT HPUX
priv_getbynum
priv_getbynum(3) Library Functions Manual priv_getbynum(3)
NAME
priv_getbynum() - convert privilege ID to privilege name
SYNOPSIS
Parameters
priv_id The internal (numeric) representation of a privilege to be converted to the external (string) representation.
DESCRIPTION
converts the internal privilege representation of the privilege ID to the external string representation.
RETURN VALUE
returns the following values:
pointer Successful completion. A non-null pointer to the privilege name is returned. The returned string is a pointer to shared
data, and must not be modified or freed.
NULL pointer
Function failed. is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
Invalid privilege ID.
EXAMPLES
#include <stdio.h>
#include <sys/privileges.h>
#include <sys/types.h>
main()
{
priv_t priv_id=PRIV_SYSNFS;
const char *priv_name;
priv_name = priv_getbynum(priv_id);
if (priv_name == NULL) {
printf("Error getting privilege name
");
} else {
/* priv_name is constant static data
may not be modified or freed */
printf("Privilege Name : %s
",priv_name);
}
}
SEE ALSO
priv_getbyname(3), priv_set_to_str(3), priv_str_to_set(3), privileges(5).
priv_getbynum(3)