03-09-2019
How about
ps with the "euid" output "standard format specifier"?
man ps:
Quote:
euid EUID effective user ID (alias uid).
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello all
say im logged in to account ar root , but I can't change any thing there ( like username )
if someone is already logged in also . how can I know who is ( user name ) also connected to the user im using ? (2 Replies)
Discussion started by: umen
2 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to write a script to get the user information & the command executed.
I tried something like this :
w | sort | awk '{print$5$6$7}'
My requirement is to identify the users who execute the same command at same time.
I need the user name & the... (2 Replies)
Discussion started by: vijayarajvp
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
I would like to know if there is anyway that I can pinpoint the user before/after he connects to the root? Also, I'm trying to find out what are the commands he inputs under root access. (6 Replies)
Discussion started by: pointgetter0
6 Replies
4. Cybersecurity
Hello,
My DBAs are connecting to the unix servers with ORACLE account.
I would like to create for each one of them a private user .
Only after connecting in ther private user allow them to su -oracle .
My problem is that i need to prevent them from connecting remothly with SSH as oracle user.... (1 Reply)
Discussion started by: yoavbe
1 Replies
5. Cybersecurity
Please help me identify these user accounts..
bin, lp, nuucp, smbnull, mysql, tftp
Can we remove these user or disable these users?We have to apply the security policy about the user identification.Since it was settup by our vendor long time ago. We do not have these informations about these... (3 Replies)
Discussion started by: rdstkg
3 Replies
6. Red Hat
Hi
I want to setup an extra account with name 'unixuser' who has the previlege to reset the passwords of other users like eng or myuser (other user).
Please help me.. Waiting for a reply..
Thanks,
MJavalkar (1 Reply)
Discussion started by: mjavalkar
1 Replies
7. Solaris
Hi Guys,
I was studying RBAC and I gave a profile to a user . I have not seen anywhere that shows how to remove the profile from the users account. Can anyone show me how to remove a given profile from a users account?
Thanks alot guys. (2 Replies)
Discussion started by: cjashu
2 Replies
LEARN ABOUT HPUX
setreuid
setreuid(2) System Calls Manual setreuid(2)
NAME
setreuid - set real and effective user IDs
SYNOPSIS
DESCRIPTION
The function sets the real and effective user IDs of the current process to the values specified by the ruid and euid arguments. If ruid or
euid is -1, the corresponding effective or real user ID of the current process is left unchanged.
A process with appropriate privileges can set either ID to any value. An unprivileged process can only set the effective user ID if the
euid argument is equal to either the real, effective, or saved user ID of the process.
It is unspecified whether a process without appropriate privileges is permitted to change the real user ID to match the current real,
effective or saved user ID of the process.
RETURN VALUE
Upon successful completion, 0 is returned. Otherwise, -1 is returned and is set to indicate the error.
ERRORS
The function will fail if:
[EINVAL] The value of the ruid or euid argument is invalid or out-of-range.
[EPERM] The current process does not have appropriate privileges, and either an attempt was made to change the
effective user ID to a value other than the real user ID or the saved set-user-ID or an attempt was made to
change the real user ID to a value not permitted by the implementation.
SEE ALSO
getuid(2), setuid(2), <unistd.h>.
CHANGE HISTORY
First released in Issue 4, Version 2.
setreuid(2)