Can't Export Any Directory Off My Home Directory - Ubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















Whenever I make an NFS export on a folder off my home directory I get the error below (appreciate this example is too brief, but the next set of code shows how I got here):



$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


Here is what I've done in detail:



## Create the bind mount ##
$ sudo mount --bind /home/john/test /export/test

## Verify original /home/john/test folder exists ##
john@john:~/test$ cd ~/
john@john:~$ ls -l | grep test
drwxrwxr-x 2 john john 4096 Feb 9 13:33 test

## Check what files exist in this folder and confirm they are in the bind location ##
john@john:~$ cd test
john@john:~/test$ ls
f test testfile

## Verify bind location folder exists & that the same files are in this location ##
john@john:~/test$ cd /export/test
john@john:/export/test$ ls
f test testfile

## Ensure export file is exporting the bind location ##
john@john:/export/test$ grep test /etc/exports
/export/test 192.168.0.0/24(rw,sync,root_squash,no_subtree_check)

## Re-export shares to get the /export/test nfs share on the network ##
john@john:/export/test$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


As you can see. When I try to re-export my share, it throws the error above. After the testing below, I found that this only happens when trying to export anything linked, or directly on my /home/john/ directory. I don't know why.




#################### Testing using a directory outside of /home ######################



Here I try and use the NFS share on a new directory "/test" without a bind mount, and it works:



#note, continuing from the bash commands above#
john@john:/test$ cd ..
john@john:/$ sudo umount /test
john@john:/$ ls /test
test
john@john:/$ sudo exportfs -ar
john@john:/$



########## Testing using a share from a directory in /home (without a bind-mount)########



Here I made a share on a directory off of my home directory (as I suspect it's the home directory mounts having the issue), without any binds, which doesn't work



john@john:~$ mkdir test-nobind
john@john:~$ cd test-nobind/
john@john:~/test-nobind$ touch file1 file2
john@john:~/test-nobind$ ls -l
total 16
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file1
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file2
john@john:~/test-nobind$ cd ..
john@john:~$ sudo nano /etc/exports ###added line to export this folder
john@john:~$ grep test /etc/exports
/home/john/test-nobind 172.31.16.0/24(rw,sync,root_squash,no_subtree_check)

john@john:~$ sudo exportfs -rav
exporting 172.31.16.0/24:/home/john/test-nobind
exportfs: /home/john/test-nobind does not support NFS export


As you can see, I have the same error as my original post where exportfs says "does not support NFS export". So it's my home directory causing the problem. My /etc/crypttab file is empty, so I don't believe I have any encryption running (at least I don't think I do). I want to know why I get this error?




Below is a list of stuff/outputs people in this forum have asked me to check



john@john:/home$ df $HOME
Filesystem 1K-blocks Used Available Use% Mounted on
/home/john/.Private 106992680 81417972 20116688 81% /home/john

john@john:~$ mount | grep /home/john
/home/john/.Private on /home/john type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=b15035efe9091f4e,ecryptfs_sig=05afa3a5d0c7b155,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)









share|improve this question
























  • possible that /home/john is also an NFS mount -- try df $HOME to confirm

    – Jeff Schaller
    Feb 10 at 0:02











  • I've pasted this output into the bottom of my original post.

    – john smith
    Feb 10 at 0:09











  • Hmm, and mount | grep /home/john ?

    – Jeff Schaller
    Feb 10 at 0:13











  • updated my original post with the output (at bottom)

    – john smith
    Feb 10 at 0:17







  • 1





    A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

    – Haxiel
    Feb 10 at 7:34















3















Whenever I make an NFS export on a folder off my home directory I get the error below (appreciate this example is too brief, but the next set of code shows how I got here):



$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


Here is what I've done in detail:



## Create the bind mount ##
$ sudo mount --bind /home/john/test /export/test

## Verify original /home/john/test folder exists ##
john@john:~/test$ cd ~/
john@john:~$ ls -l | grep test
drwxrwxr-x 2 john john 4096 Feb 9 13:33 test

## Check what files exist in this folder and confirm they are in the bind location ##
john@john:~$ cd test
john@john:~/test$ ls
f test testfile

## Verify bind location folder exists & that the same files are in this location ##
john@john:~/test$ cd /export/test
john@john:/export/test$ ls
f test testfile

## Ensure export file is exporting the bind location ##
john@john:/export/test$ grep test /etc/exports
/export/test 192.168.0.0/24(rw,sync,root_squash,no_subtree_check)

## Re-export shares to get the /export/test nfs share on the network ##
john@john:/export/test$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


As you can see. When I try to re-export my share, it throws the error above. After the testing below, I found that this only happens when trying to export anything linked, or directly on my /home/john/ directory. I don't know why.




#################### Testing using a directory outside of /home ######################



Here I try and use the NFS share on a new directory "/test" without a bind mount, and it works:



#note, continuing from the bash commands above#
john@john:/test$ cd ..
john@john:/$ sudo umount /test
john@john:/$ ls /test
test
john@john:/$ sudo exportfs -ar
john@john:/$



########## Testing using a share from a directory in /home (without a bind-mount)########



Here I made a share on a directory off of my home directory (as I suspect it's the home directory mounts having the issue), without any binds, which doesn't work



john@john:~$ mkdir test-nobind
john@john:~$ cd test-nobind/
john@john:~/test-nobind$ touch file1 file2
john@john:~/test-nobind$ ls -l
total 16
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file1
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file2
john@john:~/test-nobind$ cd ..
john@john:~$ sudo nano /etc/exports ###added line to export this folder
john@john:~$ grep test /etc/exports
/home/john/test-nobind 172.31.16.0/24(rw,sync,root_squash,no_subtree_check)

john@john:~$ sudo exportfs -rav
exporting 172.31.16.0/24:/home/john/test-nobind
exportfs: /home/john/test-nobind does not support NFS export


As you can see, I have the same error as my original post where exportfs says "does not support NFS export". So it's my home directory causing the problem. My /etc/crypttab file is empty, so I don't believe I have any encryption running (at least I don't think I do). I want to know why I get this error?




Below is a list of stuff/outputs people in this forum have asked me to check



john@john:/home$ df $HOME
Filesystem 1K-blocks Used Available Use% Mounted on
/home/john/.Private 106992680 81417972 20116688 81% /home/john

john@john:~$ mount | grep /home/john
/home/john/.Private on /home/john type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=b15035efe9091f4e,ecryptfs_sig=05afa3a5d0c7b155,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)









share|improve this question
























  • possible that /home/john is also an NFS mount -- try df $HOME to confirm

    – Jeff Schaller
    Feb 10 at 0:02











  • I've pasted this output into the bottom of my original post.

    – john smith
    Feb 10 at 0:09











  • Hmm, and mount | grep /home/john ?

    – Jeff Schaller
    Feb 10 at 0:13











  • updated my original post with the output (at bottom)

    – john smith
    Feb 10 at 0:17







  • 1





    A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

    – Haxiel
    Feb 10 at 7:34













3












3








3


0






Whenever I make an NFS export on a folder off my home directory I get the error below (appreciate this example is too brief, but the next set of code shows how I got here):



$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


Here is what I've done in detail:



## Create the bind mount ##
$ sudo mount --bind /home/john/test /export/test

## Verify original /home/john/test folder exists ##
john@john:~/test$ cd ~/
john@john:~$ ls -l | grep test
drwxrwxr-x 2 john john 4096 Feb 9 13:33 test

## Check what files exist in this folder and confirm they are in the bind location ##
john@john:~$ cd test
john@john:~/test$ ls
f test testfile

## Verify bind location folder exists & that the same files are in this location ##
john@john:~/test$ cd /export/test
john@john:/export/test$ ls
f test testfile

## Ensure export file is exporting the bind location ##
john@john:/export/test$ grep test /etc/exports
/export/test 192.168.0.0/24(rw,sync,root_squash,no_subtree_check)

## Re-export shares to get the /export/test nfs share on the network ##
john@john:/export/test$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


As you can see. When I try to re-export my share, it throws the error above. After the testing below, I found that this only happens when trying to export anything linked, or directly on my /home/john/ directory. I don't know why.




#################### Testing using a directory outside of /home ######################



Here I try and use the NFS share on a new directory "/test" without a bind mount, and it works:



#note, continuing from the bash commands above#
john@john:/test$ cd ..
john@john:/$ sudo umount /test
john@john:/$ ls /test
test
john@john:/$ sudo exportfs -ar
john@john:/$



########## Testing using a share from a directory in /home (without a bind-mount)########



Here I made a share on a directory off of my home directory (as I suspect it's the home directory mounts having the issue), without any binds, which doesn't work



john@john:~$ mkdir test-nobind
john@john:~$ cd test-nobind/
john@john:~/test-nobind$ touch file1 file2
john@john:~/test-nobind$ ls -l
total 16
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file1
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file2
john@john:~/test-nobind$ cd ..
john@john:~$ sudo nano /etc/exports ###added line to export this folder
john@john:~$ grep test /etc/exports
/home/john/test-nobind 172.31.16.0/24(rw,sync,root_squash,no_subtree_check)

john@john:~$ sudo exportfs -rav
exporting 172.31.16.0/24:/home/john/test-nobind
exportfs: /home/john/test-nobind does not support NFS export


As you can see, I have the same error as my original post where exportfs says "does not support NFS export". So it's my home directory causing the problem. My /etc/crypttab file is empty, so I don't believe I have any encryption running (at least I don't think I do). I want to know why I get this error?




Below is a list of stuff/outputs people in this forum have asked me to check



john@john:/home$ df $HOME
Filesystem 1K-blocks Used Available Use% Mounted on
/home/john/.Private 106992680 81417972 20116688 81% /home/john

john@john:~$ mount | grep /home/john
/home/john/.Private on /home/john type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=b15035efe9091f4e,ecryptfs_sig=05afa3a5d0c7b155,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)









share|improve this question
















Whenever I make an NFS export on a folder off my home directory I get the error below (appreciate this example is too brief, but the next set of code shows how I got here):



$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


Here is what I've done in detail:



## Create the bind mount ##
$ sudo mount --bind /home/john/test /export/test

## Verify original /home/john/test folder exists ##
john@john:~/test$ cd ~/
john@john:~$ ls -l | grep test
drwxrwxr-x 2 john john 4096 Feb 9 13:33 test

## Check what files exist in this folder and confirm they are in the bind location ##
john@john:~$ cd test
john@john:~/test$ ls
f test testfile

## Verify bind location folder exists & that the same files are in this location ##
john@john:~/test$ cd /export/test
john@john:/export/test$ ls
f test testfile

## Ensure export file is exporting the bind location ##
john@john:/export/test$ grep test /etc/exports
/export/test 192.168.0.0/24(rw,sync,root_squash,no_subtree_check)

## Re-export shares to get the /export/test nfs share on the network ##
john@john:/export/test$ sudo exportfs -ar
exportfs: /export/test does not support NFS export


As you can see. When I try to re-export my share, it throws the error above. After the testing below, I found that this only happens when trying to export anything linked, or directly on my /home/john/ directory. I don't know why.




#################### Testing using a directory outside of /home ######################



Here I try and use the NFS share on a new directory "/test" without a bind mount, and it works:



#note, continuing from the bash commands above#
john@john:/test$ cd ..
john@john:/$ sudo umount /test
john@john:/$ ls /test
test
john@john:/$ sudo exportfs -ar
john@john:/$



########## Testing using a share from a directory in /home (without a bind-mount)########



Here I made a share on a directory off of my home directory (as I suspect it's the home directory mounts having the issue), without any binds, which doesn't work



john@john:~$ mkdir test-nobind
john@john:~$ cd test-nobind/
john@john:~/test-nobind$ touch file1 file2
john@john:~/test-nobind$ ls -l
total 16
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file1
-rw-rw-r-- 1 john john 0 Feb 9 19:23 file2
john@john:~/test-nobind$ cd ..
john@john:~$ sudo nano /etc/exports ###added line to export this folder
john@john:~$ grep test /etc/exports
/home/john/test-nobind 172.31.16.0/24(rw,sync,root_squash,no_subtree_check)

john@john:~$ sudo exportfs -rav
exporting 172.31.16.0/24:/home/john/test-nobind
exportfs: /home/john/test-nobind does not support NFS export


As you can see, I have the same error as my original post where exportfs says "does not support NFS export". So it's my home directory causing the problem. My /etc/crypttab file is empty, so I don't believe I have any encryption running (at least I don't think I do). I want to know why I get this error?




Below is a list of stuff/outputs people in this forum have asked me to check



john@john:/home$ df $HOME
Filesystem 1K-blocks Used Available Use% Mounted on
/home/john/.Private 106992680 81417972 20116688 81% /home/john

john@john:~$ mount | grep /home/john
/home/john/.Private on /home/john type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=b15035efe9091f4e,ecryptfs_sig=05afa3a5d0c7b155,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)






mount nfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 12:46









Jeff Schaller

42.9k1159137




42.9k1159137










asked Feb 9 at 23:12









john smithjohn smith

1072618




1072618












  • possible that /home/john is also an NFS mount -- try df $HOME to confirm

    – Jeff Schaller
    Feb 10 at 0:02











  • I've pasted this output into the bottom of my original post.

    – john smith
    Feb 10 at 0:09











  • Hmm, and mount | grep /home/john ?

    – Jeff Schaller
    Feb 10 at 0:13











  • updated my original post with the output (at bottom)

    – john smith
    Feb 10 at 0:17







  • 1





    A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

    – Haxiel
    Feb 10 at 7:34

















  • possible that /home/john is also an NFS mount -- try df $HOME to confirm

    – Jeff Schaller
    Feb 10 at 0:02











  • I've pasted this output into the bottom of my original post.

    – john smith
    Feb 10 at 0:09











  • Hmm, and mount | grep /home/john ?

    – Jeff Schaller
    Feb 10 at 0:13











  • updated my original post with the output (at bottom)

    – john smith
    Feb 10 at 0:17







  • 1





    A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

    – Haxiel
    Feb 10 at 7:34
















possible that /home/john is also an NFS mount -- try df $HOME to confirm

– Jeff Schaller
Feb 10 at 0:02





possible that /home/john is also an NFS mount -- try df $HOME to confirm

– Jeff Schaller
Feb 10 at 0:02













I've pasted this output into the bottom of my original post.

– john smith
Feb 10 at 0:09





I've pasted this output into the bottom of my original post.

– john smith
Feb 10 at 0:09













Hmm, and mount | grep /home/john ?

– Jeff Schaller
Feb 10 at 0:13





Hmm, and mount | grep /home/john ?

– Jeff Schaller
Feb 10 at 0:13













updated my original post with the output (at bottom)

– john smith
Feb 10 at 0:17






updated my original post with the output (at bottom)

– john smith
Feb 10 at 0:17





1




1





A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

– Haxiel
Feb 10 at 7:34





A bug report that might be relevant: ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

– Haxiel
Feb 10 at 7:34










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499706%2fcant-export-any-directory-off-my-home-directory-ubuntu-18-04%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499706%2fcant-export-any-directory-off-my-home-directory-ubuntu-18-04%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?