Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-21-2011, 01:06 AM
|
#1
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364
Rep:
|
Security of NIS map files
I have setup a slave NIS server on a laptop. Now I am concerned of the security of the NIS map files in /var/yp/<nisdomain> dir.
If the laptop gets lost and falls in the wrong hands, is it possible to reverse engineer the NIS map files in /var/yp/<nisdomain> and get the user credentials as they reside in /etc/passwd and /etc/shadow?
What other information is possible to retrieve from the NIS map files?
|
|
|
03-23-2011, 05:26 AM
|
#2
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
It's the same like having access to /etc/passwd and /etc/shadow. Just use an editor and peek inside the map files.
Why are you running a NIS slave on a laptop?
|
|
|
03-23-2011, 05:31 AM
|
#3
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364
Original Poster
Rep:
|
The map files are actually non-text files. Anyway, you can actually ypcat to get all the info. So there is a certain amount of risk.
I am running NIS slave on the laptop for offline authentication. The other alternatives I see are caching auth data or local user.
|
|
|
03-23-2011, 06:05 AM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
When i use:
Code:
$ vi /var/yp/foobar/shadow.byname
I can clearly see the information when scrolling to the end.
|
|
|
03-29-2011, 08:53 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397
|
NIS is a very old protocol, & was designed to be clear-text. Later, SUN provided a new similar tool NIS+ to handle the same stuff, but encrypted. HOWEVER, by that time most people had moved onto LDAP, which can also be clear text or encrypted.
There's a good LDAP howto (inc TLS ) here http://www.linuxhomenetworking.com/w...DAP_and_RADIUS.
You can ignore the RADIUS section.
|
|
|
03-29-2011, 09:08 PM
|
#6
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364
Original Poster
Rep:
|
Quote:
Originally Posted by chrism01
NIS is a very old protocol, & was designed to be clear-text. Later, SUN provided a new similar tool NIS+ to handle the same stuff, but encrypted. HOWEVER, by that time most people had moved onto LDAP, which can also be clear text or encrypted.
There's a good LDAP howto (inc TLS ) here http://www.linuxhomenetworking.com/w...DAP_and_RADIUS.
You can ignore the RADIUS section.
|
Thanks. Yes, NIS is really an old protocol. However, some of our systems are stilling running NIS.
|
|
|
03-30-2011, 08:21 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397
|
You have my sympathy. I think even on Solaris these days most people would prob use LDAP+TLS rather than NIS+.
Good Luck
|
|
|
03-30-2011, 08:38 PM
|
#8
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364
Original Poster
Rep:
|
Quote:
Originally Posted by chrism01
You have my sympathy. I think even on Solaris these days most people would prob use LDAP+TLS rather than NIS+.
Good Luck
|
Ours are running AIX 5.x
|
|
|
All times are GMT -5. The time now is 10:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|