Sponsored Content
Full Discussion: tips Solaris
Operating Systems Solaris tips Solaris Post 302151689 by teenu18 on Monday 17th of December 2007 02:04:05 AM
Old 12-17-2007
Hi, the ouput of the last command itself shows the last login and logout time. If you want to search for specific user, then you can probably use:

$ last | grep "username"

Hope this helps.

UP
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tips on startup?

I'm running a small FreeBSD 5.1 system @ home. Whenever you log in with a normal account (not root) the system displays a random tip (commands, etc.) after the MOTD. I'd like to turn this feature off so that my custom MOTD fits on one screen. Is this posible at all? (3 Replies)
Discussion started by: McFlashbang
3 Replies

2. Tips and Tutorials

Welcome to Tips and Tutorials

Tips and Tutorials was created partially as an overflow from our Answers to Frequently Asked Questions. We noticed that some of the info in that forum did not really answer a question that is frequently asked. We want to keep the FAQ forum small so that it is easily browsed. Also, a few users... (0 Replies)
Discussion started by: Perderabo
0 Replies

3. Red Hat

linux tips

Hi, I am working on a linux install to a desktop pc and will configure this onto our main server once happy with the functions etc. I am actually a HP and AIX sys admin and was looking for the best ways to: create a bootable file that can be copied to dvd-rw / cd-rw or to dds be able to... (8 Replies)
Discussion started by: chlawren
8 Replies

4. Post Here to Contact Site Administrators and Moderators

Solaris tips and tricks

What do you think could we open new top topic with tips and tricks and to show to other users some tricks what do we know like dtrace , new virtual server , how to add new users etc. This is only suggestion (1 Reply)
Discussion started by: solaris_user
1 Replies

5. UNIX for Dummies Questions & Answers

Just asking - Tips on how to maintain your scripts ..

Hi all, Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ... At the moment, am having them in directories and files and no... (2 Replies)
Discussion started by: newbie_01
2 Replies

6. UNIX for Dummies Questions & Answers

tips

hi... I want some tips for standardizing shell script code... (1 Reply)
Discussion started by: xerox
1 Replies

7. Solaris

Solaris 11 performance optimization tips

Hi, I need general tips for solaris 11 performance optimization. For example - disable the unused services, etc. Thanks, Bhavin (2 Replies)
Discussion started by: bhavin1
2 Replies
su(1)							      General Commands Manual							     su(1)

Name
       su - substitute a user ID

Syntax
       su [username]

       su - [username]

       su -f [username]

Description
       The  command  requests the password of the specified username.  If the correct password is given, changes to that username without changing
       the current directory.  The user environment is unchanged except for HOME and SHELL which are taken from the password file entry for  user-
       name.   The  shell  that  is  run  is also taken from the password file entry for username.  The new user ID stays in force until the shell
       exits.

       If no username is specified, `root' is assumed.	To remind the superuser of his responsibilities, the shell substitutes `#' for	its  usual
       prompt.

Options
       -f   Prevents from executing the .cshrc file, making start up faster.

       -    Simulates a full login.

Diagnostics
       Sorry
	    An invalid password was supplied for the specified username.

       Unknown login: username
	    The specified username was not found in the passwd database.

       No directory
	    The home directory for the username is not accessible at this time (only with ``-'' argument).

       No shell
	    The shell specified in the passwd database entry for username could not be executed.

       Kerberos initialization failure
	    Consult your system administrator.

       If enhanced security features are enabled the following error messages are also possible:

       Requires secure terminal
	    Attempt to su to UID 0 on a line that is not marked secure in

       User's password has expired
	    Access is denied because the password for username is expired.

       This account is disabled
	    Access is denied because the auth entry corresponding to username is marked disabled.

Files
       Log file of anyone who became
			root, with a date mark.

See Also
       csh(1), sh(1), passwd(5yp), environ(7), edauth(8)
       Security Guide for Administrators
       Security Guide for Users

																	     su(1)
All times are GMT -4. The time now is 12:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy