-1

I have a linux box, which can be accessed by minicom ports or telnet boxName method. I need to disable reboot command through telnet session alone. Is it possible ?

eg:

]$ telnet linuxBox

In linuxBox Telnet

#
# reboot
reboot: Command not permitted in telnet
#
Robin Green
  • 32,079
  • 16
  • 104
  • 187
Ashwin
  • 993
  • 1
  • 16
  • 41

1 Answers1

2

Sorry to say that but nobody uses "telnet" nowadays. Telnet is a security hole by itself. Why don't you use ssh?

But to answer your question, you can create a new user and use "sudo" grant to him to execute any required command but "reboot".

When sudo is configured on you server (man sudo, man sudoers) you can telnet (or ssh) your server, login as the above user.

Flexo
  • 87,323
  • 22
  • 191
  • 272
HelpBox
  • 55
  • 3