01-22-2013
Session Logging
Hi guys.
Solaris has a way of logging sessions of any user connected to the server via ssh. Session logs are saved in /var/tmp/session_log on any Solaris machine.
How can we achieve the same on Linux Redhat ???
Regards
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
2. Shell Programming and Scripting
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies
3. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
4. UNIX for Advanced & Expert Users
Is it possible to have a user session logged as an AIX process or initiated as a sub server? Can anyone please help?
Gayathri (0 Replies)
Discussion started by: ggayathri
0 Replies
5. Shell Programming and Scripting
I'm looking at allowing remote telnet into my server.
like any security-minded administrator, I want to log what my users type on the telnet session.
I'm using the script command to generate transcripts of the users session.
I have /etc/profile set to automatically start the script command... (2 Replies)
Discussion started by: ramnet
2 Replies
6. Shell Programming and Scripting
Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies
7. Solaris
what is the difference between desktop session and console session in solaris
as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies
8. Shell Programming and Scripting
HI ,
I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (4 Replies)
Discussion started by: nks342
4 Replies
9. Linux
When unlocking a Linux server's console there's no event indicating successful logging
Is there a way I can fix this ?
I have the following in my rsyslog.conf
auth.info /var/log/secure
authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies
LEARN ABOUT DEBIAN
net::httpserver::session
Net::HTTPServer::Session(3pm) User Contributed Perl Documentation Net::HTTPServer::Session(3pm)
NAME
Net::HTTPServer::Session - HTTP server side client session
SYNOPSIS
Net::HTTPServer::Session handles server side client sessions
DESCRIPTION
Net::HTTPServer::Session provides a server side data store for client specific sessions. It uses a cookie stored on the browser to tell
the server which session to restore to the user. This is modelled after the PHP session concept. The session is valid for 4 hours from
the last time the cookie was sent.
EXAMPLES
sub pageHandler {
my $request = shift;
my $session = $request->Session();
my $response = $request->Response();
# Logout
$session->Destroy() if $request->Env("logout");
$response->Print("<html><head><title>Hi there</title></head><body>");
# If the user specified a username on the URL, then save it.
if ($request->Env("username"))
{
$session->Set("username",$request->Env("username"));
}
# If there is a saved username, then use it.
if ($session->Get("username"))
{
$response->Print("Hello, ",$session->Get("username"),"!");
}
else
{
$response->Print("Hello, stranger!");
}
$response->Print("</body></html>");
return $response;
}
The above would behave as follows:
http://server/page - Hello, stranger!
http://server/page?username=Bob - Hello, Bob!
http://server/page - Hello, Bob!
http://server/page?username=Fred - Hello, Fred!
http://server/page - Hello, Fred!
http://server/page?logout=1 - Hello, stranger!
http://server/page - Hello, stranger!
METHODS
Delete(var)
Delete the specified variable from the session.
Destroy()
Destroy the session. The server side data is deleted and the cookie will be expired.
Exists(var)
Returns if the specified variable exists in the sesion.
Get(var)
Return the value of the specified variable from the session if it exists, undef otherwise.
Set(var,value)
Store the specified value (scalar or reference to any Perl data structure) in the session.
AUTHOR
Ryan Eatmon
COPYRIGHT
Copyright (c) 2003-2005 Ryan Eatmon <reatmon@mail.com>. All rights reserved. This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-03 Net::HTTPServer::Session(3pm)