X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fmount.c;fp=utils%2Fmount%2Fmount.c;h=d7271a1c32757b3cadc451e9f093f9aec672dc44;hp=5076468db8cc29384d22c2a99225934643709be0;hb=0930b25ee3a1eb28b957cdc70c9a1958812d895f;hpb=25cd5f9101b8969f9e1f9d7d486f11c215d0eeb4 diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 5076468..d7271a1 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -539,6 +539,12 @@ int main(int argc, char *argv[]) mnt_err = EX_USAGE; goto out; } + + if (geteuid() != 0) { + nfs_error(_("%s: not installed setuid - " + "\"user\" NFS mounts not supported."), progname); + exit(EX_FAIL); + } } if (chk_mountpoint(mount_point)) {