How to see the root information from user loging account?


 
Thread Tools Search this Thread
Operating Systems Solaris How to see the root information from user loging account?
# 1  
Old 03-24-2010
How to see the root information from user loging account?

Hi friends

when ever user tried to loging to the server from the user account.we can see the from who -u command.this was fine

Code:
shut@erpqas $ who -u
ipadmin    pts/1        Mar 18 16:05  old     157       (10.5.23.74)
ipadmin    pts/3        Mar 19 08:29  old   11076       (10.5.23.74)
shut       pts/4        Mar 24 10:22   .     3286       (10.5.6.169)

its showing the ip address of the user system.

Code:
shut@erpqas $ su -
Password:
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
You have mail.
root@erpqas# bash
root@erpqas# who -u
ipadmin    pts/1        Mar 18 16:05  old     157       (10.5.23.74)
ipadmin    pts/3        Mar 19 08:29  old   11076       (10.5.23.74)
shut       pts/4        Mar 24 10:22   .     3286       (10.5.6.169)

here i want to see the root information from where i login from user account.ie..by using who command showing only user information but not root information.

Last edited by pludi; 03-24-2010 at 03:23 AM.. Reason: code tags, please...
# 2  
Old 03-24-2010
Thats because, you are logged in as user shut, try getting in as root rather than switching to root.
# 3  
Old 03-24-2010
only if you log in from the console as root directly, you will be able to see an entry like root logged in from console.
# 4  
Old 03-24-2010
Quote:
Originally Posted by incredible
only if you log in from the console as root directly, you will be able to see an entry like root logged in from console.
There is no such limitation. If someone is logged in as root from wherever, it will be seen with the who command.

Edit: I just understood what you meant.

When you are logged in to the console (/dev/console), every root login or su root will be logged in real time to the screen.

eg:
Code:
Tue 25 01:48:46 sgd1 login: ROOT LOGIN /dev/pts/7
Tue 25 01:51:27 sgd1 su: 'su root' succeeded for root on /dev/pts/7


Last edited by jlliagre; 03-24-2010 at 09:52 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Create a shell script to gather user account information and displays the result to administrator

I want to create a shell script to gather user account information and displays the result to administrator. I have created a script but its showing all the information when i search for username like: amit@mx:~$ ./uinfo.sh amit Username : amit User Info ... (2 Replies)
Discussion started by: amit1986
2 Replies

2. Solaris

how to su - from non root acount to non root account

HI i am trying to give su access to some users say X Y and Z to a account AB . I am able to give them su access to root with the help of sudoers file but i want to give them password less access to AB account which i am not able to do . I want to this when user X fires "su - AB" he is not... (9 Replies)
Discussion started by: rishiraaz
9 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. Red Hat

startx by non-root user account in red hat linux kernel 2.6

How can I use the command "startx" by other user account such as "oracle" ?? I cannot startx by user account oracle ?? How to fix it ??? Any adivce ??? I use red hat linux kernel 2.6 $ startx Fatal server error: PAM authentication failed, cannot start X server. Perhaps you do... (0 Replies)
Discussion started by: chuikingman
0 Replies

5. Debian

password less login to root from a user account

hello friends, one user is created named "user1" I login as "user1" . Now when i do "su -" to be root user I have to give password for root . Is there any way through which we can skip giving the password to root. i.e. user1@work:~$ su - Password: xxxxxx work:~$ I don't want that... (1 Reply)
Discussion started by: pradeepreddy
1 Replies

6. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

7. UNIX for Dummies Questions & Answers

How to reactivate expired account in Linux as a root user

I am an administrator of a Red Hat Enterprise Linux system. Now one account expired. I wonder how to reactivate the account. Thanks (2 Replies)
Discussion started by: cy163
2 Replies

8. HP-UX

view user account information

How can dump the user account detail? like how long need to change password, password naming policy, how many times will lock account if login failed.. thk a lot (0 Replies)
Discussion started by: zp523444
0 Replies

9. UNIX for Dummies Questions & Answers

Modify Root user account ?

How can I modify Root account ? (I want to change the default shell after logging in) Thanks (3 Replies)
Discussion started by: hitlermom
3 Replies

10. UNIX for Dummies Questions & Answers

create or modify user account to have same access as root

Is there a way to create or better yet modify a user account so it has the same privs as root? (6 Replies)
Discussion started by: xadamz23
6 Replies
Login or Register to Ask a Question