Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
where is 'su'?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eekrazyk
n00b
n00b


Joined: 26 Feb 2005
Posts: 36

PostPosted: Fri Jun 17, 2005 1:06 pm    Post subject: where is 'su'? Reply with quote

Okay, I've been running Linux for almost a year, but I've barely scratched the surface - I'm proficient enough to be dangerous! I had a friend help me through the first setup and he had added ACCEPT_KEYWORDS="~86" to my make.conf file.

Well, I recently commented that out and kicked off an emerge -uDavt world to get my system down to a stable tree. I kicked that off and it's about 2/3 of the way through, but when I opened another terminal and and tried to enter super user mode I got the following error
Code:

/etc $ su
su: Module is unknown
Sorry.


What package is 'su' in? Are there any other modules in that package that I should make sure are still there?
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Fri Jun 17, 2005 1:31 pm    Post subject: Reply with quote

Code:
$ equery belongs /bin/su
[ Searching for file(s) /bin/su in *... ]
sys-apps/shadow-4.0.7-r2 (/bin/su)


n-joy.
Back to top
View user's profile Send private message
mariux2
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 242

PostPosted: Wed Jun 22, 2005 2:24 pm    Post subject: Reply with quote

zieloo wrote:
Code:
$ equery belongs /bin/su
[ Searching for file(s) /bin/su in *... ]
sys-apps/shadow-4.0.7-r2 (/bin/su)


n-joy.

I have the same problem! But its not that you dont have su installed, its something in pam that is broken!

I have a 2 year old gentoo install, and suddenly today i cant su anymore. Yes my user is in Wheel!

The problem seems to be something with the /lib/security/system_auth.so ! That file cant be loaded.
Will try to figure it out.

Are anyone else having this problem?
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Wed Jun 22, 2005 4:52 pm    Post subject: Reply with quote

mariux2 wrote:
zieloo wrote:
Code:
$ equery belongs /bin/su
[ Searching for file(s) /bin/su in *... ]
sys-apps/shadow-4.0.7-r2 (/bin/su)


n-joy.

I have the same problem! But its not that you dont have su installed, its something in pam that is broken!

I have a 2 year old gentoo install, and suddenly today i cant su anymore. Yes my user is in Wheel!

The problem seems to be something with the /lib/security/system_auth.so ! That file cant be loaded.
Will try to figure it out.

Are anyone else having this problem?

Code:

/etc/pam.d/su
/etc/pam.d/system-auth

are the files to look at. Examine these or even post their content if in doubt. I'm almost sure you both have blindly overwritten essential config files.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Jun 22, 2005 5:24 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
dixtow
n00b
n00b


Joined: 10 May 2005
Posts: 28

PostPosted: Fri Jun 24, 2005 5:36 pm    Post subject: Reply with quote

zieloo wrote:
mariux2 wrote:
zieloo wrote:
Code:
$ equery belongs /bin/su
[ Searching for file(s) /bin/su in *... ]
sys-apps/shadow-4.0.7-r2 (/bin/su)


n-joy.

I have the same problem! But its not that you dont have su installed, its something in pam that is broken!

I have a 2 year old gentoo install, and suddenly today i cant su anymore. Yes my user is in Wheel!

The problem seems to be something with the /lib/security/system_auth.so ! That file cant be loaded.
Will try to figure it out.

Are anyone else having this problem?

Code:

/etc/pam.d/su
/etc/pam.d/system-auth

are the files to look at. Examine these or even post their content if in doubt. I'm almost sure you both have blindly overwritten essential config files.


I am in significant doubt. I know nothing about PAM config, reading the files doesn't help me understand anything.

I ran the same updates on two PCs, this started happening on one of them, but not the other... odd... Didn't do anything different.

But, if I'm grasping the error correctly, could it mean one of the mentioned .so files is missing?

/etc/pam.d/system-auth
Code:

#%PAM-1.0

auth       required   pam_env.so
auth       sufficient   pam_unix.so likeauth nullok
auth       required   pam_deny.so

account    required   pam_unix.so

password   required   pam_cracklib.so retry=3
password   sufficient   pam_unix.so nullok md5 shadow use_authtok
password   required   pam_deny.so

session    required   pam_limits.so
session    required   pam_unix.so


/etc/pam.d/su
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


These are the default files after a recent emerge world. I never altered them.
Back to top
View user's profile Send private message
leftbas
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 101
Location: Pasadena, Ca

PostPosted: Thu Jun 30, 2005 4:02 am    Post subject: Same problem Reply with quote

I have exactly the same problem. I did an

Code:
emerge -u world


and when I did

Code:
etc-update


and chose option -5, upon reboot I had no network (which happens nearly every time and I fix easily every time), and this stupid 'su' problem. And I don't know how to edit the pam config files, either. This is the first update that has done this. Usually it's just the kernel config file in modules.autoload.d, or an ALSA config file. But this problem has me flummoxed.

Help!
_________________
"In retrospect, everything is funny."
-- anonymous
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Jun 30, 2005 6:18 am    Post subject: Reply with quote

My /etc/pam.d/su looks like this:
Code:
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


Try this or wait for this question to be answered by someone who knows more... :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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