Hi Gary Mansell,
Thankyou for responding back on this and sharing briefing more details.
The init_script
parameter allows you to specify a script that will be run on the node when it is created.
You can use this script to set the permissions on the disk and filesystem as required.
you can use the init_script parameter to set permissions on the disk and filesystem.
[[node]
type = compute
count = 1
storage_mounts = /mnt/resource
storage_size = 100
storage_type = Standard_LRS
init_script = /opt/cycle/jobs/init_script.sh
]
[cluster-init]
default_user = myuser
the init_script
parameter is set to /opt/cycle/jobs/init_script.sh.
This script will be run on the node when it is created.
You can create the init_script.sh file in the specified location and add the commands to set the permissions on the disk and filesystem.
#!/bin/bash
# Set permissions on the disk and filesystem
chmod 755 /mnt/resource
chown myuser:mygroup /mnt/resource
the chmod command sets the permissions on the /mnt/resource directory
to 755, and the chown command sets the owner and group of the directory to myuser:mygroup.
Hope this helps you. please like the answer if it helps you or else please get back with any queries.