Enabling root login without an administrator account
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 [EMAIL PROTECTED]
Re: Enabling root login without an administrator account
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, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Enabling root login without an administrator account
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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. -- Chris St Denis Programmer SmarttNet (www.smartt.com) Ph: 604-473-9700 Ext. 200 --- Smart Internet Solutions For Businesses ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Enabling root login without an administrator account
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]