NIS users


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers NIS users
# 1  
Old 07-24-2003
NIS users

How's it going, everyone? A question was posed to me recently, and since I don't know the answer, I was wondering if anyone knew the answer/could point me to a website or book with the answer.

The head Network Admin asked me if we were able to keep track of which users log into which boxes via NIS. I have looked in /var/log for anything in the NIS master and clients, but no luck.
The Master is a RedHat 8.0 server, while the clients are a RedHat 7.3 box and a SuSE 8.0 Enterprise Server box.
# 2  
Old 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).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Audio Problem-NIS users

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

2. Shell Programming and Scripting

Bulk NIS Users Password Change

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

3. Emergency UNIX and Linux Support

NIS created users without a home directory

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

4. Solaris

To restrict the users not to change the passwords for NIS users

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

5. Solaris

How to create users in NIS

How to create users in NIS server in solaris Thanks in Advance (6 Replies)
Discussion started by: durgaprasadr13
6 Replies

6. Solaris

How can i allow only a group of users in NIS?

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

7. Filesystems, Disks and Memory

nis users

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

8. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

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

9. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

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

10. UNIX for Advanced & Expert Users

NIS users cann't login on AIX and HP

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
Login or Register to Ask a Question