Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Restricting logins in a NIS environment, without removing NIS!
fishsponge
Posted: Jun 8 2005, 09:09 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



We have a NIS environment here, and all linux machines look at the same NIS server.

Our NIS Server, however, is also our DNS Server, and Intranet server, and Sun GridEngine master, and a few other things, and the problem is that users are perfectly able to log into this machine as if it was just another linux box.

We therefore need to restrict people from logging into certain machines on our network, but the same machines need to remain in NIS for those users we want to allow.

Do you know if this can be done? If so, how?

Thanks in advance! :D
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
fishsponge
Posted: Jun 9 2005, 01:52 PM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



ok, an update... i now have a working solution, but unfortunately it blocks IMAP logins even though i have allowed the user with which i log into IMAP as!

I am using the pam_access module under RedHat 8.0, and here are the contents of the relevant files:

CODE
/etc/pam.d/system-auth:
auth        required      /lib/security/pam_env.so
auth        sufficient    /lib/security/pam_unix.so likeauth nullok
auth        required      /lib/security/pam_deny.so
account     required      /lib/security/pam_unix.so
account     required      /lib/security/pam_access.so
password    required      /lib/security/pam_cracklib.so retry=3 type=
password    sufficient    /lib/security/pam_unix.so nullok use_authtok md5 shadow nis
password    required      /lib/security/pam_deny.so
session     required      /lib/security/pam_limits.so
session     required      /lib/security/pam_unix.so


CODE
/etc/security/access.conf:
+:root:192.168.0.2
-:root:ALL EXCEPT LOCAL
+:monitoring rhobbs nbaker:ALL
-:ALL:ALL EXCEPT LOCAL


This has the effect of banning root from logging in from anywhere except LOCAL and 192.168.0.2, and it bans everyone else (apart from 'monitoring', 'rhobbs' and 'nbaker') from logging in from anywhere except LOCAL.

However, when i make this change imapd stops accepting logins as user "monitoring". I haven't tested the other users, but i guess they won't work either.

Do you know this is happening? The two files above are the only files i have changed, and changing them back to normal solves the problem.

Thanks again to anyone who can help :D
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | SSH/Telnet/RLogin/RSH | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0978 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: Electronic Circuit Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum