LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02: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, 02:19 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
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, 02: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:40 AM
[SOLVED] Shell Script Field longer than 20 characters karelvdm Programming 3 07-13-2011 07:24 AM
Keep last 'n' characters of a specified field danielbmartin Linux - Newbie 24 04-11-2010 05:40 PM
Special Characters in username ljramos Linux - General 1 02-27-2006 02:56 PM
How to overwrite/change characters in the same field with C. slzckboy Programming 6 05-23-2005 06:07 PM

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

All times are GMT -5. The time now is 05:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration