Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

vsftpd not showing directories with sshfs mounts

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
sege
n00b
n00b
Posts: 31
Joined: Tue Nov 22, 2005 8:29 pm

vsftpd not showing directories with sshfs mounts

  • Quote

Post by sege » Sun Mar 16, 2008 12:27 pm

Hey there,
I just set up a vsftpd on my server using virtual users.
I figured out that the standard ftp root is /home/ftp. I can upload and download to there via gftp.

Now if I ssh to this server (as root on the server), create a new directory in /home/ftp, chown this new directory to ftp:ftp and after that mount a directory from a different server via sshfs to this new directory, the directory disappears in the listing of gftp.
If I try to access it manually by typing in the name, I get
550 Failed to change directory.

Can somebody help me with this ?
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Mar 16, 2008 3:48 pm

What is the output of ls -la /home/ftp/?
Top
sege
n00b
n00b
Posts: 31
Joined: Tue Nov 22, 2005 8:29 pm

  • Quote

Post by sege » Mon Mar 17, 2008 11:59 am

Code: Select all

fuckup ftp # ls -la
total 16
drwxr-xr-x 4 ftp  ftp  4096 Mar 16 13:13 .
drwxr-xr-x 3 root root 4096 Mar 16 12:59 ..
drwx------ 2 ftp  ftp  4096 Mar 16 13:13 Hallo
-rw-r--r-- 1 root root    0 Mar 16 13:02 asdf
drwxr-xr-x 1 ftp  ftp  4096 Mar 16 17:11 hacktor
fuckup ftp # umount hacktor/
fuckup ftp # ls -la
total 16
drwxr-xr-x 4 ftp  ftp  4096 Mar 16 13:13 .
drwxr-xr-x 3 root root 4096 Mar 16 12:59 ..
drwx------ 2 ftp  ftp  4096 Mar 16 13:13 Hallo
-rw-r--r-- 1 root root    0 Mar 16 13:02 asdf
drwxr-xr-x 2 root root 4096 Mar 16 13:16 hacktor
fuckup ftp # 
first one is with sshfs mounted to hacktor
second is unmounted sshfs
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Mar 18, 2008 3:18 am

Perhaps vsftpd is reacting badly to the directory being owned by root. If you chown the directory to ftp:ftp after the sshfs is mounted, does the ftp client work correctly?
Top
sege
n00b
n00b
Posts: 31
Joined: Tue Nov 22, 2005 8:29 pm

  • Quote

Post by sege » Fri Mar 21, 2008 12:39 pm

I dont think thats the problem.

I think you read the log above the wrong way.
With sshfs mounted to hacktor, the directory is owned by ftp:ftp
This is the time, when it doesnt show up.

After unmounting its owned by root and DOES show up.

I dont know what wrong.
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Mar 21, 2008 11:33 pm

That is exactly what I understood it to say. My point was that vsftpd may be examining the ownership of the directory and making a decision based on that ownership. Please try as I asked and chown the mounted sshfs to root:root before starting the ftp client.

Another possibility, which may be more likely, is that vsftpd is reacting to the presence of a mount point. If you mount a traditional hierarchy, such as a CD, at that location, what happens?
Top
sege
n00b
n00b
Posts: 31
Joined: Tue Nov 22, 2005 8:29 pm

  • Quote

Post by sege » Sat Mar 22, 2008 5:31 pm

Okay, now I understand.
I tried chowning the directory to root:root .
But that doesnt help. It doesnt show up. Like before.

Know I made a new directory and mounted my boot partition there.
I can access this directory without problems via ftp.

Thats weird !
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic