diff options
author | Roy van den Broek <rbroek@cs.uu.nl> | 2006-11-29T21·58+0000 |
---|---|---|
committer | Roy van den Broek <rbroek@cs.uu.nl> | 2006-11-29T21·58+0000 |
commit | 92417600a1f26510d50310afef19b75c541d05df (patch) | |
tree | 521ce897ef88046d8fe4fa83e3bb8bb99da838a3 /fix_setuid | |
parent | 71e867c5f5ee2c188244da33366e506935abffb7 (diff) |
* Example script to set permissions for setuid operation.
Diffstat (limited to 'fix_setuid')
-rwxr-xr-x | fix_setuid | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fix_setuid b/fix_setuid new file mode 100755 index 000000000000..1a6dc58dc85c --- /dev/null +++ b/fix_setuid @@ -0,0 +1,9 @@ +#! /bin/sh +if test -z "$prefix"; then prefix=/nix; fi +chown -Rf nix.nix $prefix/bin $prefix/etc $prefix/include $prefix/lib \ + $prefix/libexec $prefix/man $prefix/share $prefix/var +chown nix.nix $prefix/store +chmod 6755 $prefix/bin/nix-env $prefix/bin/nix-instantiate $prefix/bin/nix-store +chmod 775 $prefix/var/nix/manifests +chmod 775 $prefix/var/nix/gcroots/tmp +chmod 775 $prefix/var/nix/gcroots/channels |