Question

I have created a chrooted sftp user, and mounted a directory to the users chrooted home.

Within this directory I have one directory for each website the sftp user has access to.

When I rebooted my Ubuntu 10.04 server, the content of the mounted folder is gone.

/home/chrootedUser/websites/website1

To my frustration the website1 directory is gone/deleted.

My /etc/fstab config: http://pastebin.com/gxz3w9Mg

My mounts (using command mount): http://pastebin.com/XcGGvGVE

I hope someone can point me in the right direction, please let me know if you need anything else.

Était-ce utile?

La solution

Unmount /home/chrootedUser/websites and your files will be there. Probably your mount didn't work for the first time when you were creating those files. But now it works.

fstab should do automounting for you just fine. It's difficult to tell what exactly went wrong, you can read /proc/self/mounts to check your mounts.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top