[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

simulate sudo -n in lenny



Hi,

I was searching for a way to tell sudo "Please fail immediately if you
need to ask me for a password" and found sudo -n. Unfortunately it
turns out that debian lenny ships with an older sudo which doesn't
have this option. I wonder if there's a trick and tried:

echo "" | sudo -S -u username command

This seems to work. But I still wanted to ask for comments here.

Thanks,
Felix


Reply to: