- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using su, the value of LINES changes
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
10-10-2001 01:53 PM
10-10-2001 01:53 PM
Using su, the value of LINES changes
We use securetty to limit root login.
When I login as myself and examine the value of $LINES, it is correctly set to 24.
When I "su -" to root, the value of $LINES is now 4.
This only happens when the emulation mode is set to 8 bit. It does not happen with 7 bit.
Any ideas?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:02 PM
10-10-2001 02:02 PM
Re: Using su, the value of LINES changes
This is my best guess. Look in root .profile. Do you see those tset commands? I think that is your culprit. When it queries your terminal it is probably getting back a terminial ID string and then acting on it. You can probably
either put some probes in the .profile to log what tset is doing to a file of do some tests to bypass the code if a Reflection connection is detected. I'll bet that it does not do this to you if you su root rather than su - root. That is a definite indication that it is the .profile.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:51 PM
10-10-2001 02:51 PM
Re: Using su, the value of LINES changes
When you do a su - , root's .profile will get executed. Depending on the terminal definition there you would get the LINE, COLUMN settings. Check out $TERM once you did su -. If the TERM remains vt220, then do a resize and see if it is setting back to 24.
If you just do su (without -), the $LINES will remain.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:54 PM
10-10-2001 02:54 PM
Re: Using su, the value of LINES changes
You will probably find that there is some
reset from the 'tset' in your root user's
.profile and this can depend upon what
terminal type you are using when you run
the 'su -' command. Try and comment out the
lines pertaining to the 'tset' and test, or
alternatively add a variable of LINES=24 to
root's .profile.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 10:33 PM
10-10-2001 10:33 PM
Re: Using su, the value of LINES changes
check for "tset" or "ttytype" in your
"/etc/profile", and your "$HOME/.profile"
and set LINES afterwards.
HTH,
Wodisch