Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to identify users that have su'ed to a different account? Post 303032037 by nezabudka on Sunday 10th of March 2019 12:03:03 AM
Old 03-10-2019
Maybe that
Code:
getent passwd nez
>nez:x:1000:1000:nezabudka:/home/nez:/bin/bash
getent group wheel qemu
>wheel:x:10:nez
>qemu:x:107:nez
getent initgroups nez
>nez                   10 107 983 1000

 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to know what users are logged in to account

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

Script to identify logged users & commands executed

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

audit user commands of different users under root account

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

Private account for administration users

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 identify these user account

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

how to setup An extra account with name 'unixuser' who can have the previlege to reset other users?

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

Remove a given profile from a users account

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
UTX(8)							    BSD System Manager's Manual 						    UTX(8)

NAME
utx -- manage the user accounting database SYNOPSIS
utx boot utx shutdown utx rm identifier ... DESCRIPTION
The utx utility can be used to perform operations on the user accounting database, as done by pututxline(3). The first argument to utx indicates an action to be performed: boot Write a boot time record to the user accounting database. This option should typically only be used by rc(8). shutdown Write a shutdown time record to the user accounting database. This option should typically only be used by rc(8). rm Remove stale sessions from the user accounting database, by referring to their identifier. Stale sessions can occur if a login service exits prematurely or fails to remove the session from the accounting database. Utilities such as w(1) will not display the identifier corresponding with a login session, since its value is typically only of use by the process managing the record. The following command can be used to obtain all records from the user accounting database's active session table, including its identifiers: getent utmpx active Identifiers can either be supplied in hexadecimal form as displayed by getent(1), or as a string if the identifier allows such a representation. Because this utility requires write-access to the user accounting database, its use is limited to the super-user. SEE ALSO
getent(1), w(1), pututxline(3) HISTORY
The utx utility replaced utxrm in FreeBSD 10.0. AUTHORS
Ed Schouten <ed@FreeBSD.org> BSD
November 3, 2013 BSD
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy