Execute a script as user
Hi!
I need to unzip after reboot the content of a folder mounted in RAMDISK.
If I execute the script as root, it takes some time to restore also ownership and permissions of the entire folder structure.
Please, is there a way to execute it as the user that owns the domain? Thanks!
-
It took me awhile to remember I used it many times a few years ago. But I expected some fancy solution :) # su user0 -
I'm glad you were able to get that working as the user :D 0
Please sign in to leave a comment.
Comments
2 comments