Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2015 10:36:22 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   vpnc && setuid
Message-ID:  <20151112093622.GA3261@c720-r276659>

next in thread | raw e-mail | index | archive | help

Hallo,

I have changed /usr/local/sbin/vpnc to setuid on exec:

# ls -l /usr/local/sbin/vpnc
-rwsr-xr-x  1 root  wheel  105092 10 nov 20:12 /usr/local/sbin/vpnc

but the normal user can't use it, it says:

$ /usr/local/sbin/vpnc
couldn't open `/usr/local/etc/vpnc.conf': Permission denied

It is not a mount issue of the file system:

# mount
/dev/ada0p2 on / (ufs, local, noatime, journaled soft-updates)

What I'm doing wrong?

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151112093622.GA3261>