View Single Post
  #8   (View Single Post)  
Old 18th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by Peter_APIIT View Post
1. How to permit the root login on certain time only?
For instance, allow root login between 9AM to 9.30AM only.
You would have to write shell scripts that make the appropriate provisioning changes to ttys(5) and send a SIGHUP to init(8) to initiate getty(8) changes, with timing managed via cron(8)/crontab(5). You would be responsible for designing, testing, and implementing this yourself. And, you would be responsible for support, such as managing a situation where you have locked yourself out of your own system.

The OS has plenty of weapons that you can use to shoot yourself in the foot.
Quote:
2. How to prevent user from local net login to OpenBSD box?
You stated you do not have sshd(8) running. If that is still true, there is no network originated shell access on OpenBSD.
Reply With Quote