[rhn-users] Authconfig Problem

Necati Keles pengunix at yahoo.com
Mon Sep 26 19:25:12 UTC 2005


Sudhanshu,
 
If it doesn't work correctly (authconfig) , you can change something in /etc/nsswitch.conf file.
It looks like :
 
[root at xyz ~]# more /etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#       nisplus or nis+         Use NIS+ (NIS version 3)
#       nis or yp               Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       hesiod                  Use Hesiod for user lookups
#       [NOTFOUND=return]       Stop searching if not found so far
#
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis
passwd:     files
shadow:     files
group:      files
#hosts:     db files nisplus nis dns
hosts:      files dns
# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   files
publickey:  nisplus
automount:  files
aliases:    files nisplus
[root at xyz ~]# 
 
 
 
lynos
===============
RHCE , SCSA / Istanbul , Türkiye
 
 
 
 
 
sudhanshu chopra <sid_prodigy at hotmail.com> wrote:
Hi Frazier,

It is still not working.After changing the execution bit ,it says 
"Permission denied" to root.And im not able
to run "authconfig" command.
What should be done.plz help me out.

Regards
Sudhanshu chopra


>From: "Frazier, Darrell USA CRC (Contractor)" 
>
>Reply-To: Red Hat Network Users List 
>To: "'rhn-users at redhat.com'" 
>Subject: RE:[rhn-users] Authconfig Problem
>Date: Mon, 26 Sep 2005 11:11:15 -0500
>
>When configuring PAM. It is customary to take the execution bit off the
>binary so that the system-auth file isn't overwritten:
>
>As root:
>
>chmod 600 /usr/sbin/authconfig
>chmod 600 /usr/bin/authconfig
>
>Hope this helps.
>
>Darrell
>
>-----Original Message-----
>From: rhn-users-request at redhat.com [mailto:rhn-users-request at redhat.com]
>Sent: Monday, September 26, 2005 11:00 AM
>To: rhn-users at redhat.com
>Subject: rhn-users Digest, Vol 19, Issue 29
>
>Send rhn-users mailing list submissions to
> rhn-users at redhat.com
>
>To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/rhn-users
>or, via email, send a message with subject or body 'help' to
> rhn-users-request at redhat.com
>
>You can reach the person managing the list at
> rhn-users-owner at redhat.com
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of rhn-users digest..."
>
>
>Today's Topics:
>
> 1. Authconfig Problem (sudhanshu chopra)
> 2. g++ (Craig M. Jameson)
> 3. Re: g++ (Naoki)
> 4. Re: g++ (Craig M. Jameson)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sun, 25 Sep 2005 22:49:00 +0530
>From: "sudhanshu chopra" 
>Subject: [rhn-users] Authconfig Problem
>To: rhn-users at redhat.com
>Message-ID: 
>Content-Type: text/plain; format=flowed
>
>hello friends,
>
>i'm presently configuring pam.Whenever i run authconfig command,my
>/etc/pam.d/sytem-auth file is regenerated.
>What can be done so that whenever i run authconfig command my
>/etc/pam.d/system-auth file is not changed?
>
>waiting for ur reply.
>thanks you
>
>Regards
>Sudhanshu Chopra
>
>_________________________________________________________________
>Repay your personal loan on your own terms.
>http://www.hsbc.co.in/script/in/common/redirect.asp?redirectto=/in/personal/
>loans/perloan.htm
>With HSBC's MyTerms Credit
>
>
>
>------------------------------
>
>Message: 2
>Date: Sun, 25 Sep 2005 22:23:43 -0600
>From: "Craig M. Jameson" 
>Subject: [rhn-users] g++
>To: rhn-users at redhat.com
>Message-ID: <1127708623.31028.26.camel at Prescott>
>Content-Type: text/plain
>
>I am befuddled. I am an amateur administrator trying to compile my first
>C++ program. (Actually, the compile succeeded.) I tried to compile the
>following two programs:
>
>#include 
>#include 
>int main(int argc, char *argv[]) { cout << "hey"; return 0; }
>
>and
>
>#include 
>#include 
>int main(int argc, char *argv[]) {std::cout << "hey"; return 0; }
>
>The second compiles. The first does not. (Every presumably reliable
>source I have seen says to write this as in the first case.) Can I rule
>out a problem with my installation? (i.e. is this a problem with my
>understanding of linux or C++?)
>
>I compile using the command
> g++ -v filename.C
>
>The output for the first case contains
>
> #include <...> search starts here:
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3
>
>where iostream is located, and
>
> error: `cout' undeclared (first use this function)
>
>(When I compile the second case, in runs fine.)
>
>
>Craig.
>
>
>
>
>------------------------------
>
>Message: 3
>Date: Mon, 26 Sep 2005 13:34:35 +0900
>From: Naoki 
>Subject: Re: [rhn-users] g++
>To: Red Hat Network Users List 
>Message-ID: <1127709275.3353.67.camel at dragon.sys.intra>
>Content-Type: text/plain
>
>Yeah, that one bit me for a while as well. You need to add to the first
>one : "using namespace std;" and then it'll know.
>
>
>
>On Sun, 2005-09-25 at 22:23 -0600, Craig M. Jameson wrote:
> > I am befuddled. I am an amateur administrator trying to compile my first
> > C++ program. (Actually, the compile succeeded.) I tried to compile the
> > following two programs:
> >
> > #include 
> > #include 
> > int main(int argc, char *argv[]) { cout << "hey"; return 0; }
> >
> > and
> >
> > #include 
> > #include 
> > int main(int argc, char *argv[]) {std::cout << "hey"; return 0; }
> >
> > The second compiles. The first does not. (Every presumably reliable
> > source I have seen says to write this as in the first case.) Can I rule
> > out a problem with my installation? (i.e. is this a problem with my
> > understanding of linux or C++?)
> >
> > I compile using the command
> > g++ -v filename.C
> >
> > The output for the first case contains
> >
> > #include <...> search starts here:
> > /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3
> >
> > where iostream is located, and
> >
> > error: `cout' undeclared (first use this function)
> >
> > (When I compile the second case, in runs fine.)
> >
> >
> > Craig.
> >
> >
> > _______________________________________________
> > rhn-users mailing list
> > rhn-users at redhat.com
> > https://www.redhat.com/mailman/listinfo/rhn-users
>
>
>
>
>------------------------------
>
>Message: 4
>Date: Mon, 26 Sep 2005 08:35:31 -0600
>From: "Craig M. Jameson" 
>Subject: Re: [rhn-users] g++
>To: Red Hat Network Users List 
>Message-ID: <1127745331.1092.0.camel at Prescott>
>Content-Type: text/plain
>
>Sure enough. Thanks a bunch.
>
>Craig.
>
>
>On Mon, 2005-09-26 at 13:34 +0900, Naoki wrote:
> > Yeah, that one bit me for a while as well. You need to add to the first
> > one : "using namespace std;" and then it'll know.
> >
> >
> >
> > On Sun, 2005-09-25 at 22:23 -0600, Craig M. Jameson wrote:
> > > I am befuddled. I am an amateur administrator trying to compile my 
>first
> > > C++ program. (Actually, the compile succeeded.) I tried to compile the
> > > following two programs:
> > >
> > > #include 
> > > #include 
> > > int main(int argc, char *argv[]) { cout << "hey"; return 0; }
> > >
> > > and
> > >
> > > #include 
> > > #include 
> > > int main(int argc, char *argv[]) {std::cout << "hey"; return 0; }
> > >
> > > The second compiles. The first does not. (Every presumably reliable
> > > source I have seen says to write this as in the first case.) Can I 
>rule
> > > out a problem with my installation? (i.e. is this a problem with my
> > > understanding of linux or C++?)
> > >
> > > I compile using the command
> > > g++ -v filename.C
> > >
> > > The output for the first case contains
> > >
> > > #include <...> search starts here:
> > > /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3
> > >
> > > where iostream is located, and
> > >
> > > error: `cout' undeclared (first use this function)
> > >
> > > (When I compile the second case, in runs fine.)
> > >
> > >
> > > Craig.
> > >
> > >
> > > _______________________________________________
> > > rhn-users mailing list
> > > rhn-users at redhat.com
> > > https://www.redhat.com/mailman/listinfo/rhn-users
> >
> >
> > _______________________________________________
> > rhn-users mailing list
> > rhn-users at redhat.com
> > https://www.redhat.com/mailman/listinfo/rhn-users
>
>
>
>------------------------------
>
>_______________________________________________
>rhn-users mailing list
>rhn-users at redhat.com
>https://www.redhat.com/mailman/listinfo/rhn-users
>
>End of rhn-users Digest, Vol 19, Issue 29
>*****************************************


>_______________________________________________
>rhn-users mailing list
>rhn-users at redhat.com
>https://www.redhat.com/mailman/listinfo/rhn-users

_________________________________________________________________
Now or Never special offer for NRIs! 
http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm 
Zero balance Account from Citibank!

_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20050926/2db42603/attachment.htm>


More information about the rhn-users mailing list