Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-08-2002, 06:24 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
password protection

how do i prevent users on
my network from running

ypcat passwd

i need help desperately.
Old 10-08-2002, 08:18 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try this:

chmod 500 /usr/bin/ypcat

this just makes it accessible only by root.
Old 10-08-2002, 09:30 AM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Also make it immune for modifications, deletion, renaming, linking to by changing attributes,
chattr +i /usr/bin/ypcat
Old 10-09-2002, 06:16 AM   #4
LQ Newbie
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
even if one does

chmod 700 ...ypcat

the hacker can get a copy of ypcat , from somewhere , on his floppy and run it on my system . what does one do in that case.
Old 10-10-2002, 10:33 PM   #5
Registered: Sep 2002
Location: somewhere
Distribution: gentoo
Posts: 123

Rep: Reputation: 15
yp sucks. making ypcat exec only by root doesn't solve that problem, not one could a malicious user compile his own ypcat, chances are you are using something like Redhat so all the dolt has to do is grab a RPM...yawn..

there are some things you can do with NIS to make it more secure, however most of the failsafe methods break the purpose and functionality of NIS. For example you can still define local users in the /etc/passwd of all the hosts, however that makes using NIS pointless.

I suggest converting to OpenLDAP. There is redhat documentation regarding this, over at:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Protection In CGI amit_28oct Programming 8 06-24-2004 03:22 AM
Directory password protection scootz6 Linux - Security 2 03-25-2004 03:04 PM
apache password protection demicheru Linux - Software 2 02-25-2003 06:13 PM
Password Protection TheSockMonster Linux - Newbie 1 05-27-2002 12:10 PM
IP & Password Protection karunesh Linux - Security 4 04-10-2002 03:57 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration