Sponsored Content
Operating Systems Solaris Adding a user twice to Solaris OS Post 302411640 by DukeNuke2 on Friday 9th of April 2010 05:04:41 AM
Old 04-09-2010
why(???) should this work? the uid has to be unique!
 

8 More Discussions You Might Find Interesting

1. Solaris

adding a user in single user mode

Just got a solaris 8 blade 150 box with no users, only a root account. no one seems to know the password. I'd like to add one user. So I booted into single user mode via cdrom and added one. Can't seem to login using the new account, though. Here's what I'm using: # useradd -d /tmp/"user" -m... (1 Reply)
Discussion started by: ECBROWN
1 Replies

2. Solaris

Error while adding a new user using Solaris Management Console.

Hi All, I am adding a new user by using Solaris Manamement Console after Remotely Access through Xmanager 1.3.9. But after completing all steps its through an error as follows. The Actual Error Reported was : The management Domain file :/abc/abc do not exist or can not be managed on abc. ... (0 Replies)
Discussion started by: response_manu
0 Replies

3. UNIX for Dummies Questions & Answers

adding long user name

hello everybody: I need to add a 10 character user name to my tru64 system, is there any work around I can use for that. thanks alot (1 Reply)
Discussion started by: aladdin
1 Replies

4. SCO

adding a user

In SCO Unix, where does useradd or adding a user through scoadmin (gui) pick the initial default .profile (login profile) that is put in the users home folder? In Solaris its in the /etc/skel/.profile. I would like to replace it with a custom .profile; so that it's picked automatically when... (1 Reply)
Discussion started by: othman
1 Replies

5. Solaris

help adding a new user/password

I just installed Solaris 10 yesterday and I need to create a new username and password. I'm new to the system and I have yet to learn my way around. I appreciate all help and thank you in advance. (5 Replies)
Discussion started by: bones
5 Replies

6. Solaris

Adding user

Hello All, New to Solaris, I added a new user by cmd " useradd -d /export/home/username -m username " but wondered when I tried to login with this new username, It doesn't automatically redirect to the user's home folder. Can anyone suggest about this? (9 Replies)
Discussion started by: naw_deepak
9 Replies

7. Solaris

Adding User in Solaris Error.....

Hi all, when I type this command useradd -d /home/ram89 -m ram89 it gives an error unable to create home directory. Why so ? How to create user in Solaris? The perfect method? Please guide me. Thanks in advance Manali. (5 Replies)
Discussion started by: manalisharmabe
5 Replies

8. Solaris

Adding user with Sudo permission in solaris 9

How can I add user with Sudo permission in solaris 9 ? I'm new in Solaris (2 Replies)
Discussion started by: ahmednoaman
2 Replies
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)
All times are GMT -4. The time now is 08:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy