[Pkg-ltsp-devel] Bug#432024: ltspfs: Provide non-root users access to the local hard drive on the client
Oliver Grawert
ogra at ubuntu.com
Sat Jul 7 09:32:46 UTC 2007
hi,
Am Freitag, den 06.07.2007, 17:38 -0700 schrieb vagrant at freegeek.org:
> On Fri, Jul 06, 2007 at 10:03:34PM +0200, Petter Reinholdtsen wrote:
> > It would be better if the local device access provided by ltspfs was
> > limited to removable media only.
>
> gadi suggested adding ATTRS{removable}=="1" to the udev rules. i tried
thats a bit drastic, isnt it ? i know a lot setups where people use the
local disk in old PCs as data storage.
look at this snippet from scripts/add_fstab_entry:
# mount in the client session
if [ -S /var/run/ldm_socket ]; then
/usr/bin/ssh -S /var/run/ldm_socket server \
"/usr/sbin/ltspfsmounter ${MOUNTPOINT} add"
else
echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.delayed-mount
if [ ! -z "${FIXEDDEVICE}" ]; then
echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.static-device
else
echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.delayed-mount
fi
fi
just drop the "else" part or wrap it into a boolean variable like
STATIC_DEVICES. if that part is missing, only devices plugged in during
the session are recognized. CDs are handled by cdpinger, if you dont
change the udev rules it will not break ;)
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20070707/bd723ef5/attachment.pgp
More information about the Pkg-ltsp-devel
mailing list