Ask Your Question
1

Getting 'sudo: sorry, you must have a tty to run sudo' when running a program as daemon

asked 2015-03-26 11:15:59 -0500

anonymous user

Anonymous

Hi,

I installed openstack on CentOS and when running my program as daemon I get 'sudo: sorry, you must have a tty to run sudo' error message. After commenting out 'Default requiretty', the error disappears. I was wondering what is the correct fix for that?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-29 12:58:02 -0500

don gravatar image

That's the fix I used. Dunno why its there.

edit flag offensive delete link more
0

answered 2015-03-30 03:25:13 -0500

Default requiretty this entry ensures that sudo needs a TTY by commenting it out you have disbaled that it. Red hat has acknowledged it as a bug.

https://bugzilla.redhat.com/show_bug....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-26 11:15:59 -0500

Seen: 643 times

Last updated: Mar 30 '15