03-06-2013
yes, same user as "root".
10 More Discussions You Might Find Interesting
1. Red Hat
Friends ,
I cannot upgrade or add any package in RHEL 5 using 'package manager' GUI tools . When I run the 'package manager' tool then in BROWSE tab , it shows nothing . I try it inserting the RHEL5 DVD in the DVD-Rom . But the condition is the same .
Would anybody plz tell me , How can I... (4 Replies)
Discussion started by: shipon_97
4 Replies
2. Red Hat
I have dexx xps 14.I was installing rhel6.But the installation hanged at following step
initializing hardware detection.................
installion didnt go further (2 Replies)
Discussion started by: shamapraveen
2 Replies
3. Red Hat
Hi,
I heard a command that can collect all RHEL 5 log in a single compress file before I forget.
Does any body know...What the command is ?
Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies
4. Red Hat
Hi,
Sorry if this is an incorrect place for this question but I haven't been able to find any answers by searching the forums or on google. I am in the market for a new HP Z420 workstation and HP wants a lot more money for one with the HP Linux Installer kit vs. the exact same configuration in... (2 Replies)
Discussion started by: rhopson
2 Replies
5. Red Hat
Hi All,
I am a Solaris administartor. I got in to a probelm with RHEL.
I thought someone can help me on this forum ..
Can we download/install packages on a Redhat server with yum with out registering on RHEL network or website ? (1 Reply)
Discussion started by: sri243
1 Replies
6. Red Hat
Hi,
Here is this weird thing happening here. I mounted RHEL 6.6 DVD on a directoy /a, I am trying to copy it's content to another folder by using command:
cp -pr /a/* /new/folder
But while I run ls -lrt on both locations it show me difference in number of files. Any specific reason for that.... (5 Replies)
Discussion started by: nixhead
5 Replies
7. Red Hat
Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies
8. Red Hat
I require to install xrdp for remote desktop access of my linux server (RHEL 7.3).I searched a lot for it in google, but not able to find any suitable package for the same.One post I have found where the server where I am need to connect the server in Internet.But it is not possible for me to... (2 Replies)
Discussion started by: Anjan Ganguly
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I am trying to install tmux on vm allocated to me in my company . i am very new to linux. I have the root access on it.
Can someone please provide the exact steps to get it installed.
I tried:
1. Using yum, i get the below message.
# yum install tmux
Loaded plugins: security... (6 Replies)
Discussion started by: kunwar
6 Replies
10. Shell Programming and Scripting
My yum install command is failing. I first did yum clean all
I even tried with localinstall.
Below is the error output:
yum install mysql-community-server*.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT LINUX
setuid32
SETUID(2) Linux Programmer's Manual SETUID(2)
NAME
setuid - set user identity
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int setuid(uid_t uid);
DESCRIPTION
setuid() sets the effective user ID of the calling process. If the effective UID of the caller is root, the real UID and saved set-user-ID
are also set.
Under Linux, setuid() is implemented like the POSIX version with the _POSIX_SAVED_IDS feature. This allows a set-user-ID (other than root)
program to drop all of its user privileges, do some un-privileged work, and then reengage the original effective user ID in a secure man-
ner.
If the user is root or the program is set-user-ID-root, special care must be taken. The setuid() function checks the effective user ID of
the caller and if it is the superuser, all process-related user ID's are set to uid. After this has occurred, it is impossible for the
program to regain root privileges.
Thus, a set-user-ID-root program wishing to temporarily drop root privileges, assume the identity of an unprivileged user, and then regain
root privileges afterwards cannot use setuid(). You can accomplish this with seteuid(2).
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EAGAIN The uid does not match the current uid and uid brings process over its RLIMIT_NPROC resource limit.
EPERM The user is not privileged (Linux: does not have the CAP_SETUID capability) and uid does not match the real UID or saved set-user-ID
of the calling process.
CONFORMING TO
SVr4, POSIX.1-2001. Not quite compatible with the 4.4BSD call, which sets all of the real, saved, and effective user IDs.
NOTES
Linux Notes
Linux has the concept of file system user ID, normally equal to the effective user ID. The setuid() call also sets the file system user ID
of the calling process. See setfsuid(2).
If uid is different from the old effective uid, the process will be forbidden from leaving core dumps.
SEE ALSO
getuid(2), seteuid(2), setfsuid(2), setreuid(2), capabilities(7), credentials(7)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-02-21 SETUID(2)