Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2010 17:10:49 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-hackers@FreeBSD.ORG, aryeh.friedman@gmail.com
Subject:   Re: How to disallow logout
Message-ID:  <201009111510.o8BFAnJ9011318@lurza.secnetix.de>
In-Reply-To: <AANLkTin93An%2BUORiwHe%2BXdcgxj%2BpeXV1B2xvu81r_1CG@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Aryeh Friedman wrote:
 > In this case the admin and developer are the same person... namely at
 > the clients request I am the only person allowed to work on the
 > project and I just want to make it so I can't accidently do something
 > like control-d or something like that and leave a plain text version
 > of a project that has a very strict NDA laying around (liquidated
 > damages of $250k)... the scenrio is we a are a team (each one of us is
 > in diff city) of freelance CS people and all use the same server for
 > all our development to make cooperation possible when needed (not in
 > this case) have centralized backups, etc. and as mentioned on this one
 > project the client has forced me to sign a NDA saying I can't even
 > show the code to the other team members without the client's
 > permission and thus am storing the repo using security/fuse-encfs, but
 > since the version control system (devel/aegis) requires creating a
 > development directory that is not encrypted I want to force/remind
 > myself to checkin what ever I was working into the encrypted repo when
 > I go "home" (it is a home office ;-)) at night or out to lunch

If it's just a reminder to yourself, then I would simply
remove the keybinding for ^D (or bind it to something else;
the details depend on your login shell) and alias "exit"
and "logout" to a script that checks the working directory
of your version control system.  If things have been checked
in correctly, it logs you out, otherwise it prints a message
and terminates, throwing you back to the shell prompt.

Additionally, you could put the checked-out files on a
geli-encrypted device and/or on a memory file system.  That
will make sure that there ist no unencrypted stuff left
behind after a power-failure or crash.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Python is an experiment in how much freedom programmers need.
Too much freedom and nobody can read another's code; too little
and expressiveness is endangered."
        -- Guido van Rossum



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