Bash script as root problem

Johnny Rosenberg gurus.knugum at gmail.com
Sun Mar 17 09:44:14 UTC 2013


2013/3/17 Colin Law <clanlaw at googlemail.com>:
> On 17 March 2013 00:19, Gene Heskett <gheskett at wdtv.com> wrote:
>> On Saturday 16 March 2013 20:18:40 Bill K. Dengler did opine:
>>
>>> A little hacky but what about
>>> sudo command_0
>>> sudo command_1
>>> sudo command_2
>>> sudo command_3
>>> sudo command_4
>>> sudo command_5
>>> sudo command_6
>>> su -c "command_7" $USER
>>> sudo command_8
>>> sudo command_9
>>>
>>> Bill
>>
>> Wrong syntax Bill, its
>> su user -c "command_7"
>
> man su says
> su [options] [username]
>
> Colin

Just want to thank you all for replying! I find my question answered,
and I also think I should have checked the sudo man page before
asking. I don't know why I didn't think of that, sorry. Maybe I just
thought that it's more fun to communicate with real people rather than
a man pageā€¦? :P


Johnny Rosenberg




More information about the ubuntu-users mailing list