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
Forums
Discussions
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
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-01-2003 04:58 AM
10-01-2003 04:58 AM
TMOUT
Does any one know if I can set up a separate TMOUT in .profile which can overwrite the one in /etc/profile? Currently, the setting in /etc/profile is
TMOUT=900
export TMOUT readonly
A user wants to extend the time. Can he do that by creating a new TMOUT in his .profile?
Thanks,
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:00 AM
10-01-2003 05:00 AM
Re: TMOUT
yes.
If you set it up in .profile, it will override any value set in /etc/profile.
Just to make sure, I tested this. It works as I say.
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
10-01-2003 05:16 AM
10-01-2003 05:16 AM
Re: TMOUT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:21 AM
10-01-2003 05:21 AM
Re: TMOUT
I would test this to be sure. Source /etc/profile:
. /etc/profile #make sure you have the space after the . and before the /
then try to reset TMOUT
TMOUT=1200
echo $TMOUT
The reason I'm being cautious about this is because of the readonly attribut. I'm not sure what shell you're using and whether this is being honored or not, but it is possible to make a variable unchangeable in this manner.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:25 AM
10-01-2003 05:25 AM
Re: TMOUT
If it is set to readonly in the /etc/profile (i.e. readonly TMOUT=900), then the user cannot modify it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:31 AM
10-01-2003 05:31 AM
Re: TMOUT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:49 AM
10-01-2003 05:49 AM
Re: TMOUT
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 05:57 AM
10-01-2003 05:57 AM
Re: TMOUT
Agreed! But what about the syntax "export TMOUT readonly"? I could not get that to work. Using "readonly TMOUT=900" or typeset -r seems to work as expected, but not the export syntax.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 07:47 AM
10-01-2003 07:47 AM
Re: TMOUT
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 01:13 PM
10-01-2003 01:13 PM
Re: TMOUT
export TMOUT readonly
means: define the two variables TMOUT and readonly as exported variables. In the order shown, readonly is NOT an attribute, it is a variable name. You can verify this with the env ocommand r just type export with no value. You can't combine two attributes on the same line in a POSIX shell (and ksh and bash since they are POSIX compliant) command. The correct syntax is:
export TMOUT
readonly TMOUT=900
You can make the assignment in export or in readonly. NOTE: to see all the readonly variables, just type: readonly
Note that whatever you define as readonly in /etc/profile then no changes can made to the value in local .profile files.
Bill Hassell, sysadmin