Originally posted by: Wouter Liefting
Why not put the whole command in a shell script, and run the shell script using this:
su - user_g -c ./myscript
Oh, and looking at what you're trying to achieve, there is no need for the echo command to run under su. Only the aclput command needs to run as user_g. So instead of
su - user_g -c "echo stuff | aclput /mount_ACL_233"
with all its quoting issues you should also be able to do
echo stuff | su - user_g -c aclput /mount_ACL_233
which means you don't need to escape the stuff you want to echo.
#AIX-Forum