Discussion:
[Ltsp-discuss] Volatile home directory (Jan Kowalsky)
Angus, Jackie
2015-11-18 12:30:18 UTC
Permalink
I've done something like this. In /usr/share/ldm/rc.d/S00-guest-sessions

I put this line

case "$LDM_USERNAME" in
WipedUserHere*)
ssh -S "$LDM_SOCKET" "$LDM_SERVER" 'cd; rsync -av --delete /etc/backups$
;;
esac

then I keep copies of the the home directories in /etc/backup

When the LTSP client boots it syncs the current directory with it's matching backup dir in /etc/backup
This has been working quite well.



Jackie Angus| Library IT Support
Horry County Government
Horry County Memorial Library – Library Administration
1008 5th Ave, Conway, South Carolina 29526
Tel 843-915-6388| Fax 843-248-1548 | ***@horrycounty.org
www.hcml.org

________________________________________
From: ltsp-discuss-***@lists.sourceforge.net <ltsp-discuss-***@lists.sourceforge.net>
Sent: Wednesday, November 18, 2015 7:00 AM
To: ltsp-***@lists.sourceforge.net
Subject: Ltsp-discuss Digest, Vol 114, Issue 5

Send Ltsp-discuss mailing list submissions to
ltsp-***@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
or, via email, send a message with subject or body 'help' to
ltsp-discuss-***@lists.sourceforge.net

You can reach the person managing the list at
ltsp-discuss-***@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ltsp-discuss digest..."


Today's Topics:

1. Re: Volatile home directory (Jan Kowalsky)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Nov 2015 12:16:29 +0100
From: Jan Kowalsky <***@datenkollektiv.net>
Subject: Re: [Ltsp-discuss] Volatile home directory
To: ltsp-***@lists.sourceforge.net
Message-ID: <***@datenkollektiv.net>
Content-Type: text/plain; charset=windows-1252

Hi g,

we have the same question in one of our networks. We provide guest accounts.
Hi all.
I'm trying to obtain a configuration for LTSP (no fat client) in which
all modifications made by the users on their home dir are discarded
before logout.
In other words, I would like every user find the same configuration for
desktop and personal settings each time he logs in. I would prevent
modifications from an initial configuration I made for users.
Of course the whole system can't work with read-only home dirs. Too easy :)
I tried understanding how to avoid sshfs mount of home dirs, but just
specifying a generic
CONFIGURE_FSTAB=true
FSTAB_1="tmpfs /home/ tmpfs
nodev,nosuid,size=512m,mode=777 0 0"
in /opt/ltsp/amd64/etc/lts.conf didn't help
I tried commenting out the line with sshfs in
/opt/ltsp/amd64/usr/share/ldm/rc.d/X01-localapps
manually mounted a user's home tmpfs dir on thin client before user
logged in, but no luck and the LDM restarted after hangup for a few minutes.
Does anyone faced with a similar goal to reach? Can anyone please point
me in the right direction?
well, we took a different approach. We simply use pam-scripts to create
home-dirs on login and remove them again on logout.

If there is a possibility to do this with tmpfs in ltsp this would be
nice. But be aware: a user only has to download or copy any big file and
your ram will not be sufficient.

Regards
Jan



------------------------------

------------------------------------------------------------------------------


------------------------------

_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net


End of Ltsp-discuss Digest, Vol 114, Issue 5
********************************************
All e-mail correspondence to and from this address may be subject to public disclosure under the South Carolina Freedom of Information Act (FOIA). This correspondence is intended exclusively for the individual or entity to which it is addressed and may contain information that is proprietary, privileged, confidential or otherwise legally exempt from disclosure
g
2015-11-18 15:00:27 UTC
Permalink
Nice! This worked for me. Thanks Jackie.
Post by Angus, Jackie
I've done something like this. In /usr/share/ldm/rc.d/S00-guest-sessions
I put this line
case "$LDM_USERNAME" in
WipedUserHere*)
ssh -S "$LDM_SOCKET" "$LDM_SERVER" 'cd; rsync -av --delete /etc/backups$
;;
esac
then I keep copies of the the home directories in /etc/backup
When the LTSP client boots it syncs the current directory with it's matching backup dir in /etc/backup
This has been working quite well.
Jackie Angus| Library IT Support
Horry County Government
Horry County Memorial Library – Library Administration
1008 5th Ave, Conway, South Carolina 29526
www.hcml.org
________________________________________
Sent: Wednesday, November 18, 2015 7:00 AM
Subject: Ltsp-discuss Digest, Vol 114, Issue 5
Send Ltsp-discuss mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ltsp-discuss digest..."
1. Re: Volatile home directory (Jan Kowalsky)
----------------------------------------------------------------------
Message: 1
Date: Wed, 18 Nov 2015 12:16:29 +0100
Subject: Re: [Ltsp-discuss] Volatile home directory
Content-Type: text/plain; charset=windows-1252
Hi g,
we have the same question in one of our networks. We provide guest accounts.
Hi all.
I'm trying to obtain a configuration for LTSP (no fat client) in which
all modifications made by the users on their home dir are discarded
before logout.
In other words, I would like every user find the same configuration for
desktop and personal settings each time he logs in. I would prevent
modifications from an initial configuration I made for users.
Of course the whole system can't work with read-only home dirs. Too easy :)
I tried understanding how to avoid sshfs mount of home dirs, but just
specifying a generic
CONFIGURE_FSTAB=true
FSTAB_1="tmpfs /home/ tmpfs
nodev,nosuid,size=512m,mode=777 0 0"
in /opt/ltsp/amd64/etc/lts.conf didn't help
I tried commenting out the line with sshfs in
/opt/ltsp/amd64/usr/share/ldm/rc.d/X01-localapps
manually mounted a user's home tmpfs dir on thin client before user
logged in, but no luck and the LDM restarted after hangup for a few minutes.
Does anyone faced with a similar goal to reach? Can anyone please point
me in the right direction?
well, we took a different approach. We simply use pam-scripts to create
home-dirs on login and remove them again on logout.
If there is a possibility to do this with tmpfs in ltsp this would be
nice. But be aware: a user only has to download or copy any big file and
your ram will not be sufficient.
Regards
Jan
------------------------------
------------------------------------------------------------------------------
------------------------------
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
End of Ltsp-discuss Digest, Vol 114, Issue 5
********************************************
All e-mail correspondence to and from this address may be subject to public disclosure under the South Carolina Freedom of Information Act (FOIA). This correspondence is intended exclusively for the individual or entity to which it is addressed and may contain information that is proprietary, privileged, confidential or otherwise legally exempt from disclosure
------------------------------------------------------------------------------
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Loading...