View previous topic :: View next topic |
Author |
Message |
joeishere n00b
Joined: 26 Jul 2005 Posts: 32
|
Posted: Tue Aug 02, 2005 4:05 am Post subject: Afer world update, passwd system crash |
|
|
i just setup my new gentoo system today, and i run the world update my whole system and use
overwite all old config files, then the password system does not work anymore.
i can login, but can not use "su", and in gnome also can not set any preference with error of not activited caps lock key, i am sure before update, all works well.
then i compare the old config backup and the new config file, most of them completely different, look this
old /etc/pam.d/passwd:
Code: | #%PAM-1.0
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
| new /etc/pam.d/passwd:
Code: | #%PAM-1.0
auth include system-auth
account include system-auth
password include system-auth
| old /etc/pam.d/su Code: |
#%PAM-1.0
auth sufficient /lib/security/pam_rootok.so
# If you want to restrict users begin allowed to su even more,
# create /etc/security/suauth.allow (or to that matter) that is only
# writable by root, and add users that are allowed to su to that
# file, one per line.
#auth required /lib/security/pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.allow
# Uncomment this to allow users in the wheel group to su without
# entering a passwd.
#auth sufficient /lib/security/pam_wheel.so use_uid trust
# Alternatively to above, you can implement a list of users that do
# not need to supply a passwd with a list.
#auth sufficient /lib/security/pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.nopass
# Comment this to allow any user, even those not in the 'wheel'
# group to su
auth required /lib/security/pam_wheel.so use_uid
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_env.so
session optional /lib/security/pam_xauth.so
| new /etc/pam.d/suit seems the system is changed, how can i do? help please. |
|
Back to top |
|
|
thunder Retired Dev
Joined: 01 Sep 2003 Posts: 164 Location: Wroclaw, PL
|
Posted: Tue Aug 02, 2005 7:13 am Post subject: |
|
|
Are your user in wheel group?
Check /etc/securetty which is file defined ttys where root can log in.
my /etc/pam.d/su looks like:
Code: |
#%PAM-1.0
auth sufficient pam_rootok.so
# If you want to restrict users begin allowed to su even more,
# create /etc/security/suauth.allow (or to that matter) that is only
# writable by root, and add users that are allowed to su to that
# file, one per line.
#auth required pam_listfile.so item=ruser sense=allow onerr=fail file= /etc/security/suauth.allow
# Uncomment this to allow users in the wheel group to su without
# entering a passwd.
#auth sufficient pam_wheel.so use_uid trust
# Alternatively to above, you can implement a list of users that do
# not need to supply a passwd with a list.
#auth sufficient pam_listfile.so item=ruser sense=allow onerr=fail file= /etc/security/suauth.nopass
# Comment this to allow any user, even those not in the 'wheel'
# group to su
auth required pam_wheel.so use_uid
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
session required pam_env.so
session optional pam_xauth.so
|
Good luck. _________________ Damian Florczyk
Gentoo/NetBSD development lead |
|
Back to top |
|
|
Suicidal l33t
Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Tue Aug 02, 2005 7:30 am Post subject: |
|
|
I had that problem awhile back I had to remerge cracklib. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Tue Aug 02, 2005 7:32 am Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo. Can you post the error messages you get when these programs fail? _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
joeishere n00b
Joined: 26 Jul 2005 Posts: 32
|
Posted: Tue Aug 02, 2005 10:15 am Post subject: |
|
|
Maedhros wrote: | Moved from Installing Gentoo to Other Things Gentoo. Can you post the error messages you get when these programs fail? |
when i su in terminal
Code: | su: Authentication failure
Sorry.
|
when i try to start any system preferences setting (example, Time and date or Users and Groups) in Gnome
Code: | Check that you typed it correctly and that you haven't activated the "caps lock" key | even i login as root
and look my first post, most of auth system files completely changed after updated all config files(i used new config file, because i think i just setup the gentoo, so no need to keep old config file, but.....).
I am sure before update, it works well, and i am a wheel group user, but now all is changed, how to do? should I copy all old config files back?
help please, thanks [/quote] |
|
Back to top |
|
|
joeishere n00b
Joined: 26 Jul 2005 Posts: 32
|
Posted: Tue Aug 02, 2005 11:48 am Post subject: |
|
|
Suicidal wrote: | I had that problem awhile back I had to remerge cracklib. |
could tell me how do you remerge and which lib you remerge?? thanks |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|