Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Strange su behaviour I've never figured out [Solved]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Hawklad
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 87
Joined: Tue Apr 20, 2004 12:51 am
Location: Broomfield, Colorado

Strange su behaviour I've never figured out [Solved]

  • Quote

Post by Hawklad » Mon Feb 26, 2007 5:25 am

This is one that probably has a simple solution, but I've never been able to figure it out.

I can su to root just fine, but when I su back to regular user within that same terminal it seems to work -- it "says" I'm the user (using whoami) -- but I can run any programs without getting

Code: Select all

 
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: couldn't open display :0.0
If I open up a new terminal window it work fine. Its just the switching back to a regular user from root that elicits that error.

Also, when I su back into root again (for second time) it takes a loooong time to authenticate the root password (>20 seconds). I imagine that's related somehow.

This has been the case with every Gentoo install I've ever done, going back over 3 years.

Am I alone on this? Is there some simple solution I'm missing?

(I use Eterm if that matters).
Last edited by Hawklad on Mon Feb 26, 2007 6:21 am, edited 1 time in total.
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Mon Feb 26, 2007 6:02 am

instead of su'ing back to the regular user, you can exit the su to root by typing exit. That's what I usually do. I tried your example, su to root, then su to user, and I got the same behavior as you do, with and without the '-' option (though different error messages slightly).
Top
Hawklad
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 87
Joined: Tue Apr 20, 2004 12:51 am
Location: Broomfield, Colorado

  • Quote

Post by Hawklad » Mon Feb 26, 2007 6:20 am

Perfect! That's exactly what I was looking for. Thanks for the tip, it works great now.

I love these forums!
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic