Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aclupt problem

Status
Not open for further replies.

gsgb1

Programmer
Jul 31, 2004
21
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top