Re: Can't log in a root from anywhere but the console screen.
On Thu, Sep 28, 2006 at 07:22:23AM -0500, Dustin Coates wrote: > -Original Message- > > From: Erik Norgaard [mailto:[EMAIL PROTECTED] > Sent: 28 September 2006 09:42 > To: Jim Borland > Cc: freebsd-questions@FreeBSD.org > Subject: Re: Can't log in a root from anywhere but the console screen. > > Jim Borland wrote: > > I want to use a PC to telnet to the freeBSD server and login as root > > but it won't let me! Can you help? I can login as a normal user just > > not as root, I can't key in su to get in as superuser either. > > 1) Don't use telnet, use ssh, for security. > 2) Are you in the wheel group? > > Erik suggested I use ssh, I've never used ssh before and when I do it > says "the connection has been refused". > The "root" user is in the wheel group, I have a user called "jim" which > is in a group called "group" he is able to login using telnet. > > > > The best thing to do is to add the user "jim" to the wheel group, then you > should be able to login as him over ssh, then su to superuser, and do > virtually everything root can do. It is considered a security risk to allow > root access to ssh. But it's your server. So if you want root to be able to > login despite my warning. Edit "/etc/ssh/sshd_config" and find > "#PermitRootLogin no", remove the hash, and change the "no" to "yes" First, sshd is not running, that is why "the connection has been refused" messages is being seen. put "sshd_enable=yes in /etc/rc.conf. Look at /etc/defaults/rc.conf, it is your friend, and any daemon that you want to run, must have xyz_enable=yes in the /etc/rc.conf, if it conforms to the current FreeBSD mores. Also, as suggested above, add jim to the wheel group, this will allow you to su to root. Take a look at the http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ google and the above document, will answer a lot of your questions. I Can't say in strong enough terms, how "Bad" and idea it is to have root allowed for ssh, or even worse, to use telnet, especially over the Internet. Good luck, FreeBSD is how we've run our servers for years, and have been solid work horses. A.G. -- ___ A.G. Russell IV KC5KFDThe Knife Company e-mail: [EMAIL PROTECTED] Phone 479-631-0055 FAX 479-631-8734 Old Klingon Saying -- 'oH majQa' yIn je bang, Qo' bang --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Can't log in a root from anywhere but the console screen.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Borland Sent: Thursday, September 28, 2006 4:22 AM To: freebsd-questions@FreeBSD.org Subject: RE: Can't log in a root from anywhere but the console screen. Jim Borland Unit 2 Wallace Studios 27 Wallace Avenue LisburnBT27 4AE mail: [EMAIL PROTECTED] www: www.meridiansystems.co.uk tel: +44 (0)28 9260 5060 fax: +44 (0)28 9264 0700 mob: -Original Message- From: Erik Norgaard [mailto:[EMAIL PROTECTED] Sent: 28 September 2006 09:42 To: Jim Borland Cc: freebsd-questions@FreeBSD.org Subject: Re: Can't log in a root from anywhere but the console screen. Jim Borland wrote: > I want to use a PC to telnet to the freeBSD server and login as root > but it won't let me! Can you help? I can login as a normal user just > not as root, I can't key in su to get in as superuser either. 1) Don't use telnet, use ssh, for security. 2) Are you in the wheel group? Erik suggested I use ssh, I've never used ssh before and when I do it says "the connection has been refused". The "root" user is in the wheel group, I have a user called "jim" which is in a group called "group" he is able to login using telnet. The best thing to do is to add the user "jim" to the wheel group, then you should be able to login as him over ssh, then su to superuser, and do virtually everything root can do. It is considered a security risk to allow root access to ssh. But it's your server. So if you want root to be able to login despite my warning. Edit "/etc/ssh/sshd_config" and find "#PermitRootLogin no", remove the hash, and change the "no" to "yes" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Can't log in a root from anywhere but the console screen.
Jim Borland Unit 2 Wallace Studios 27 Wallace Avenue LisburnBT27 4AE mail: [EMAIL PROTECTED] www: www.meridiansystems.co.uk tel: +44 (0)28 9260 5060 fax: +44 (0)28 9264 0700 mob: This message contains confidential information and is intended only for [EMAIL PROTECTED] If you are not freebsd-questions@FreeBSD.org you should not disseminate, distribute or copy this e-mail. Please notify [EMAIL PROTECTED] immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Jim Borland therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -Original Message- From: Erik Norgaard [mailto:[EMAIL PROTECTED] Sent: 28 September 2006 09:42 To: Jim Borland Cc: freebsd-questions@FreeBSD.org Subject: Re: Can't log in a root from anywhere but the console screen. Jim Borland wrote: > I want to use a PC to telnet to the freeBSD server and login as root > but it won't let me! Can you help? I can login as a normal user just > not as root, I can't key in su to get in as superuser either. 1) Don't use telnet, use ssh, for security. 2) Are you in the wheel group? Erik suggested I use ssh, I've never used ssh before and when I do it says "the connection has been refused". The "root" user is in the wheel group, I have a user called "jim" which is in a group called "group" he is able to login using telnet. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't log in a root from anywhere but the console screen.
Jim Borland wrote: I want to use a PC to telnet to the freeBSD server and login as root but it won't let me! Can you help? I can login as a normal user just not as root, I can't key in su to get in as superuser either. 1) Don't use telnet, use ssh, for security. 2) Are you in the wheel group? Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"