Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Su Segmentation Fault
nifflerX
post Jun 23 2004, 10:30 AM
Post #1


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



Hi,

I recently did a clean install of RHEL WS version 3 and updated them via up2date. My problem is I can't use the command 'su' anymore as I could in RedHat 8.0. When ever I type in 'su <username>' I get asked for a password, then I type in the password for the username and it tells me a segmentation fault occured. I've even tried to use 'su <username>' while logged in as root, and when I do that I get the following error:

su <username>
free(): invalid pointer 0xb759d470!
Segmentation fault

I'm not having problems becoming root or anything like that, to do that I use the command sudo -s, what i need to be able to do is have one user logged in, and then log in on top of them in a terminal. If anyone has any thoughts or suggestions I would really appreciate them. Thanks so much.


-NifflerX
Go to the top of the page
 
+Quote Post
hughesjr
post Jun 24 2004, 07:38 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Sounds like a progam error ... what happens if you use the command:

su - username

....

one thing to check for is a full partition where temp files might be written. (/tmp ... /home)


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
nifflerX
post Jun 25 2004, 03:45 PM
Post #3


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



If I do

su - username

I get the same error: Segmentation fault

What should I be looking for in the /tmp or /home directories? I see a lot of directories entitled orbit-username in /tmp, as well as a few ssh-<series of letters>. The only major setup change I've done is to remove the file /tmp/.X0-lock because when a user logs out, having it there causes and error message to show up. But this shouldn't affect su, should it? Thanks so much.


-NifflerX

EDIT: Sorry I didn't quite understand your post before. My /home partition is only 4% used and my / partition, where /tmp is help is only 27% full. Any other thoughts or suggestions? Thanks so much for helping me.
Go to the top of the page
 
+Quote Post
hughesjr
post Jun 25 2004, 06:01 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Have you done anything wierd (compiled your own kernel or glibc, etc.)?

The package coreutils provides the file /bin/su ... the latest version is 4.5.3-26 (which I think us the original version).

I would try to reinstall that rpm with the command:

rpm -Uvh --force coreutils-4.5.3-26.i386.rpm


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
nifflerX
post Jun 29 2004, 10:38 AM
Post #5


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



Sorry it took so long for me to reply.

No, I haven't done anything odd with the installation, the only odd thing I have is the most of my users are network users so I don't have too many local accounts on my machines. I did an rpm search and found that:
CODE
rpm -qa | grep coreutils
coreutils-4.5.3-26

So I downloaded coreutils-4.5.3-26.i386.rpm from http://caos2.caosity.org/build8/testing/i3...6/RPMS/?C=N;O=D but after running the rpm -Uvh --force command I still couldn't use su. The installation went fine and produced no errors, but trying to su to another user still caused a segmentation fault. The coreutils I'm installing are from a Red Hat CD (not even one I bought). Is there anything else I might be able to try? Thanks so much for all your help.

-NifflerX
Go to the top of the page
 
+Quote Post
chrisw
post Jun 29 2004, 04:04 PM
Post #6


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



are you authenticating against an ldap server because if you are, i have read i believe on bugzilla for redhat that there were issues with "su" using it against a ldap server for authentication purposes..i dont exactly know the fix but that might be the issue you are having...thats if you are using ldap


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
nifflerX
post Jun 29 2004, 04:50 PM
Post #7


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



I am using ldap. Thanks very much. I'll search for any information on fixes or other's experiences with that. If anyone has had any experience authenticating with an ldap server I'd love to hear how it went. (especially if it went well smile.gif. Thanks so much.


-NifflerX
Go to the top of the page
 
+Quote Post
hughesjr
post Jun 29 2004, 09:33 PM
Post #8


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Chris - you are the man!

Here are some references:

http://bugzilla.redhat.com/bugzilla/show_b...g.cgi?id=116282

http://bugzilla.redhat.com/bugzilla/show_b...g.cgi?id=114575

Not really sure what will make it work...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
chrisw
post Jun 29 2004, 10:10 PM
Post #9


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



the only thing i remember is something with the
/etc/pam.d/su file had to be edited in some way....

im not positive but research the links that hughes
posted and it might be in there....


naw, im just glad i could provide an answer and
lead someone in the right direction....


--------------------

Chris W.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th December 2017 - 10:23 PM