I want to automate the 'Granting Access Permission to a file/folder to a specific user' using python. Please help me which command i need to use.
Thanks in advance.
Regards, KVJ
I want to automate the 'Granting Access Permission to a file/folder to a specific user' using python. Please help me which command i need to use.
Thanks in advance.
Regards, KVJ
You can use the following to change permissions on a UNIX platform.
import subprocess
import shlex
subprocess.call(shlex.split("chgrp -R groupname foldername"))
The -R
flag changes the group permissions recursively for a given folder.