- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Login Terminal types
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 08:17 AM
06-29-2006 08:17 AM
In the below output of who command, pts/1 and pts/2 indicates what type of terminals ? I mean users has logged in by which method to the box ?
sksonkar ttyp5 Jan 21 13:00
sksonkar ttyp6 Jan 22 09:45
user1 pts/1 Jun 12 08:53
user2 pts/2 Jun 19 10:15
Thanks,
shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 08:24 AM
06-29-2006 08:24 AM
Re: Login Terminal types
Try
who -T
and man who.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 08:27 AM
06-29-2006 08:27 AM
Solutionpts/1 do designate psuedo terminals.
As the term implies its a really a terminal tarcking connection.
There is no relation to the termain type at all.
pts/1 can be vt100, vt220, hp TERM type, anything your system is set up to perform.
The ttyp devices are different and indicate a login via probably a mux or other serial device sharing scheme.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 08:38 AM
06-29-2006 08:38 AM
Re: Login Terminal types
hope u find out pts from SEP's reply.
and little more:
who -R --->u can find out the ip address of the users.
simple command to give lot of info is the single letter "w".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 11:46 AM
06-29-2006 11:46 AM
Re: Login Terminal types
If you must determine the terminal type automatically for each user, edit the file /etc/profile and add something like this:
MYTERM=$(ttytype -s)
echo "$LOGNAME $(date) $(tty) $MYTERM" >> /tmp/logins.history
This will tell you what each user has as a terminal.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 01:36 PM
06-29-2006 01:36 PM
Re: Login Terminal types
echo "$LOGNAME $(date) $(tty) $(ttytype)" >> /tmp/logins.history
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 04:22 AM
06-30-2006 04:22 AM
Re: Login Terminal types
# ttytype -s
TERM='vt100'; export TERM;
LINES=24; export LINES;
COLUMNS=80; export COLUMNS;
ERASE='^?'; export ERASE;
root@hpspool1 [ / ] #
# tty
/dev/pts/ta
but
#set
TERM=xterm
TMOUT=0
TZ=IST-5:30
what is wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 07:29 PM
06-30-2006 07:29 PM
Re: Login Terminal types
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 01:52 AM
07-01-2006 01:52 AM
Re: Login Terminal types
You wrote:
> # ttytype -s
> TERM='vt100'; export TERM;
This indicates that you are running a dumb terminal emulator.
> #set
> TERM=xterm
> TMOUT=0
> TZ=IST-5:30
This indicates that you did not login using telnet since there is virtually no environment. Your TERM variable is set to xterm which means you are borrorwing an emulator from HP-UX. And since xterm is an Xwindows program, you are either running an HP-UX graphics workstation or using a PC or Linux system to connect to your HP-UX system. This is a very different environment (due to the way Xwindows is normally configured) so your environment is severely truncated.
You need to use a 'normal' login where you get a login shell and a normal environment. If you must use Xwindows, then run this command:
echo "*loginShell: true" >> $HOME/.Xdefaults
on your HP-UX system. Then close your window and login again. This time, you will have a login shell and complete environment.
Bill Hassell, sysadmin