Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On Almalinux 8 if I mount a drive (from another server) and if a client connects to Almalinux via FTP (vsftpd) the mounted folder not visible in FTP client.
I checked the permissions and I tried with root user too.
This is how I mount the SMB drive:
//192.168.1.2/share-folder /root/remote-folder cifs username=remoteuser,password=12345678,iocharset=utf8,file_mode=0777,dir_mode=0777
Only root has permissions to access files within its home directory i.e. /root. root should never be able to login via ftp. If a directory is outside of the local_root directory you would need to use the cd command to change directories.
But it depends on how you configured vsftpd? Are you using chroot_local_users? How did you configure local_root?
Only root has permissions to access files within its home directory i.e. /root. root should never be able to login via ftp. If a directory is outside of the local_root directory you would need to use the cd command to change directories.
But it depends on how you configured vsftpd? Are you using chroot_local_users? How did you configure local_root?
I allowed root to use the FTP (because I thought I have a permission problem), but root can't see mounted folder too via FTP so if I login via ssh there are the test files and the mounted folder too in root's home and I can cd into it, if I login into server with root via FTP I can see only the test files, but not the mounted folder, and if I unmount the folder, I can see the mountpoint folder via FTP, if I remount the folder is goes away again.
Last edited by userarrayuser; 04-05-2024 at 10:10 AM.
I have seen that kind of thing work, but not using the software available today.
In general you cannot reshare a remote share with any success: if it ever works it will not be dependable.
Likewise, running a service on one box to provide access to data on another box is iffy. Can you not run an vsftp service on the box that actually owns that storage and data? THAT would work and be more dependable.
if I unmount the folder, I can see the mountpoint folder via FTP if is remount the folder is goes away again.
It does not happen me but it might depend on how vsftp configured? I don't see anything specific to a remote share in vsftp.conf. There is a deny_file, hide_files directives and chroot_jail but I have not tried anything to see if that would happen. Users should not be allowed to access /root anyway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.