BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 20th, 2003, 10:24 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
Cannot su root!

FreeBSD 4.8

I am unable to su root from my user account. I can login as root, so I know I haven't forgotten the password, but if I log in as my other user, I cannot su root. When I do, it asks for my password, I type it, and it says "Sorry" like it would if I had typed it incorrectly.

Normally when something like this happens I'd back step through what I had recently done, but this is a new install (I'm new to FreeBSD altogether) and I've been doing things to it constantly, so I don't know of any "trigger" action that could have caused this.

Any ideas on what I did and what I can do to fix it?

Reply With Quote
  #2  
Old May 21st, 2003, 06:46 AM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
I'd expect a different error, but the only thing I can think of is: are you sure your non-root user belongs to the wheel group?

Reply With Quote
  #3  
Old May 21st, 2003, 11:28 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
Yes, the user is in the wheel group. I was able to su root before, but I can't say before what. I'm also now getting another repeating error related to `kdm`:
Cannot read from helper
Abnormal helper termination, code 1, signal 0
getty repeating too quickly on port /dev/ttyv9

I know how to stop this but I don't know if it's related. It too is a new problem after the same session where I lost the ability to su root.

Reply With Quote
  #4  
Old May 21st, 2003, 04:39 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
Whew! What a mess. I guess that's part of the learning process.

I was able to fix the problem by "reinstalling" FreeBSD and rebuilding the user. This also fixed the other kdm error. All was good; I could su root from command line and then from within Konsole.

Then I issued chmod -R 0775 /usr b/c you can't move anything anywhere from within KDE's file manager b/c the only thing I own is my home directory.

It's my understanding that permissions and assigning groups and chmod-ing files was how you handled file access. So if I can't do that, what do I do? Or have I misunderstood permissions?

Reply With Quote
  #5  
Old December 17th, 2003, 09:31 AM
mcgee mcgee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 mcgee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Then I issued chmod -R 0775 /usr b/c you can't move anything anywhere from within KDE's file manager b/c the only thing I own is my home directory.


If you this occured during your installation, this is probably how you broke su. su needs to be setuid in order to work its magic (reading the password list and changing users). If you recursively applied 0775 to your /usr, you cleared these setuid and setgid bits from all the binaries in /usr/bin and /usr/local/bin.

If you wanted to do such a thing, you would have been better off using the symbolic syntax (say chmod -R g+w /usr) as this will not effect the other flags that need not be touched.

Beyond the normal rwx flags are the sticky bit (1000 or +t) and the setuid/setgid bits (4000/2000 and +s). If you are going to be playing around with the permissions of system binaries, you should really be familiar with them.

Reply With Quote
  #6  
Old June 28th, 2004, 03:31 PM
weldonedp weldonedp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 weldonedp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow

Hi mcgee,

I guess, I am facing the same as u said below and lost my access to root.
"If you this occured during your installation, this is probably how you broke su. su needs to be setuid in order to work its magic (reading the password list and changing users). If you recursively applied 0775 to your /usr, you cleared these setuid and setgid bits from all the binaries in /usr/bin and /usr/local/bin."

Can you tell me now, how can I get it back by login in to single user mode and setting all th permissions back ?

This is a very urgent issue.

Rgds,
weldonedp

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Cannot su root!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway