Bash script as root problem

Colin Law clanlaw at googlemail.com
Sun Mar 17 08:52:11 UTC 2013


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




More information about the ubuntu-users mailing list