nfs kerberos: multiple clients different directories

I’ve set up kerberos with NFS and it’s working fine. However there seems to be a problem with the way it works, any kerberos client seems to be able to access any directory (if they take the right ip) On the NFS server (192.168.1.12): $ exportfs -v /data/mail 192.168.1.13(rw,wdelay,root_squash,no_subtree_check,mountpoint,sec=krb5,rw,secure,no_all_squash) /data/web 192.168.1.14(rw,wdelay,root_squash,no_subtree_check,mountpoint,sec=krb5,rw,secure,no_all_squash) I’m hosting mail and…

How do I Convert nginx to Apache rewrites

My local machine is Apache and this is the redirect scheme on nginx. How do I write this using RewriteRules? location / { if (!-e $request_filename){ rewrite ^/$ /index.php?url=home; } } location /admin { rewrite ^/admin$ /access.php; rewrite ^/admin/(.*)$ /access.php?page=$1; } location /s { rewrite ^/s/([^\/]+)(\/|)?$ index.php?url=share&share=$1; } location /media { rewrite ^/media/([^\/]+)(\/|)?$ index.php?url=home&media=$1; }…

For specific user, refuse sudo immediately, do not ask for password

For a specific user or list of specific users, I want to make it so they are not even asked for a password but just directly refused. Although this is after I’ve allowed them 1 specif command. so the sudoers file would look something like this(example): testuser ALL = (root) NOPASSWD:NOEXEC: /bin/ls, <REFUSE_EVERYTHING_ELSE_WITHOUT_ASKING_FOR_PASSWORD> Is this…