04-27-2012
Quote:
Originally Posted by
methyl
I think that nulling the utmp file will only make things worse because it will orphan the current logged-in users records.
You are right. On the other hand as users log out and log in again this will become corrected over time. Depending on how much and which type of (long-lasting or short) user sessions the system typically experiences this may take a tolerable amount of time.
Btw., it is a good idea to temporarily disable logins for safety while working on the
utmp file. This can be done by creating an empty file
/etc/nologin as root. The simple existence of the file prevents logins, removal of it (which is done automatically at reboot too) will reenable logins.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
2. Programming
Hi all
i have simple c program , when i wish to kill the app
im using kill(0,-9) , but it seams this command don't do any thing and the program.
just ignore it .
what im doing wrong here ?
im using HP-UX ia64
Thanks (9 Replies)
Discussion started by: umen
9 Replies
3. AIX
i got this error while installing ssh package time
bash-3.00# installp -d /openssh/ openssh.base
installp: No action was indicated.
The -a (apply) flag is being assumed.
+-----------------------------------------------------------------------------+
Pre-installation Verification...... (3 Replies)
Discussion started by: chinni929
3 Replies
4. Shell Programming and Scripting
Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies
5. Linux
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies
6. AIX
Hello All,
After creating lpp_source/spot from AIX 5.3TL6-07 DVD on the NIM(AIX6.1), I went online and download the fix pack for reaching TL8-04. (it was less than 200Mgegs total)
then I did define a newer lpp_source530TL8-04 via a copy from the older lpp_source530TL6-07 (I diduse a command... (2 Replies)
Discussion started by: sangers
2 Replies
7. AIX
Dear Members :),
Curently we are migrating our AIX from 5.2.to 5.3, after migration when we check CPU through nmon it shows double in no i.e we have 8 CPU on our p570 box but nmom shows it 16 after investigation it was found that smtctl was enabled in AIX 5.3,can we disable the smtctl & what is... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies
8. AIX
Hi, I need to know how can I identify, wich SP is installed in my OS (AIX5.3)? and how can I upgrade it?
thanks a lot, (7 Replies)
Discussion started by: fdeivis
7 Replies
9. Shell Programming and Scripting
Hi ,
I am connecting to the linux redhat machine as user : APPS
I would like to know how i can kill -9 , all APPS sessions beside me .
Please advice
Thanks (2 Replies)
Discussion started by: yoavbe
2 Replies
10. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
LEARN ABOUT NETBSD
ssl_ctx_sess_set_cache_size
SSL_CTX_sess_set_cache_size(3) OpenSSL SSL_CTX_sess_set_cache_size(3)
NAME
SSL_CTX_sess_set_cache_size, SSL_CTX_sess_get_cache_size - manipulate session cache size
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include <openssl/ssl.h>
long SSL_CTX_sess_set_cache_size(SSL_CTX *ctx, long t);
long SSL_CTX_sess_get_cache_size(SSL_CTX *ctx);
DESCRIPTION
SSL_CTX_sess_set_cache_size() sets the size of the internal session cache of context ctx to t.
SSL_CTX_sess_get_cache_size() returns the currently valid session cache size.
NOTES
The internal session cache size is SSL_SESSION_CACHE_MAX_SIZE_DEFAULT, currently 1024*20, so that up to 20000 sessions can be held. This
size can be modified using the SSL_CTX_sess_set_cache_size() call. A special case is the size 0, which is used for unlimited size.
When the maximum number of sessions is reached, no more new sessions are added to the cache. New space may be added by calling
SSL_CTX_flush_sessions(3) to remove expired sessions.
If the size of the session cache is reduced and more sessions are already in the session cache, old session will be removed at the next
time a session shall be added. This removal is not synchronized with the expiration of sessions.
RETURN VALUES
SSL_CTX_sess_set_cache_size() returns the previously valid size.
SSL_CTX_sess_get_cache_size() returns the currently valid size.
SEE ALSO
ssl(3), SSL_CTX_set_session_cache_mode(3), SSL_CTX_sess_number(3), SSL_CTX_flush_sessions(3)
1.0.1i 2009-07-20 SSL_CTX_sess_set_cache_size(3)