08-08-2013
8 More Discussions You Might Find Interesting
1. Solaris
i just tryed to install solaris 10.. it installed fine.. but when i restarted it and tried to use it.. i get a message that says: The X server cannot be started on display :0...
what do i do? :confused: (5 Replies)
Discussion started by: hiimcody1
5 Replies
2. UNIX for Dummies Questions & Answers
I am a newb linux user. And i am running suse 9.3 pro.
When i first installed it a couple of days ago, it booted into the desktop
fine the first four or five times.
And not when i turn on my computer and boot linux and loads the devices, then it prompts me...
UserName:
Password:
(which... (1 Reply)
Discussion started by: derekmpage
1 Replies
3. UNIX and Linux Applications
i want to change my desktop to a darker look been to gnomelook.org and ubuntulook.org even deviant art but seem not able to find anything i like is there anybody out there that might be able to steer me into the right direction ?
i know about how gtk works browsed what is available out there but... (1 Reply)
Discussion started by: ksnovice
1 Replies
4. What is on Your Mind?
I am on Solaris 10
cat /etc/release
Solaris 10 10/09 s10x_u8wos_08a X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009 (16 Replies)
Discussion started by: solaris_user
16 Replies
5. UNIX Desktop Questions & Answers
We are going to use Linux Desktop systems.
Which one will be the best option ?
I prefer CentOS , but in CentOS which one ?
I heard fedora will take more Ram space..!! is it ?
P.S
1. Users are developers , with eclipse , java , tomcat webserver etc.
2. System Configuration ~: 2GB ,... (8 Replies)
Discussion started by: linuxadmin
8 Replies
6. What is on Your Mind?
Hi, guys. What is your favourite movie at the moment? Which movie are you watching? I am watching the Thor:) (17 Replies)
Discussion started by: Tinna
17 Replies
7. What is on Your Mind?
So what is everyones all time favourite games console and why do you like it?
(Please - no comments on why they are better than others as that would be opinion based and cause arguments, positive comments only) (28 Replies)
Discussion started by: Tommyk
28 Replies
8. What is on Your Mind?
Hi all,
there have been a tremendous evolution in the computer games from games like Tetris or DAVE or Prince of Persia or wolf3d... to Call of Duty or BattleField or tomb raider etc etc
so let us know the games which you liked the most....
you can also mention about the gaming rig you... (32 Replies)
Discussion started by: vivek d r
32 Replies
LEARN ABOUT LINUX
setegid
SETEUID(2) Linux Programmer's Manual SETEUID(2)
NAME
seteuid, setegid - set effective user or group ID
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int seteuid(uid_t euid);
int setegid(gid_t egid);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
seteuid(), setegid():
_BSD_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
DESCRIPTION
seteuid() sets the effective user ID of the calling process. Unprivileged user processes may only set the effective user ID to the real
user ID, the effective user ID or the saved set-user-ID.
Precisely the same holds for setegid() with "group" instead of "user".
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EPERM The calling process is not privileged (Linux: does not have the CAP_SETUID capability in the case of seteuid(), or the CAP_SETGID
capability in the case of setegid()) and euid (respectively, egid) is not the real user (group) ID, the effective user (group) ID,
or the saved set-user-ID (saved set-group-ID).
CONFORMING TO
4.3BSD, POSIX.1-2001.
NOTES
Setting the effective user (group) ID to the saved set-user-ID (saved set-group-ID) is possible since Linux 1.1.37 (1.1.38). On an arbi-
trary system one should check _POSIX_SAVED_IDS.
Under libc4, libc5 and glibc 2.0 seteuid(euid) is equivalent to setreuid(-1, euid) and hence may change the saved set-user-ID. Under glibc
2.1 and later it is equivalent to setresuid(-1, euid, -1) and hence does not change the saved set-user-ID. Similar remarks hold for sete-
gid().
According to POSIX.1, seteuid() (setegid()) need not permit euid (egid) to be the same value as the current effective user (group) ID, and
some implementations do not permit this.
SEE ALSO
geteuid(2), setresuid(2), setreuid(2), setuid(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 2009-10-17 SETEUID(2)