[H-GEN] temporary user change in bash script
mick
bareman at tpg.com.au
Sun Apr 8 23:21:27 EDT 2012
> Check out sudo - you can get this to execute whatever you need as that
> user for that one step
>
> Something like 'sudo -u <user> <command>' will suffice.
>
> Or you can use 'su' as well. Such as 'su -c <command> <user>'.
>
> --
> Snowy Angelique Maslov<snowy at snowy.org>
Many thanks, it was a problem that had dogged me a long time, now solved.
mick
More information about the General
mailing list