Re: Enabling root login without an administrator account

[ Available lists | Index of freebsd-questions | Month of Jul 2008 | Week of 10 Jul 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Chris St Denis <chris@smartt.com>
Date
10 Jul 2008 21:23:51
Subject
Re: Enabling root login without an administrator account
Message-ID
48767DF2.9020703@smartt.com

In reply to
References to
Referenced by

[ Hide this part ]
 Veronica Labarca wrote:
> Hi,
> I have inherited a FreeBSD server and need to change the apache
> configuration, but cannot log in to the server. I have the root password
> (and know how to change it if needed in any case). The problem is that root
> login is disabled. There are various administrative accounts on the server,
> but I don't have the password to any of those. Can someone advise me as to
> either, how to get the root login enabled or how to change the password on a
> different account?
> Thanks for any help you can provide.
> Viqui
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
I'm assuming you mean root login via SSH is disabled (as is the
default). IIRC, root can always login from the console.

Login as root from the console (or boot into single user mode) and edit
/etc/ssh/sshd_config

Uncomment "PermitRootLogin" line and change no to yes.

An alternate (and better) solution is to create yourself a user account
in the wheel group and use that to login then SU up to root.


Elapsed time: 0.136 seconds