LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-30-2004, 12:26 AM   #1
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
su can't login


Hi all,

I am running mandrake 9.2 now (just installed) and I had the following problem;

When I start a Konsole everything goes just fine, but when I type su and feed in my password, I get the following line running and running as a mad dog:
/usr/X11R6/X11/xserver/xprint-startup: /etc/profile.d/ssh-client.sh[6]: shopt: not found

I close the konsole and use any other terminal-silly me- and I get the same result.
I powered the computer off and tried again but I had the same luck.

While powering off, I prefer to see the messages that tells me that everything goes fine, and I have noticed he following:
1- It took such a long time to reboot the system,
2- While stopping the automount an awful red "failed" appeared instead of the lovely green "OK"
3-At the end of the "sending all processes the TERM signal took that long time and then appeared the following in green (which I think means ok)
"[su(pam_unix)[3013]: session closed for user root (ok)"

For God's sake, what is going on here? And how may I restore my ability to run the su?
Thanks a lot.

hhegab
 
Old 01-30-2004, 07:08 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It's difficult for us to do anything as we're not at your machine. If I was, I would take note of the line "/usr/X11R6/X11/xserver/xprint-startup: /etc/profile.d/ssh-client.sh[6]: shopt: not found" and I'd go and have a look at /etc/profile.d/ssh-client.sh and see if I could figure out what this "shopt" it's looking for is. It may just need you to create a blank text file called shopt somewhere.
The message "[su(pam_unix)[3013]: session closed for user root (ok)" seems to indicate that you did start a session as root, at least as far as pam is concerned, so I wouldn't worry about that. Your problem seems to be with Xwindows and xprint-startup.
 
Old 01-30-2004, 10:26 AM   #3
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Original Poster
Rep: Reputation: 30
thanks, I shall see that and tell you the results.

hhegab
 
Old 01-30-2004, 04:19 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I didn't want to reboot into Mandrake before as I had Gtk-Gnutella running but I'm in Mandrake 9.1 now and for what it's worth, /etc/profile.d/ssh-client.sh looks like this
Code:
# fix hanging ssh clients on exit
if test -n "$ZSH_VERSION"; then
setopt hup
else
shopt -s huponexit
fi
I asked Google about shopt
http://www.mkssoftware.com/docs/man1/shopt.1.asp
http://www.ss64.com/bash/shopt.html
and apparently it's a command that controls the way the shell behaves. I hope some of this helps.
 
Old 01-30-2004, 10:17 PM   #5
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Original Poster
Rep: Reputation: 30
I have removed the package xprint and I could get my su back again.
To say the ruth, I reinstalled the xprint package and I got the same problem. I then knew that I should be living without it.

hhegab
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
login screen font size over 100 - can't login xzy2435 Linux - Newbie 1 11-20-2003 11:40 AM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration