When doing nightly backups the sudo fails

Discuss Applications
Post Reply
User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

When doing nightly backups the sudo fails

Post by Basher52 »

I get this: sudo: sorry, you must have a tty to run sudo

I found this by googling but can't fix it anyways.
I run the script by /etc/cron.daily/createbackup and when mailing the backup files I use sudo to get a better "sender" of the email than using root that seems to be marked as spam.

Alot of the posts say I should comment out this line in the sudoers file
Defaults requiretty

What does this line mean really?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »


User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

Forgot about man again :P
found it and removed it :)
thx

Post Reply