Date: Thu, 10 Jul 2008 17:53:59 -0600 From: Tim Judd <tajudd@gmail.com> To: Chris St Denis <chris@smartt.com> Cc: Veronica Labarca <vlf@unex.berkeley.edu>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Enabling root login without an administrator account Message-ID: <4876A117.4050701@gmail.com> In-Reply-To: <48769DE6.1040403@smartt.com> References: <87AE793F5A644EF6A68E73E13AFCED64@unex.berkeley.edu> <48767DF2.9020703@smartt.com> <0F1CBA0DF6DD4247922CD548E6C6E306@unex.berkeley.edu> <48769DE6.1040403@smartt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris St Denis wrote: > Well, my second suggestion about creating an account and SUing to root > should still be correct. Assuming of course that you can get in in > single user mode. > > Take a look at /etc/ttys there may be something in there restricting > it, thats all I can think of. > > > Veronica Labarca wrote: >> Hi Chris, >> Thanks for your quick response. No. I mean root login at the console is >> dissallowed. Why??? Beats me! I got it that way. Viqui >> -----Original Message----- >> From: Chris St Denis [mailto:chris@smartt.com] Sent: Thursday, July >> 10, 2008 2:24 PM >> To: Veronica Labarca >> Cc: freebsd-questions@freebsd.org >> Subject: Re: Enabling root login without an administrator account >> >> 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. >> >> > > Maybe root logins on TTYv0 is disabled, but enabled on TTYv1-7. Have you tried switching virtual consoles and logging in? From the console, can you login as a regular user and su/sudo up? Couple of ideas there -- all valid choices.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4876A117.4050701>