Locked out of Root

Jon Radel jon at radel.com
Wed Oct 22 20:40:46 PDT 2008

Benjamin Lee wrote:
> On 10/22/08 19:55, APseudoUtopia wrote:
>> Hey,
>> I have one user (other than root and the other system users) on my
>> box, and that user is _NOT_ in the wheel group. I also have root
>> logins disabled via SSH. This is a remote server and all I have is SSH
>> access.
>> Is there any way that I can gain root? I know the root password and
>> everything, but I just can't get to it. The user is not in the wheel
>> group, and root login is disabled in SSH.
>> Thanks for any help/advice.
> Login as the unprivileged user and run:
> $ su
> See su(1).

Noting with care the following paragraph:

PAM is used to set the policy su(1) will use.  In particular, by default
only users in the ``wheel'' group can switch to UID 0 (``root'').  This
group requirement may be changed by modifying the ``pam_group'' section
of /etc/pam.d/su.  See pam_group(8) for details on how to modify this

which may well be why the OP keeps stressing that his unprivileged user
is not in the wheel group.  ;-)

--Jon Radel
jon at radel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3283 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081023/7ac98483/smime.bin

More information about the freebsd-questions mailing list