Package: sudo
Architecture: amd64
Version: 1.6.8p12-4

Hi,
my bash-script calls sudo to copy a file in the name of a certain user. if root 
calls the script it works fine, but executed as cron job sudo silently does 
nothing...
The users login shell is /bin/false but /bin/bash does not change anything!
There is no error message in auth.log see below nor on command line.
Maybe the lack of TTY causes some unwanted behaviour?! How can I get more debug 
infos?

Knut


script:
#!/bin/bash
...
sudo -u username /bin/cp filepath1 filepath2

/var/log/auth.log
May 29 06:25:05 hostname sudo:     root : TTY=unknown ; PWD=/ ; USER=username ; 
COMMAND=/bin/cp filepath1 filepath2

---
Debian etch
kernel 2.6.18-4-amd64
libc6 2.3.6.ds1-13
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to