Thu 02 of Sep, 2010 [15:28 UTC]  
Menu

cryptoconf

cryptoconf
edit print PDF
Português Brasileiro

_abandond by upstream_!!


Program to map & mount a cryptodevice with config-files (in my program called profiles).
the program runs suid-root and should be designed to use as normal user
(eg. no more need for root/su/sudo for using a cryptoFS).

http://www.sbox.tugraz.at/home/g/gebi/projects/cryptoconf/cryptoconf_0.7.0/
http://einsteinmg.dyndns.org/projects/cryptoconf/cryptoconf_0.7.0/

current format is <key> <value> :
# should this profile be deaktivated (yes/no)
disabled yes
# /dev/mapper/$CryptoTarget
cryptoTarget crypttest
# Partition with encryption
srcPartition /dev/hdc6
# Mount crypto Partition into this directory
mntPoint /mnt/cryptodata
# Mount options
mntOptions defaults
other options for deeper configuration are added also (cipher, keysize, hash, sector(offset/skip))


TODO:
* get key from /dev/urandom and store it in an gpg encrypted file
(together with all options not necessary for working purpose)


BUGS:
- none yet


STEP-BY-STEP-GUIDE for beginners:
* su (only root should be able to edit the configfiles)
* edit /etc/cryptoconf/default.conf for your needs or make you own profile
* create the directory you gave as MntPoint? in your config (profile)
* start your profile with cryptoconf -c <profile-name> (-c == -create).
With this you'll get the errormessage, that mount couldn't find a Filesystem on
your cryptopartition (quite clear), ignore this warning.
* create an fs of your choice on your cryptopartition-mapping
(mkfs.<filesystem of your choice> /dev/mapper/<name-of-your-cryptopartition-mapping>)
* restart your profile, cryptoconf -c <profile-name>
* adjust the permissions on your cryptopartition (no other user should be able to read anything)
(chmod 0750 <MntPoint>, chown <user who want to use the cryptopartition>:<group>)
* cryptoconf -r <profile-name>
* Congratulations you cryptopartition is now useable as normal user
* change to your normal user
* start your profile: cryptoconf -c <profile-name>

HINT: this is my first perl program and my first *.deb biggrin


Help = Ajuda:



Created by: einsteinmg last modification: Tuesday 06 of July, 2010 [01:56:58 UTC] by Anonymous


Posted messages

Top Hide all
author message
the Perlscript don't work
on: Thu 28 of Oct, 2004 [09:36 UTC] score: 0.00
Whatever I tried to use this package, f.i. serveral configurations of my profile. when I run the Cryptoconfscript (as root), the following error appears.
......
./cryptoconf.pl
Can't locate object method "instance" via package "cryptoconf::strictConfig"
(perhaps you forgot to load "cryptoconf::strictConfig"?) at ./cryptoconf.pl line 48.
BEGIN failed--compilation aborted at ./cryptoconf.pl line 49
.....

sad
Any Ideas?

Tobias



Page: 1/1
1