Fedora Linux Support Community & Resources Center
  #1  
Old 7th October 2012, 09:33 AM
Apostate Offline
Registered User
 
Join Date: Dec 2011
Location: UK
Posts: 40
linuxchrome
su not asking for password

Using Rawhide and when using "su" I go straight to root privilages without the need for a password. I am not logged in as root either - just as a regular user.
Reply With Quote
  #2  
Old 7th October 2012, 11:18 AM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 715
linuxfirefox
Re: su not asking for password

Is the root password set?
Reply With Quote
  #3  
Old 7th October 2012, 01:10 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,019
linuxchrome
Re: su not asking for password

I'm guessing this is a rawhide issue. It shouldn't happen. In most distributions, where there is no root password set, the only way to get root is to do sudo su, and then, assuming you're in a group allowed to do ALL on sudo, you are able to su.

However, if no root password is set, then su by itself shouldn't work.

If this is the case, I would guess it's a bug.

I just tried in console on freshly updated F18 (though this is beta rather than rawhide per se) and that wasn't the case, if I typed su it required the root password.

One thing though. If you do sudo su -c <command> and then do it again within 5 minutes or so, it won't ask for a password the second time. In that case, however, it requires the user's, rather than root's, password.
Reply With Quote
  #4  
Old 7th October 2012, 01:36 PM
Apostate Offline
Registered User
 
Join Date: Dec 2011
Location: UK
Posts: 40
linuxchrome
Re: su not asking for password

Quote:
Originally Posted by Dutchy View Post
Is the root password set?
Yes it was set during installation.
Reply With Quote
  #5  
Old 8th October 2012, 11:45 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,620
linuxfirefox
Re: su not asking for password

I used to get into Ubuntu all the time by specifying no password on the su command (just hit enter when asked for password), even though root user by default had no password set. I never did use sudo in Ubuntu.

I haven't tried Ubuntu since sometime around version 9 or 10, so it may be fixed by now.

I haven't tried it in F18 yet, either. There is a difference in just not specifying a password for root, and disabling the root login. I am not certain which one is being done.
Reply With Quote
  #6  
Old 9th October 2012, 03:02 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,019
linuxchrome
Re: su not asking for password

In Fedora, so far as I can tell (from an error on one test install) if you don't specify a root password during installation, you've disabled root. I didn't have a user set up either--this was a minimum install and the minimal install doesn't run first boot, so that one had to be redone.
Reply With Quote
Reply

Tags
password

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I make programs require root password instead of user password? Cylinder57 Using Fedora 5 14th April 2012 10:37 PM
System/Administration Menu not prompting for password, then saying wrong password soylentman Using Fedora 7 13th September 2009 12:29 AM
How stop request for password to password manager whenever logs in to wifi? 6tr6tr Using Fedora 7 27th June 2009 05:46 PM


Current GMT-time: 04:14 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat