09-08-2008
grant root privileges to ordinary user
Hi,
Is it possible to grant root privileges to an ordinary user?
Other than 'sudo', is there some way under Users/Groups configuration?
I want ordinary user to be able to mount, umount and use command mt.
/Brendan
10 More Discussions You Might Find Interesting
1. Programming
Hi
I have make a program that needs root privleges but any user can try to run it, so what I want it is, when any user tries( other than root ) to run the program, an input prompt would open to enter root password ( if user knows ) and program will run ( otherwise exit ), and after completing... (21 Replies)
Discussion started by: sumsin
21 Replies
2. Shell Programming and Scripting
Good day Guys!!!
I am currently making a script in AIX, the script runs a SAS job, the owner of the script is the root, but the SAS jobs cannot be run by the root, as it should be run by a user 'sasia'. But inside the script, root creates a logfile, so what I need is just to su to sasia for the... (3 Replies)
Discussion started by: sasia
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
As admin with root rights, to execute any command from another user without password-ask, I do : su - <user> -c "<cmd>"
But how can I do to give the same rights to another physical user without using root user ? :confused:
I've try to create another user "toor" with the same primary... (4 Replies)
Discussion started by: madmat
4 Replies
4. Shell Programming and Scripting
Hi all,
I am trying to eject the cdrom from a livecd after certain stage...
Now assuming that it is possible to eject,please consider my issue!!!
The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive...
However if i try pfexec eject it... (3 Replies)
Discussion started by: wrapster
3 Replies
5. UNIX for Dummies Questions & Answers
How to give an ordinary user the superuser (root) ID which is 0 (9 Replies)
Discussion started by: sharaola
9 Replies
6. Programming
i have installed oracle 10g and two databases.
i enter database1 as sysdba and create a user called user1.i give the privileges as "select on" to user1.
i enter sqlplus from the shell prompt. i enter as user1. but when i do "select * from emp" i have a "the table doesn't exist". how can i give... (3 Replies)
Discussion started by: symeje
3 Replies
7. Solaris
Afternoon everyone,
I would want to ask that how/what privileges i should grant to a new user so that the user can clear /disable printing job queue?
Solaris OS: 5.9
Thanks. :b: (4 Replies)
Discussion started by: beginningDBA
4 Replies
8. Shell Programming and Scripting
My English is no very good.
I must make a bash scripting sh create like a backdoor, and when execute the script a user without privileges convert in super user or root, whithout introducing the password.
In Spanish:
Crear un script que sirva como puerta trasera al sistema, de manera que al... (1 Reply)
Discussion started by: kitievbr
1 Replies
9. HP-UX
hi,
i am new in hp ux and i must create a user with root privileges and so i disable ssh connection from root login.
thanks.. (6 Replies)
Discussion started by: eliste
6 Replies
10. UNIX for Dummies Questions & Answers
I had a question in my test which asked where suppose user B has a program with 's' bit set. Can user A run this program and gain root privileges in any way?
I suppose not as the suid program run with privileges of owner and this program will run with B's privileges and not root. (1 Reply)
Discussion started by: syncmaster
1 Replies
LEARN ABOUT OPENSOLARIS
umount
umount(2) System Calls umount(2)
NAME
umount, umount2 - unmount a file system
SYNOPSIS
#include <sys/mount.h>
int umount(const char *file);
int umount2(const char *file, int mflag);
DESCRIPTION
The umount() function requests that a previously mounted file system contained on a block special device or directory be unmounted. The
file argument is a pointer to the absolute pathname of the file system to be unmounted. After unmounting the file system, the directory
upon which the file system was mounted reverts to its ordinary interpretation.
The umount2() function is identical to umount(), with the additional capability of unmounting file systems even if there are open files
active. The mflag argument must contain one of the following values:
0 Perform a normal unmount that is equivalent to umount(). The umount2() function returns EBUSY if there are open files active
within the file system to be unmounted.
MS_FORCE Unmount the file system, even if there are open files active. A forced unmount can result in loss of data, so it should be used
only when a regular unmount is unsuccessful. The umount2() function returns ENOTSUP if the specified file systems does not
support MS_FORCE. Only file systems of type nfs, ufs, pcfs, and zfs support MS_FORCE.
RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The umount() and umount2() functions will fail if:
EACCES The permission bits of the mount point do not permit read/write access or search permission is denied on a component of the
path prefix.
The calling process is not the owner of the mountpoint.
The mountpoint is not a regular file or a directory and the caller does not have all privileges available in a its zone.
The special device device does not permit read access in the case of read-only mounts or read-write access in the case of
read/write mounts.
EBUSY A file on file is busy.
EFAULT The file pointed to by file points to an illegal address.
EINVAL The file pointed to by file is not mounted.
ELOOP Too many symbolic links were encountered in translating the path pointed to by file.
ENAMETOOLONG The length of the file argument exceeds PATH_MAX, or the length of a file component exceeds NAME_MAX while
_POSIX_NO_TRUNC is in effect.
ENOENT The file pointed to by file does not exist or is not an absolute path.
ENOLINK The file pointed to by file is on a remote machine and the link to that machine is no longer active.
ENOTBLK The file pointed to by file is not a block special device.
EPERM The {PRIV_SYS_MOUNT} privilege is not asserted in the effective set of the calling process.
EREMOTE The file pointed to by file is remote.
The umount2() function will fail if:
ENOTSUP The file pointed to by file does not support this operation.
USAGE
The umount() and umount2() functions can be invoked only by a process that has the {PRIV_SYS_MOUNT} privilege asserted in its effective
set.
Because it provides greater functionality, the umount2() function is preferred.
SEE ALSO
mount(2), privileges(5)
SunOS 5.11 4 Aug 2008 umount(2)