LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2017, 10:11 AM   #1
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Rep: Reputation: 0
ecryptfs nfs export debian 8 x64


hi, this is my /etc/exports

/home/Share/nocrypt 192.168.1.80(rw,sync,no_subtree_check)
/home/Share/crypt 192.168.1.80(rw,sync,no_subtree_check)
/home/Share/cryptc 192.168.1.80(rw,sync,no_subtree_check)

this is what i done before:

mkdir /home/Share/nocrypt
mkdir /home/Share/crypt
mkdir /home/Share/cryptc

mount -t ecryptfs /home/Share/crypt/ /home/Share/cryptc

i can see and work from nfs client on:
mkdir /home/Share/nocrypt
mkdir /home/Share/crypt (i see crypted files)

but it's impossible to connect the /home/Share/cryptc that is the decripted folder mounted containing decripted files.

Could you please help?
 
Old 02-16-2017, 04:21 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,825

Rep: Reputation: 158Reputation: 158
Quote:
i can see and work from nfs client on:
The NFS client and server are on same machine, aren't they? You are testing NFS server, aren't you?
 
Old 02-20-2017, 12:36 PM   #3
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
client and server are not the same machine, I'm trying to export an encrypted folder via nfs, not encrypted folders working, encrypted folder not

Last edited by framacomputer; 02-20-2017 at 04:54 PM.
 
Old 02-21-2017, 09:40 AM   #4
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
any ideas?
 
Old 02-21-2017, 03:54 PM   #5
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,825

Rep: Reputation: 158Reputation: 158
What's your Linux distribution? It look like mount command is wrong, no password and no encryption algorithm.
 
Old 02-22-2017, 03:54 AM   #6
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
it's a debian 8 x64

after mount -t ecryptfs /home/Share/crypt/ /home/Share/cryptc the system ask some questions to answer including the password and algorithm, i can guarantee the encryption works perfectly, the only problem is the nfs export of the decrypted folder, seems kind of locked or something
 
Old 02-22-2017, 03:57 PM   #7
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,825

Rep: Reputation: 158Reputation: 158
There are two methods to mount ecryptfs file system, with config file and raw mount.
Raw mount is like following.
mount -i -t ecryptfs ~/.secret ~/secret -o ecryptfs_sig=7c5d3dd8a1b49db0,ecryptfs_fnek_sig=7c5d3dd8a1b49db0,ecryptfs_cipher=aes,ecryptfs_key_by tes=32,ecryptfs_unlink_sigs

You need test ecryptfs on NFS server at first. On NFS server, is everything fine? If mount, you can see plain data. And after unmount, encrypted data show up.
 
Old 02-24-2017, 03:45 PM   #8
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
the mount of ecryptfs works perfectly, if i mount i can see the plain data, if unmount i see encrypted data, the ONLY problem is NFS export, i can not export the mounted encrypted folder, i mean from NFS client i can see folder only if not mounted in ecryptfs, if i mount ecryptfs folder in nfs server seems i can not exprt it
 
Old 02-24-2017, 05:02 PM   #9
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,825

Rep: Reputation: 158Reputation: 158
Following is example export and client mount. It use NFS v4.

/etc/exports

/exports/user1 192.168.178.20(rw,sync,fsid=0,crossmnt,no_subtree_check)
/exports/user1/data1 192.168.178.20(rw,sync,no_subtree_check)

client command to mount data1:

sudo mount.nfs4 192.168.178.10:/data1 /fs_data -o soft,intr,rsize=32768,wsize=32768
 
  


Reply

Tags
cryptography, debian jessie, ecryptfs, nfs


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
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) Punctual Programming 3 08-07-2013 06:20 PM
Ubuntu Server - 10.04.03 - NFS export with Kerberos (MIT) - NFS Won't Start tekkon7 Linux - Server 2 11-07-2011 10:53 AM
[SOLVED] fstab or export options needed to write to an nfs mounted ntfs export chief427 Linux - General 2 07-21-2011 08:07 AM
[ECRYPTFS] ecryptfs_init_miscdev: Error whilst attempting to open [/dev/ecryptfs] nitinarora Linux - Kernel 0 03-22-2010 06:36 AM
export NFS mounted file system via NFS smkamene Linux - Networking 3 02-10-2009 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:25 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