LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-31-2006, 06:40 PM   #1
crions
LQ Newbie
 
Registered: May 2005
Location: Home
Distribution: slackware/ubuntu
Posts: 20

Rep: Reputation: 1
Angry mount passwdfd option with encripted partition or file


Dear Folks,

I´ve have just made one encrypted file (aes encryption) using cryptoloop and aes. Working perfectly. Regardless the style used here "loop-aes", "cryptoloop", "dm-crypt", they allways hit a losetup, loop and mount point.

Here is my problem

I need to mount "automaticaly" one encrypted partition, the password will be located in a file at a remote server over the web.
A script will capture that file/password and mount it.

Code:
mount -o loop,encryption=aes -p ? cryptfile /mnt/temporary/
There is the passwdfd option that I REALLY HAVE NO IDEA HOW IT WORKS! No good examples found in GOOGLE and no IDEA what is a "read the passphrase from file descriptor" Witch file? How to set it up?. MAN pages about this particular item (mount,loop,losetup)are not elucidative. Also I have no idea if the password can be forwarded / passed / send in another way to mount command.

The thing is: I need to mount it without typing anything.

P.S: I need to do this way, don´t tell me "type the password" or related stuff, please.
My OS: Slackware 10.2 with 2.6.13 Kernel
Using modules: cryptoloop and aes

Last edited by crions; 01-31-2006 at 07:00 PM.
 
Old 02-01-2006, 04:35 AM   #2
crions
LQ Newbie
 
Registered: May 2005
Location: Home
Distribution: slackware/ubuntu
Posts: 20

Original Poster
Rep: Reputation: 1
Replying to myself... After 5 hour sleep time.

Code:
cat filepasshere | mount -o loop,encryption=aes -p 0 /mnt/crypt/cryptfile /mnt/tempo/
I hope this helps anyone in the future.
Alternative methods and post are welcome.
Also better examples for passwdfd option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Samba ignores the mount 'quiet' option? Woodsman Slackware 4 12-22-2005 10:26 PM
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
Fluxbox Menu option for 'Mount' TomalakBORG Linux - Software 9 05-18-2005 12:37 PM
xine says my dvd is scrambled/encripted berrance Linux - Software 3 12-04-2004 10:33 AM
Cannot Mount a Partition, wrong FS type, bad option etc. dsuratman Linux - Newbie 13 11-16-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration