Hopelijk kan iemand mij helpen met het volgende probleem. Het gaat om een AMD64 Opteron dualbak met Gentoo Linux erop.
Het probleem is dat ik niet kan su'en. (sudo werkt wel.) Als ik zeg: su -, dan zegt hij onmiddelijk terug: Incorrect password. Ik krijg niet eens de kans om er een in te typen
Mijn user zit in de group wheel (secondary group, met -G, maar ook als primary werkt het niet). Systemwide staat de pam USE flag aan, dus ik neem aan dat su ook PAM gebruikt.
De permissies op /bin/su zijn goed:
/etc/pam.d/su ziet er zo uit:
Mocht het uitmaken, dan hier ook /etc/login.defs:
Overigens is, voor zover ik weet, sinds de installatie niets aan deze files veranderd.
Wat ook vreemd is zijn de volgende meldingen in de logs, telkens als ik probeer te su'en:
De genoemde files zijn echter wel aanwezig en leesbaar...
Wie heeft een idee waar dit probleem door veroorzaakt wordt, en hoe ik het oplos?
Het probleem is dat ik niet kan su'en. (sudo werkt wel.) Als ik zeg: su -, dan zegt hij onmiddelijk terug: Incorrect password. Ik krijg niet eens de kans om er een in te typen
Mijn user zit in de group wheel (secondary group, met -G, maar ook als primary werkt het niet). Systemwide staat de pam USE flag aan, dus ik neem aan dat su ook PAM gebruikt.
De permissies op /bin/su zijn goed:
code:
1
| -rwsr-xr-x 1 root root 30472 May 19 20:27 /bin/su |
/etc/pam.d/su ziet er zo uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| #%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 |
Mocht het uitmaken, dan hier ook /etc/login.defs:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
| # # /etc/login.defs - Configuration control definitions for the login package. # # All items are optional - if not specified then the described action or # option will be inhibited. # # Comment lines (lines beginning with "#") and blank lines are ignored. # # # Delay in seconds before being allowed another attempt after a login failure # FAIL_DELAY 3 # # Enable logging and display of /var/log/faillog login failure info. # FAILLOG_ENAB yes # # Enable display of unknown usernames when login failures are recorded. # LOG_UNKFAIL_ENAB no # # Enable logging and display of /var/log/lastlog login time info. # LASTLOG_ENAB yes # # If defined, ":" delimited list of "message of the day" files to # be displayed upon login. # MOTD_FILE /etc/motd #MOTD_FILE /etc/motd:/usr/lib/news/news-motd # # If defined, file which maps tty line to TERM environment parameter. # Each line of the file is in a format something like "vt100 tty01". # TTYTYPE_FILE /etc/ttytype # # If defined, login failures will be logged here in a utmp format. # last, when invoked as lastb, will read /var/log/btmp, so... # FTMP_FILE /var/log/btmp # # If defined, file which inhibits all the usual chatter during the login # sequence. If a full pathname, then hushed mode will be enabled if the # user's name or shell are found in the file. If not a full pathname, then # hushed mode will be enabled if the file exists in the user's home directory. # HUSHLOGIN_FILE .hushlogin #HUSHLOGIN_FILE /etc/hushlogins # # The default PATH settings. # ENV_PATH /usr/local/bin:/usr/bin:/bin # # The default PATH settings for root: # ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin # # The default PATH settings when su'ing to root: # ENV_SUPATH /sbin:/bin:/usr/sbin:/usr/bin # # Terminal permissions # # TTYGROUP Login tty will be assigned this group ownership. # TTYPERM Login tty will be set to this permission. # # If you have a "write" program which is "setgid" to a special group # which owns the terminals, define TTYGROUP to the group number and # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign # TTYPERM to either 622 or 600. # TTYGROUP tty TTYPERM 0600 # # Password aging controls: # # PASS_MAX_DAYS Maximum number of days a password may be used. # PASS_MIN_DAYS Minimum number of days allowed between password changes. # PASS_MIN_LEN Minimum acceptable password length. # PASS_WARN_AGE Number of days warning given before a password expires. # PASS_MAX_DAYS 99999 PASS_MIN_DAYS 0 PASS_MIN_LEN 5 PASS_WARN_AGE 7 # # Min/max values for automatic uid selection in useradd # UID_MIN 1000 UID_MAX 60000 # # Min/max values for automatic gid selection in groupadd # GID_MIN 100 GID_MAX 60000 # # Max number of login retries if password is bad # LOGIN_RETRIES 3 # # Max time in seconds for login # LOGIN_TIMEOUT 60 # # Require password before chfn/chsh can make any changes. # CHFN_AUTH yes # # Which fields may be changed by regular users using chfn - use # any combination of letters "frwh" (full name, room number, work # phone, home phone). If not defined, no changes are allowed. # For backward compatibility, "yes" = "rwh" and "no" = "frwh". # CHFN_RESTRICT rwh |
Overigens is, voor zover ik weet, sinds de installatie niets aan deze files veranderd.
Wat ook vreemd is zijn de volgende meldingen in de logs, telkens als ik probeer te su'en:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_rootok.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_rootok.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_rootok.so May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_wheel.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_wheel.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_wheel.so May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_stack.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_stack.so May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_env.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_env.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_env.so May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_xauth.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_xauth.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_xauth.so May 19 21:49:28 [su] PAM unable to dlopen(/lib/security/pam_deny.so) May 19 21:49:28 [su] PAM [dlerror: /lib/security/pam_deny.so: cannot open shared object file: No such file or directory] May 19 21:49:28 [su] PAM adding faulty module: /lib/security/pam_deny.so |
De genoemde files zijn echter wel aanwezig en leesbaar...
Wie heeft een idee waar dit probleem door veroorzaakt wordt, en hoe ik het oplos?
Maker van Taekwindow; verplaats en resize je vensters met de Alt-toets!