My Oracle Support Banner

Oracle Linux: How to avoid this error "sudo: sorry, you must have a tty to run sudo " (Doc ID 2501569.1)

Last updated on SEPTEMBER 21, 2021

Applies to:

Linux OS - Version Oracle Linux 6.7 and later
Information in this document applies to any platform.


When running a command from ssh using sudo, this error can be presented.

For example:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.