[Pkg-ltsp-devel] Bug#432024: Bug#432024: ltspfs: Provide non-root users access to the local hard drive on the client

Petter Reinholdtsen pere at hungry.com
Sat Jul 7 10:06:06 UTC 2007


I'm cc-ing the BTS to get the code idea included.

[Oliver Grawert]
> thats a bit drastic, isnt it ? i know a lot setups where people use
> the local disk in old PCs as data storage.

Wow.  So a lot of users do not want to have their files available
independent of which thin client they log into?  Never seen that setup
myself, so I am surprised it exist.

> 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 ;)

I guess FIXEDDEVICE might be a better name for it.  For example
LTSPFS_FIXEDDEVICE could be a name for it.

Happy hacking,
-- 
Petter Reinholdtsen




More information about the Pkg-ltsp-devel mailing list