I have one generic acl infile defining base and extended permission for a generic user, that I want to use for multiple users. I will be dynamically changing genereic userid in exteded permission to required id (user1)as -
cat acl_generic_file.txt | sed -e 's/geneicid/user1/g'
Now this dynamically generated (with user1 instead of genericid)acl info should be applied to the target file.
Can I pipe this new info to aclput
cat acl_generic_file.txt | sed -e 's/geneicid/user1/g'| aclput targetfile.sh
gave me - aclput: Operation not permitted.
OR
aclput -i `cat acl_generic_file.txt | sed -e 's/genericid/user1/g'` targetfile.sh
Thanks a lot.
gsgb1
or some other approach is there?
Appreciate any help
cat acl_generic_file.txt | sed -e 's/geneicid/user1/g'
Now this dynamically generated (with user1 instead of genericid)acl info should be applied to the target file.
Can I pipe this new info to aclput
cat acl_generic_file.txt | sed -e 's/geneicid/user1/g'| aclput targetfile.sh
gave me - aclput: Operation not permitted.
OR
aclput -i `cat acl_generic_file.txt | sed -e 's/genericid/user1/g'` targetfile.sh
Thanks a lot.
gsgb1
or some other approach is there?
Appreciate any help