When doing nightly backups the sudo fails

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

When doing nightly backups the sudo fails

Post by Basher52 » Mon Mar 02, 2009 11:18 pm

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 » Tue Mar 03, 2009 7:15 am


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

Post by Basher52 » Tue Mar 03, 2009 8:20 am

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

Post Reply