[rhn-users] Authconfig Problem

Necati Keles pengunix at yahoo.com
Wed Sep 28 07:55:40 UTC 2005


Hi Sudhanshu,

Yes you are right. I added an abnormal word (my name)
to /etc/pam.d/system-auth file. Then I executed the
authconfig command as you described. My name was not
here. OK.

But there is another thing you should consider.This is
normal behavior of the system authentication
mechanism. You cannot change /etc/pam.d/system-auth
file abnormally. There are a lot of rules to edit the
system-auth file. 
So, you should decide to edit system-auth file
correctly to serve as you want.

Regards



--- sudhanshu chopra <sid_prodigy at hotmail.com> wrote:

> hi Necati,
> 
> I have not made any changes in
> /etc/nsswitch.conf.(i'm having the default 
> file)
> Do me a favour plz.
> You edit your /etc/pam.d/system-auth file by writing
> anything into 
> it(anything will work like writing ur name).Then you
> save and quit that 
> file.After this, you run "authconfig" command ,now 
> without making any 
> changes press  "NEXT" button.
> Now you check your system-auth file.I think your
> name disappears.
> If ur name disappears.(this is my problem)
> waiting for ur reply.Sorry for disturbing u again.
> 
> Regards
> Sudhanshu Chopra
> 
> 
> >From: Necati Keles <pengunix at yahoo.com>
> >Reply-To: Red Hat Network Users List
> <rhn-users at redhat.com>
> >To: Red Hat Network Users List
> <rhn-users at redhat.com>
> >Subject: RE:[rhn-users] Authconfig Problem
> >Date: Tue, 27 Sep 2005 03:46:08 -0700 (PDT)
> >
> >Hi Sudhanshu,
> >
> > > I WANT MY system-auth file not to be changed
> after
> > > authconfig command.
> >
> >The authconfig tool updates the /etc/nsswitch.conf
> >file not others.
> >
> >There is a good link. I hope it will be helpful for
> >you.
> >
> >http://www.siliconvalleyccie.com/linux-adv/nis.htm
> >
> >necati
> >
> >
> >--- sudhanshu chopra <sid_prodigy at hotmail.com>
> wrote:
> >
> > > Hi Necati,
> > >
> > > I'm gonna broadly explain my problem to you.
> > > suppose ther are two system  system1 and
> system2.NIS
> > > server is configured on
> > > system1.System2 is NIS client.
> > > I want two things to be implemented in
> system2.ie
> > > 1)implementing pam (pam_time,pam_access)
> > > 2)At the same time,it should also work as NIS
> > > client.
> > >
> > > For implementing :step
> > > 1)For implementing Pam access and pam time.
> > > I need to make changes in
> > >
>
>/etc/pam.d/system-auth,/etc/security/access.conf,/etc/security/time.conf.
> > > After editing these files correctly.(Every thing
> in
> > > these files is correct).
> > > Pam is configured now.
> > >
> > > 2)Now to make this system as NIS client , i need
> to
> > > run authconfig command.
> > > After running authconfig command ,what ever
> changes
> > > that i have made in
> > > system-auth file is gone.And now i have default
> > > system-auth file."WHENEVER
> > > WE RUN AUTHCONFIG COMMAND SYSTEM-AUTH FILE IS
> > > CHANGED TO DEFAULT""I DONT
> > > WANT TIHS TO HAPPEN"WHAT SHOULD I DO NOW.(I know
> > > that i can straight away
> > > edit yp.conf file to configure NIS client but i
> > > don't want to do that.)
> > >
>
>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > > Plz dont think about the issues like
> > > 1)I SHOULD CONFIGURE NIS CLIENT FIRST THEN I
> SHOULD
> > > CONFIGURE PAM.
> > > 2)EDITING DONE IN ALL THESE FILE IS ABSOLUTELY
> > > CORRECT.
> > >
>
>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > > I WANT MY system-auth file not to be changed
> after
> > > authconfig command.
> > >
> > > waiting for ur answer
> > > thanks
> > >
> > > Regards
> > > Sudhanshu Chopra
> > >
> > >
> > > >From: Necati Keles <pengunix at yahoo.com>
> > > >Reply-To: Red Hat Network Users List
> > > <rhn-users at redhat.com>
> > > >To: Red Hat Network Users List
> > > <rhn-users at redhat.com>
> > > >Subject: RE:[rhn-users] Authconfig Problem
> > > >Date: Mon, 26 Sep 2005 23:22:38 -0700 (PDT)
> > > >
> > > >Hi Sudhanshu
> > > >
> > > >What is your problem exactly?
> > > >
> > > >/ usr/sbin/authconfig
> > > >/usr/bin/authconfig
> > > >
> > > >files are exacutable (binary) files. So you
> cannot
> > > >edit them. However you can check
> /var/log/messages
> > > >file to understand what is the problem.
> > > >
> > > >My test system's system-auth file looks like
> > > >following:
> > > >
> > > >*********
> > > >[root at xyz ~]# more /etc/pam.d/system-auth
> > > >#%PAM-1.0
> > > ># This file is auto-generated.
> > > ># User changes will be destroyed the next time
> > > >authconfig is run.
> > > >auth        required
> > > >/lib/security/$ISA/pam_env.so
> > > >auth        sufficient
> > > >/lib/security/$ISA/pam_unix.so likeauth nullok
> > > >auth        required
> > > >/lib/security/$ISA/pam_deny.so
> > > >
> > > >account     required
> > > >/lib/security/$ISA/pam_unix.so
> > > >account     sufficient
> > > >/lib/security/$ISA/pam_succeed_if.so uid < 100
> > > quiet
> > > >account     required
> > > >/lib/security/$ISA/pam_permit.so
> > > >
> > > >password    requisite
> > > >/lib/security/$ISA/pam_cracklib.so retry=3
> > > >password    sufficient
> > > >/lib/security/$ISA/pam_unix.so nullok
> use_authtok
> > > md5
> > > >shadow
> > > >password    required
> > > >/lib/security/$ISA/pam_deny.so
> > > >
> > > >session     required
> > > >/lib/security/$ISA/pam_limits.so
> > > >session     required
> > > >/lib/security/$ISA/pam_unix.so
> > > >
> > > >******
> > > >Permission of file looks like
> > > >
> > > >******
> > > >[root at xyz ~]# ls -al /etc/pam.d/system-auth
> > > >-rw-r--r--  1 root root 820 Sep  8 12:06
> > > >/etc/pam.d/system-auth
> > > >*****
> > > >
> > > >As I said above you should check
> /var/log/messages
> > > >file to be sure what is the problem?
> > > >
> > > >Regards
> > > >
> > > >--- sudhanshu chopra <sid_prodigy at hotmail.com>
> > > wrote:
> > > >
> > > > > hi Necati,
> > > > >
> > > > > I tried ur solution.Sorry friend it is not
> > > working.
> > > > > I want that whenever i run authconfig
> command,my
> > > > > /etc/pam.d/system-auth file
> > > > > should not change.
> > > > >
> > > > > help me out friend.U r RHCE ,and i m write
> now
> > > > > preparing for RHCE exam.
> > > > >
> > > > > waiting.....
> > > > >
> 
=== message truncated ===



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the rhn-users mailing list