Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
01-07-2010, 03:58 AM
|
#1
|
Member
Registered: Nov 2009
Posts: 30
Rep:
|
Disable .rhosts Support in /etc/pam.conf
Hi,
cd /etc
sed –e ‘s/^.*pam_rhosts_auth/#&/’ < /etc/pam.conf >
pam.conf.new
mv pam.conf.new pam.conf
pkgchk -f -n -p /etc/pam.conf
What does the "sed –e ‘s/^.*pam_rhosts_auth/#&/’" command actually means?
Regards
wjs
|
|
|
01-07-2010, 04:08 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
it says to put a # infront of any line that contains the phrase pam_rhosts_auth.
|
|
|
01-07-2010, 04:20 AM
|
#3
|
Member
Registered: Nov 2009
Posts: 30
Original Poster
Rep:
|
I see... so are there any commands that i can use to find out the line that contains the phrase "pam_rhosts_auth", but does not have the "#" infront of it.
|
|
|
01-07-2010, 04:53 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well, i think the regex /^[^#].*pam_rhosts_auth/ should match those lines.
|
|
|
01-08-2010, 03:21 AM
|
#5
|
Member
Registered: Nov 2009
Posts: 30
Original Poster
Rep:
|
erm, sorry... i have tried removing the "#" from those phrase which contain the pam_rhosts_auth, but i did not get any result after using the command. why is that so?
Thanks.
|
|
|
01-08-2010, 12:03 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
You know, it helps if you actually ask a question rather than just asking why something undescribed isn't working. What result? What command?
|
|
|
01-09-2010, 08:48 PM
|
#7
|
Member
Registered: Nov 2009
Posts: 30
Original Poster
Rep:
|
i think i typed in the command cat /etc/pam.conf | awk '(/^[^#].*pam_rhosts_auth/)' . But it doesn't seems to return me anything even if i remove the "#" from the phrase. Did i use the syntax wrongly or? Please guide me. Thank you so much.
Regards
JS
|
|
|
All times are GMT -5. The time now is 06:41 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
|
|