Date: Thu, 10 Jul 2008 14:21:53 -0700 From: Chuck Swiger <cswiger@mac.com> To: Veronica Labarca <vlf@unex.berkeley.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Enabling root login without an administrator account Message-ID: <DED5B801-760E-4BB3-94BD-AC2601A6653B@mac.com> In-Reply-To: <87AE793F5A644EF6A68E73E13AFCED64@unex.berkeley.edu> References: <87AE793F5A644EF6A68E73E13AFCED64@unex.berkeley.edu>
index | next in thread | previous in thread | raw e-mail
Hi-- On Jul 10, 2008, at 1:58 PM, Veronica Labarca wrote: > 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. If you can login to the machine directly on console, the root password should work. At which point, set up a normal user account which is in the wheel group and can use su, and/or install sudo. Or use passwd to change the passwords of some of the existing accounts to a known state. If you really want to permit remote logins as root via SSH, edit /etc/ ssh/sshd_config and set "PermitRootLogin yes", and then restart SSHd...but please be warned that this is a significant security risk, unless you take measures like disabling password in favor of SSH keys only, or use a firewall to restrict which machines can connect to SSHd on this machine. Regards, -- -Chuckhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DED5B801-760E-4BB3-94BD-AC2601A6653B>
