Standard UNIX has an 8 character username limit (and I assume thatQuote:> What would I have to do to make the 'last' command show 16 characters
> instead of 8 in the username column? I am doing this on Red Hat 7.2.
--
Rich Teer
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
> > What would I have to do to make the 'last' command show 16 characters
> > instead of 8 in the username column? I am doing this on Red Hat 7.2.
> Standard UNIX has an 8 character username limit (and I assume that
> RedHat honours this). I suggest you try to stick to it.
[ Please don't top post ]
Use the Source, Luke!Quote:> Suggestion noted, however, what would I have to do to make the 'last'
> command show 16 characters instead of 8 in the username column? I am
> doing this on Red Hat 7.2.
--
Rich Teer
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
>> What would I have to do to make the 'last' command show 16 characters
>> instead of 8 in the username column? I am doing this on Red Hat 7.2.
> Standard UNIX has an 8 character username limit (and I assume that
> RedHat honours this). I suggest you try to stick to it.
> --
> Rich Teer
> President,
> Rite Online Inc.
> Voice: +1 (250) 979-1638
> URL: http://www.rite-online.net
--
Dan Mercer
If responding by email, include the phrase 'from usenet'
in the subject line to avoid spam filtering.
>>>What would I have to do to make the 'last' command show 16 characters
>>>instead of 8 in the username column? I am doing this on Red Hat 7.2.
>>Standard UNIX has an 8 character username limit (and I assume that
>>RedHat honours this). I suggest you try to stick to it.
>>--
>>Rich Teer
>>President,
>>Rite Online Inc.
>>Voice: +1 (250) 979-1638
>>URL: http://www.rite-online.net
> Rich's warning is quite correct. By exceeding the username limit
> you may be creating buffer overrun conditions that could make your
> system unstable or susceptible to attack. You may also run into
> problems with ps and many other programs that will no longer
> format data correctly.
Looking at the source code, it seems it processes teh /var/run/wtmp
database as if it s in new format - 32 bytes for username - unless -o
option is given. But when it prints, it always prints with "%-8.8s"
format for printf. That s why we end up seeing only the 8 characters. I
could fix this without much effort as shown below.
testingpurpose pts/3 192.168.1.252 Sun Sep 15 13:23 - 13:23
(00:00)
( Dont ask me for the changed code. Cos though it works fine, there
could be things that I overlooked and I dont want to be responsible for it )
As a side note : Another problem that comes to my mind about last
last -i will show entries like
sony :0 172.132.4.8 Sat Sep 7 21:28 gone - no logout
I thought for a while that this is a hacker ( 172.132.4.8 was shown to
be an America Online computer as per a www.arin.net whois lookup ).
Turns out if teh login is local ( :0 for 2nd field ), then the IP
address should not be considered.
Linux produces these entries whenever you do a
/usr/bin/X11/sessreg -a -w /var/log/wtmp -u none -l :0 sony
This is done by your startup scripts
--sony
1. username's limited to 8 characters
I'm using FreeBSD 2.2.5 and was wondering if there is anyway to get
the system to allow usernames longer than 8 characters long.
Any help would be greatly appreciated.
Bill Mott
2. How do u setup a pioneer DR-UA124X cd-rom to work
3. 'last' command doesn't show complete login times
6. wp for SCO
7. The 'last' command doesn't record users logout
8. SMBfs on linux 2.1.44 and greater
9. Help: problems with 'w', 'who' and 'last'
11. Why has my 'last' command suddenly stopped working?
13. Piping results of a 'find' command to a 'mv' command...