When I use Sys.chmod(file,'777')
it looks like the permission is changed only for the owner and not for all users, how can I do this ?
Disable the umask check in Sys.chmod
to get what you want:
Sys.chmod(file, "777", use_umask = FALSE)
Alternatively use system
directly:
system('chmod 777 file')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With