View Issue Details

IDProjectCategoryView StatusLast Update
0008379CentOS-7sudopublic2015-04-02 16:53
Reporterth3l0nius 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0008379: Error "sudo: sorry, you must have a tty to run sudo"
DescriptionThis issue has already been reported for RHEL https://bugzilla.redhat.com/show_bug.cgi?id=1020147 and an apparently similar for CentOS 6.5 http://bugs.centos.org/view.php?id=7869 and is discussed here: http://unix.stackexchange.com/a/122624/52075

In short: the line

  Defaults requiretty

in /etc/sudoers should be removed (or commented out) as default.
Steps To Reproduce# /etc/sudoers on centos-7-host contains:

nonroot ALL=(ALL) NOPASSWD: ALL

# then:

ssh nonroot@centos-7-host sudo echo hi
TagsNo tags attached.
abrt_hash
URL

Activities

Evolution

Evolution

2015-04-02 16:53

administrator   ~0022648

This is a change that must come from upstream(redhat). When they do it, we will follow suit. In the meantime it's easy enough for a config management system like ansible/puppet/whatever to have these changes in place.

Issue History

Date Modified Username Field Change
2015-04-02 15:52 th3l0nius New Issue
2015-04-02 16:53 Evolution Note Added: 0022648