0

Is there a combined variant for chmod and chgrp that sets both user and groups permissions in one single system call for each file? This is useful for increasing performance on slow data layers such as NFS.

Nordlöw
  • 217

1 Answers1

3

chgrp doesn't set group permissions, it sets the group itself. Note that chgrp is not a system call; the system call is chown which sets both the owner and group in one go.

Anyway: no, there isn't. The kernel has a system call for chmod and a separate system call for chown.

wurtel
  • 1,575