Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Afer world update, passwd system crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
joeishere
n00b
n00b


Joined: 26 Jul 2005
Posts: 32

PostPosted: Tue Aug 02, 2005 4:05 am    Post subject: Afer world update, passwd system crash Reply with quote

i just setup my new gentoo system today, and i run the world update my whole system and use
Code:
#dispatch-conf
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/su
Code:

#%PAM-1.0
it seems the system is changed, how can i do? help please.
Back to top
View user's profile Send private message
thunder
Retired Dev
Retired Dev


Joined: 01 Sep 2003
Posts: 164
Location: Wroclaw, PL

PostPosted: Tue Aug 02, 2005 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Tue Aug 02, 2005 7:30 am    Post subject: Reply with quote

I had that problem awhile back I had to remerge cracklib.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Aug 02, 2005 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message
joeishere
n00b
n00b


Joined: 26 Jul 2005
Posts: 32

PostPosted: Tue Aug 02, 2005 10:15 am    Post subject: Reply with quote

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
View user's profile Send private message
joeishere
n00b
n00b


Joined: 26 Jul 2005
Posts: 32

PostPosted: Tue Aug 02, 2005 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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