When doing nightly backups the sudo fails

Discuss Applications

When doing nightly backups the sudo fails

Postby 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
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Tue Mar 03, 2009 7:15 am

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

Postby Basher52 » Tue Mar 03, 2009 8:20 am

Forgot about man again :P
found it and removed it :)
thx
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Applications

Who is online

Users browsing this forum: No registered users and 0 guests