// COMPLETE THREAD

Mounting Crypted directories on Multiuser Machines.

2 expanded posts ยท every known parent and child

NODE 3e927e45Mounting Crypted directories on Multiuser Machines.
I was wondering about something: 
 
       Say you have a unix (or other multi-user OS) box, how hard would 
 it be for someone who was good at programming to modify Blaze's CFS to 
 allow the following:
 
       Every user has a directory:
 
      /home/usr1/
           /usr2/
           /usr3/
 
       and inside each directory they have:
 
       /home/usr1/html/
                 /files/
                 /.login    
                 /.usr1crypt
 
      such that /.usr1crypt gets mounted at _login_ time as a crypted file
 system under /files.
 
      The way I envision this is that one would log in (either from the console,
 or via ssh ideally) and be presented with the option of mounting said directory
 and asked for a passphrase, then the directory gets mounted. 
 
      I took a look at Blaze's CFS, but he mentions that it is really only for 
 a single user system, and well <looks sheepish I can't get it to compile 
 on my machine, so I can't really play with it on my end. 
 
      I would think that this would be fairly difficult, otherwise it would 
 have already been done right? 
 
      Or am I missing something more basic? 
 
      It would seem that running something like this would do 2 things.
   
      1) It would be much more difficult to prove that a service provider 
         knew what files a user was keeping lying around because unless
         the user was logged in, not even the Sysadmin could "peek" at the
         files.
      2) Provide the user with greater privacy. Users could keep PGP keys 
         on the system without much risk, and as long as access was either
         thru the console, or thru something like ssh, you should be rather
         safe. 
  
       Is anyone working toward something like this? I kinda got the idea that
 CFS was more designed and intended for single-user-at-a-time systems, but the
 application I had in mind was more of a (old) C2-type organization. 
 
 
 Petro, Christopher C.
 petro@suba.com <prefered for any non-list stuff
 snow@smoke.suba.com
NODE 63ab563fRe: Mounting Crypted directories on Multiuser Machines.
-----BEGIN PGP SIGNED MESSAGE-----

snow <snow@smoke.suba.com> writes:
<sniup description of user directories>
>        and inside each directory they have:
>  
>        /home/usr1/html/
>                  /files/
>                  /.login    
>                  /.usr1crypt
>  
>       such that /.usr1crypt gets mounted at _login_ time as a crypted file
>  system under /files.

Umm, I guess you could make mount setuid root or something. Is this
just a linux thing? But wait, there's more.  

>       Or am I missing something more basic? 

Yup.

>       It would seem that running something like this would do 2 things.
>    
>       1) It would be much more difficult to prove that a service provider 
>          knew what files a user was keeping lying around because unless
>          the user was logged in, not even the Sysadmin could "peek" at the
>          files.

There's nothing to prevent root from grabbing your password when you
log in. Root can see *everything.*

>       2) Provide the user with greater privacy. Users could keep PGP keys 
>          on the system without much risk, and as long as access was either
>          thru the console, or thru something like ssh, you should be rather
>          safe. 

If a user on the system has your password, they can edit your .login
to give them your filesystem password. If they have the root password,
well, you're screwed.

AKAIK, the only benefit od encrypted drives is that the sysadmin
cannot be forced to reveal the contents of the drive (5th amendment
and all). You could do the same thing on a multiuser system by having
one encrypted partition, and making symlinks from each user's
directory to their directy in the encrypted drive. This would be a bit
more efficient, I think.

Jer

"standing on top of the world/ never knew how you never could/ never knew
 why you never could live/ innocent life that everyone did" -Wormhole

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBMoyyeckz/YzIV3P5AQGrQwMAr+mOugO6IlmlXdOZzTKXHF/+gZCf5ZJe
qVan7XukQ/2xS1/kchSgnXJt5m00jDuwh/onfCblhb2eOKUP4+Wum93U9vXfEuxW
LJp6Za2S2xCK3oMa1InZtSGGFJkPFs6t
=HyQ2
-----END PGP SIGNATURE-----