DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default How to allow root rsh login?

If i want to login as root, it tells me
Code:
root login refused on this terminal.
I found some pages talking about setting ttys to secure in /etc/ttys, but which ones?
Reply With Quote
  #2   (View Single Post)  
Old 13th July 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Cannot you login as non-root user and and then $ su - root?

tty(1) will tell you the name of the tty.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 13th July 2022 at 04:11 PM.
Reply With Quote
  #3   (View Single Post)  
Old 13th July 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Also see hosts.equiv
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 13th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

Thanks, it works!
Reply With Quote
  #5   (View Single Post)  
Old 14th July 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

What works?
The absorption of root power by su - root?
Editing hosts.equiv and/or .rhosts?
Or modifying /dev/ttys?.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 14th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

Sorry, identifying the correct tty to be modified in /etc/ttys what was working. /root/.rhosts already contained
Code:
<my other machine's ip> root
<my other machine's io> test
After i logged in with 'test', i've ran tty and got, that it was ttyp2 what i have to set to secure in /etc/ttys.

Thanks again.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible for ftpd to allow root login? TCH OpenBSD Security 4 14th July 2022 07:49 AM
[VM,6.8] No login CiotBSD OpenBSD Installation and Upgrading 5 19th February 2021 05:33 PM
Cannot login via SSH calanon OpenBSD Security 3 4th November 2019 01:07 PM
How to set up ssh login cssgalactic FreeBSD General 12 28th June 2008 06:00 PM


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick