Re: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-09 Thread Pongthep Kulkrisada
* jmitchel (jmitc...@mail.bigjar.com) wrote:
> Hello,
> 
> I have an appliance that I'm upgrading from 1.6.2 (I know, I know) to 6.1.5.
> The appliance currently only has the root account. I want users to be able
> to set up the box without having to use a serial cable, so I'm configuring
> it with a default IP and want them to be able to telnet in to set it up. The
> problem is, when I try to telnet as root, I get "root login refused on this
> terminal."
telnet is deprecated these day. You should always use ssh.
You have only one account, so telnet as any wheel user then su will not work.
So far, try this (I haven't tested).
Open /etc/pam.d/login and comment out the following line.
#accountrequisite   pam_securetty.so

Then try telnet as root again.
And let me know if it solves.

-- 
Pongthep Kulkrisada
 
"UNIX is basically a simple operating system,
but you have to be a genius to understand the simplicity."
-- Dennis M. Ritchie


Re: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-09 Thread Andy Ruhl
On Sun, Nov 8, 2015 at 2:23 PM, Thor Lancelot Simon  wrote:
>
> That's irresponsible.  I for one won't help you do it.  Use SSH.

Agreed.

It's amazing how telnet still exists and even proliferates when it
doesn't have to.

Probably it should be requisite to explain why telnet is being used
before asking any questions on how to use it...

A guy I worked with a while back insisted on using it because Windows
doesn't have a built in SSH client. Even after someone sniffed his
password and showed him. Unbelievable.

Andy


Re: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-09 Thread Mike Pumford

Andy Ruhl wrote:


A guy I worked with a while back insisted on using it because Windows
doesn't have a built in SSH client. Even after someone sniffed his
password and showed him. Unbelievable.

Wow is he living in the past. Windows doesn't have a telnet client 
either in recent versions and quite frankly I'd rather download PuTTY 
anyway. ;)



Mike


RE: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-09 Thread Davis, Michael T.
Mike Pumford (mpumf...@mudcovered.org.uk) writes...

>Wow is he living in the past. Windows doesn't have a telnet client
>either in recent versions and quite frankly I'd rather download PuTTY
>anyway. ;)
>
>
>Mike

Actually, a telnet client is available in newer versions of Windows as a 
feature that can be enabled via the "Programs and Features" control panel.  It 
is not enabled, by default.  But I prefer PuTTY, as well.

Cheers,
(Another) Mike

Re: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-09 Thread Mike Pumford

Davis, Michael T. wrote:


Actually, a telnet client is available in newer versions of Windows
as a feature that can be enabled via the "Programs and Features"
control panel.  It is not enabled, by default.  But I prefer PuTTY,
as well.

Well I've learnt something today :). Didn't realise that telnet was now 
an optional component on newer Windows version. I'll try and remember that.


Mike


How to allow root telnet to a NetBSD 6.1.5 box

2015-11-08 Thread jmitchel

Hello,

I have an appliance that I'm upgrading from 1.6.2 (I know, I know) to 
6.1.5. The appliance currently only has the root account. I want users 
to be able to set up the box without having to use a serial cable, so 
I'm configuring it with a default IP and want them to be able to telnet 
in to set it up. The problem is, when I try to telnet as root, I get 
"root login refused on this terminal." I've tried multiple entries to 
/etc/ttys, but I can't seem to get any to work. I've tried


pts/0
./pts/0
/dev/pts/0

but none of them allow root telnet. I'm assuming it's possible that I'm 
looking in the wrong place entirely, so please feel free to point me in 
the right direction. If it's not possible to telnet as root would 
changing the username from root to something else fix the problem? I'd 
consider that a solution of last resort because I assume it would 
require lots of changes to other config files that reference "root".


In case it matters, the appliance is running i386 on an apu1c board 
booting off of an imbedded memory disk. The storage device is an mSSD.


Anyway, sorry for rambling. Thanks in advance for any help. Please copy 
me on any messages as I am not yet subscribed to the mailing list.


Thanks,

Jason M.


Re: How to allow root telnet to a NetBSD 6.1.5 box

2015-11-08 Thread Thor Lancelot Simon
On Sun, Nov 08, 2015 at 02:17:40PM -0500, jmitchel wrote:
> Hello,
> 
> I have an appliance that I'm upgrading from 1.6.2 (I know, I know) to 6.1.5.
> The appliance currently only has the root account. I want users to be able
> to set up the box without having to use a serial cable, so I'm configuring
> it with a default IP and want them to be able to telnet in to set it up.

That's irresponsible.  I for one won't help you do it.  Use SSH.

Thor