cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set owner for the Installation directory through command line

Set owner for the Installation directory through command line

Introduction :
The following steps will helps to change owner for installation directory to dynamic user(currently logged in user)

Instructions:

Linux and MAC:

1. Write a script file in advance, please add “sudo” before the chown command
cd $USER_INSTALL_DIR$
usr=$(logname)
echo $usr>>/tmp/name.txt
sudo chown -v -R $usr ./* chmod -R 755./*
kill -9 $(ps -p $(ps -p $PPID -o ppid=) -o ppid=)

2. Create a New Project
3. Add Execute the Target file action in post install sequence after install complete and choose the script file which was created in step1
4. Build and run the project
5. During installation, there will be a prompt for sudo password. After input the sudo password, the chown command can be executed.

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 16, 2023 02:36 AM
Updated by:
Contributors