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

Re: Changing Users in a script



On Aug 15, 2011, at 2:15 PM, Bob Proulx wrote:

> Bob Proulx wrote:
>> Hal Vaughan wrote:
>>> The problem is sudo can't be run without a tty, so I can run it
>>> myself, but it won't run from a script.
>> 
>> Using 'su' would solve that problem.
> 
> BTW...  I assume that is because you have tty-tickets turned on for
> sudo?  In which case you could avoid it with sudo too by turning off
> tty-tickets for this use case.

Not dealing with that.  For my two NAS units, I really want to do as little as possible.  Since I need the script anyway, I'd rather just use that only.

Thanks!



Hal

Reply to: