08-08-2003
Not really - you can do the last command to find out who was / is logged in, but that won't be on one central server. If you push your syslog entries out to a central server, you can add an entry into different profiles (/etc/profile and if you use a central user profile) allowing the logger command to note that someone logged in.
Example:
Add to /etc/profile:
/bin/logger "`/bin/logname` logged into `/bin/hostname`"
That would add an entry such as this to /var/adm/messages (if syslog.conf is set up for it)
Aug 8 10:39:50 toast operator: [ID 702911 user.notice] operator logged into toast
Entry in syslog.conf:
*.emerg;*.err;*.alert;*.crit;*.warning;*.notice;*.debug @syslog1.mycom.com
This would log telnet sessions (but not ssh or rsh). Adding the same logger command to each user's .profile (or a central profile - can be done if all users have nfs mounted home directories, don't need (or security disallows) users changing .profile) will log messages if using ssh or rlogin commands (not when copying files with scp or running a command along with a rsh).
(Seems like too much work to bother, but it would give you what you a decent logging method).
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey,
I've set up a NIS domain with linux as master-server, slave server and clients ... and Linux works fine.
To that NIS domain I tried to add a HPUX 11.00 and an AIX 4.3.3 system (till now - there should be more clients in final version). And both systems now have to same problem:
I can... (3 Replies)
Discussion started by: mod
3 Replies
2. UNIX for Advanced & Expert Users
We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave.
We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation.
However, no matter what i do, the SUSE machines will not talk to the NIS Servers.
If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies
3. Solaris
Hi, all.
I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client,
1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01
2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies
4. Filesystems, Disks and Memory
Hi friends
how to find the nis users in my servers. i have normal users also.
Thanks & Regards
Manoj (3 Replies)
Discussion started by: manoj123
3 Replies
5. Solaris
Hello experts.
I am using Solaris10. How can i allow a group of users, remaining should be deny.
Thanx in advance. (9 Replies)
Discussion started by: younus_syed
9 Replies
6. Solaris
How to create users in NIS server in solaris
Thanks in Advance (6 Replies)
Discussion started by: durgaprasadr13
6 Replies
7. Solaris
Hi All,
How to restrict the NIS users not to change their passwords in for NIS users??
and my NIS user is unable to login to at client location what could be the problem for this ?
Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
8. Emergency UNIX and Linux Support
Hi all,
So I have created two Centos machines. One is configured as a NIS master and the second is a NIS cleint. The NIS configs are all working perfectly.
I created a user nisuser on NIS Master and I can use it on the client. BUT it doesnt show a home directory . Ive been told there is... (9 Replies)
Discussion started by: Junaid Subhani
9 Replies
9. Shell Programming and Scripting
Hi All,
I am having Solaris 5.10 acting as NIS.
How do i change multiple user password in NIS in a batch.
I have predefined users with their passwords to be set:
Example:
user1 password1
user2 password2
Pls advise. (0 Replies)
Discussion started by: yogajwa
0 Replies
10. Red Hat
Hai all,
I'm rameez rahman working as a Technical assistant.
I configured NIS Server in RHEL 6.5 with 40 client PC's.All the clients are using the same os ie RHEL 6.5 64 bit.All the features are working fine except sound ie from client machine if a NIS user logged in he cant access sound.But if... (2 Replies)
Discussion started by: rameez rahman k
2 Replies
LEARN ABOUT DEBIAN
exosip2_notify
eXosip2 SUBSCRIBE and incoming subscriptions(3) libeXosip2 eXosip2 SUBSCRIBE and incoming subscriptions(3)
NAME
eXosip2 SUBSCRIBE and incoming subscriptions -
Functions
int eXosip_insubscription_build_answer (int tid, int status, osip_message_t **answer)
int eXosip_insubscription_send_answer (int tid, int status, osip_message_t *answer)
int eXosip_insubscription_build_request (int did, const char *method, osip_message_t **request)
int eXosip_insubscription_build_notify (int did, int subscription_status, int subscription_reason, osip_message_t **request)
int eXosip_insubscription_send_request (int did, osip_message_t *request)
int eXosip_insubscription_remove (int did)
Detailed Description
Function Documentation
int eXosip_insubscription_build_answer (inttid, intstatus, osip_message_t **answer)
Build answer for an SUBSCRIBE request.
Parameters:
tid id of SUBSCRIBE transaction.
status status for SIP answer to build.
answer The SIP answer to build.
int eXosip_insubscription_send_answer (inttid, intstatus, osip_message_t *answer)
Send answer for an SUBSCRIBE request.
Parameters:
tid id of SUBSCRIBE transaction.
status status for SIP answer to send.
answer The SIP answer to send. (default will be sent if NULL)
int eXosip_insubscription_build_request (intdid, const char *method, osip_message_t **request)
Build a request within subscription.
Parameters:
did id of incoming subscription.
method request method to build.
request The SIP request to build.
int eXosip_insubscription_build_notify (intdid, intsubscription_status, intsubscription_reason, osip_message_t **request)
Build a NOTIFY request within subscription.
Parameters:
did id of incoming subscription.
subscription_status subscription status (pending, active, terminated)
subscription_reason subscription reason
request The SIP request to build.
int eXosip_insubscription_send_request (intdid, osip_message_t *request)
Send a request within subscription.
Parameters:
did id of incoming subscription.
request The SIP request to send.
int eXosip_insubscription_remove (intdid)
Remove incoming subscription context.
Parameters:
did identifier of the subscription.
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 SUBSCRIBE and incoming subscriptions(3)