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.
last for this issues but not least, i'm config my ftp server using virtual user like your post. when user login they get their own directories...right ? other user cannot see their directories ....
if i want let's said, user1 and user2 can share their directories/folder when either user1 or user2 open ftp...they will see the directories.....how can do that. the purpose to create like that because all file will be transfer in one folder that can be see to other using within the setting. but anonymous user cannot see that....it just can see their own.
Well, you can create your users (user1, user2) to have the same homedir, or you can use "mount --bind" to mount each others homedirs. into their homedir.
when login for bhm user and create directories there is newly directori/folder but switching to faiz user there is no newly directory. need to cd to that user then can see directories.
need to make one directories but all user expect anonymous can see.
I don't quite understand what you mean here, but I told you already that you can use mount --bind to mount a directory to both users' homedirs
Eg. create the common directory somewhere:
Code:
mkdir /var/vftp/common
chgrp ftp /var/vftp/common
Then as each user create the needed mount point in homedir:
Code:
bhm$mkdir common
faiz$mkdir common
And lastly, as root run:
Code:
mount --bind /var/ftp/common /var/vftp/bhm/common
mount --bind /var/ftp/common /var/vftp/faiz/common
i follow that command but nothing change, actually i want anonymous just can download data and cannot see other folder just pub folder only. for the authenticate ftp user will see folder for anonymous and one public folder that use for upload and download file between ftp user. this folder cannot be seen to anonymous and also user ftp not within group.
how to create like that...
my user loacate at /home/vftp/user1 and /home/vftp/user2 and anonymous user at /var/ftp/
If the anonymous user is ftp, you can use usermod to change it's homedir
Code:
usermod -d /var/ftp ftp
i cannot used that command.....command not found
is the command to make same folder/directories for user ftp authenticate not anonymous to upload/download...example when user1 ftp to server it's upload new data and by default the data should put in etc /home/vftp/public_folder. then when user2 login it's can see the new data and can be download for edit and upload again to same folder by default. but for anonymous user it's cannot see that data.
i need setting like that. i want each user ftp have two directory/folder but one folder just can be share among user ftp and the other one can be share with anonymous---for sharing to anonymous the reason is anonymous user only see file like document tender.
thanks
Last edited by alphatest; 08-23-2011 at 10:08 PM.
Reason: typing error
i need setting like that. i want each user ftp have two directory/folder but one folder just can be share among user ftp and the other one can be share with anonymous---for sharing to anonymous the reason is anonymous user only see file like document tender.
Don't quite understand what you mean, but as I've told you already, use "mount --bind" to mount a common folder (/home/vftp/public_folder) to each user homedir
folder for anonymous user will be by default /var/ftp/pub.
for user ftp i create /home/vftp/user1 and /home/vftp/user2, i need when user1 upload data user2 will automatically have the data...right now each user have their own directory means when user1 upload data it will goes to their directory....user2 cannot see the data.
i need to create public folder should be two user ftp can see the data....
and one more thing user ftp can upload the data to folder for anonymous user but user anonymous cannot enter user ftp directories.
I've already told you on post #20, what you need to do if you want those users to be able to use each others files.
If you don't want to do this you can use:
Code:
user_config_dir=/etc/vsftpd_user_conf
to override the default homedir chroot.
Then create the directory /etc/vsftpd_user_conf and add 2 files named user1 and user2, containing:
Code:
local_root=/var/ftp/pub
Adjust permissions, so they can write (upload) on that directory and the anonymous can read (download).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.