|
|||
Root Account Timeout
Dear All,
I'm tried to setup root account timeout by edited .profile TMOUT=60 but this does not causes the root account been logout after inactive for 2 minutes. Is this features is applicable to OpenBSD? Please enlighten on this. |
|
|||
I'm know that TMOUT is in seconds.
Questions: I'm think I had mess up with the .profile file. When I'm issue this command export TMOUT=60 > .profile. The default content of file gone and display blank afterwards. What wrong with it ? Both .profile file under /home/user and under / root directory also gives the same problem. Besides that, export pkg_path does not add to the .profile file as well. How to restore it or is this a normal situation? Thanks for the help. |
|
|||
To append (add to) a file use >>, not > which overwrites (creates) it.
Edit: echo "export TMOUT=60" >> .profile
__________________
Linux since 1999, & also a BSD user. |
|
|||
How to restore back those files to original content? Thanks.
|
|
|||
Where to find the base57.tgz file?
Can anyone copy the file content of .profile to here? I could not find the .profile file under base57.tgz Thanks. I'll working on it later. Last edited by Peter_APIIT; 23rd June 2015 at 11:44 AM. Reason: Add question |
|
|||
You will find it on your install media, or online such as, for example,
ftp://mirror.ox.ac.uk/pub/OpenBSD/5.7/i386/
__________________
Linux since 1999, & also a BSD user. |
|
|||
Can anyone copy the file content of .profile to here?
|
|
||||
Click here.
|
|
||||
A teaching moment for filesets and backups
Filesets
When you use tar(1) to scan the base57.tgz fileset for "profile", you don't find the /root/.profile. Here's an example with the i386 fileset, which only shows a Perl support file: Code:
$ tar tzf base57.tgz | grep profile ./usr/libdata/perl5/site_perl/i386-openbsd/i386/profile.ph $ Code:
$tar tzf base57.tgz | grep etc.tgz ./usr/share/sysmerge/etc.tgz $ Code:
$ tar xzf base57.tgz ./usr/share/sysmerge/etc.tgz $ tar tzf usr/share/sysmerge/etc.tgz | grep profile ./.profile ./etc/skel/.profile ./root/.profile $ Backups Peter, This project file is available in many different ways, including the CVS source repositories, which is what I provided in the link earlier today. But what if this file had been yours, and not a Project file? You need to determine an appropriate backup strategy, develop it, test it, and implement it. Had this file been your data, it would be have been lost. Last edited by jggimi; 24th June 2015 at 12:39 PM. Reason: typo in one of the example commands |
|
|||
Quote:
In short, I'm just need to copy the whole content of this file into my .profile because I'm suspect some of the content is not exists in my default .profile. Right. My .profile was in default content. Therefore, no worry about the content. I'll develop the backup strategy later. Thanks jggmi. |
|
|||
Problem solved. Thanks.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
uw-imap connection timeout | andrewm | OpenBSD Packages and Ports | 4 | 22nd October 2009 11:03 AM |
/bsd: ral0: device timeout | revzalot | OpenBSD General | 3 | 22nd July 2008 10:15 PM |
Error 504 gateway timeout | bsdbsd | FreeBSD General | 0 | 15th June 2008 01:06 PM |
sshd and timeout | Sunsawe | FreeBSD Security | 6 | 29th May 2008 12:54 PM |