No password required for SU?

I just installed FreeBSD 8.1. Currently I have only two accounts established: root and one user in group wheel. When that user does a su, it immediately logs in that user as root, with no query for a password. Is this by design? Is there a way to disable this?

Thanks!

- Larry
 
No it's not by design and I've never experienced the behavior you're describing.
In fact I don't know off the top of my head what would cause this behavior.
Does the root account have a password set? try "passwd" while you're root to set a password. I'm not sure that that will fix your problem though.
 
Holy crap! During the installation, sysinstall asked for root password, but it appears to not have taken! I logged in, did an su, tried "passwd" and it asked for a new password (but not a previous password). Sure enough, when I tried to su it asked for a password. How scary... how could this have happened?

Thanks!
 
It behaves that way if you choose Express installation. It installs what you ask but skips config network or any services, and leaves that up to you to do afterwards.
That´s the only scenario I know of when you end up without a root password, and have to do that manually later.

/Sebulon
 
And the passwd(1) program never asks for the old password when you're root. There wouldn't be much point in it, really..
 
Back
Top