LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2012, 01:10 AM   #1
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Rep: Reputation: Disabled
last command does not show more than 8 characters in username field


Hi All,
There are 2 FTP user accounts as below
Code:
FTPD_Admin_htdocs
FTPD_Admin_htdocs123
if I do
Code:
last | less
the first(username) field is not showing more than 8 characters.
And for above 2 users also the username is ended to 8th character i.e "FTPD_Adm".
So I am unable to find out that as which are "FTPD_Admin_htdocs" login logs and which are "FTPD_Admin_htdocs123" login logs.
So please help me to get full username(like "FTPD_Admin_htdocs" and "FTPD_Admin_htdocs123") in the first field with only last command.

Thanks & Regards
 
Old 10-26-2012, 01:19 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Have you tried using last's -w flag? From the man page:
Quote:
-w Display full user and domain names in the output.
 
1 members found this post helpful.
Old 10-26-2012, 01:52 AM   #3
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Have you tried using last's -w flag? From the man page:
Thank you very much druuna guru.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Awk script to look for string, show value in field 2, if not present print zero Perseus Programming 12 10-06-2011 03:40 AM
[SOLVED] Shell Script Field longer than 20 characters karelvdm Programming 3 07-13-2011 06:24 AM
Keep last 'n' characters of a specified field danielbmartin Linux - Newbie 24 04-11-2010 04:40 PM
Special Characters in username ljramos Linux - General 1 02-27-2006 01:56 PM
How to overwrite/change characters in the same field with C. slzckboy Programming 6 05-23-2005 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration