LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 08-21-2011, 01:05 PM   #16
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322

Quote:
can i upload file through web access ?
No, unless you use some scripting language (php, perl) on server side. That's why I told you to use a ftp client to do your file transfers.
Quote:
and what file can be download through web ...only the zip file..
Any file that you see on your browser can be downloaded locally.

Regards
 
Old 08-22-2011, 01:51 AM   #17
alphatest
Member
 
Registered: Aug 2010
Location: KL
Distribution: Centos, ubuntu
Posts: 137

Original Poster
Rep: Reputation: 2
vsftpd

Hi,


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.

for ftp user it can see folder for anonymous.

please help me last once.



thanks
 
Old 08-22-2011, 02:18 AM   #18
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

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.
 
Old 08-22-2011, 10:02 AM   #19
alphatest
Member
 
Registered: Aug 2010
Location: KL
Distribution: Centos, ubuntu
Posts: 137

Original Poster
Rep: Reputation: 2
Hi,


right now it cannot tied to one for both account...


i create my account for ftp user /home/vftp/bhm & /home/vftp/faiz

mkdir -p /home/vftp/{bhm,faiz}
chown -R ftp:ftp /home/vftp

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.

thanks
 
Old 08-22-2011, 11:57 AM   #20
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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
 
Old 08-23-2011, 12:03 PM   #21
alphatest
Member
 
Registered: Aug 2010
Location: KL
Distribution: Centos, ubuntu
Posts: 137

Original Poster
Rep: Reputation: 2
Hi,


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/
 
Old 08-23-2011, 01:01 PM   #22
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
If the anonymous user is ftp, you can use usermod to change it's homedir
Code:
usermod -d /var/ftp ftp
 
Old 08-23-2011, 08:56 PM   #23
alphatest
Member
 
Registered: Aug 2010
Location: KL
Distribution: Centos, ubuntu
Posts: 137

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bathory View Post
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
 
Old 08-24-2011, 12:47 AM   #24
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
i cannot used that command.....command not found
You must be root to run that command.

Quote:
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
 
Old 08-25-2011, 10:02 AM   #25
alphatest
Member
 
Registered: Aug 2010
Location: KL
Distribution: Centos, ubuntu
Posts: 137

Original Poster
Rep: Reputation: 2
Hi.

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.


t.q
 
Old 08-25-2011, 01:03 PM   #26
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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).
 
  


Reply

Tags
vsftpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 4 - Setting users for vsftpd vikram8jp Linux - Newbie 2 10-16-2008 02:15 AM
setting up users in VSFTPD true_atlantis Linux - Software 1 09-29-2004 02:28 PM
Setting Up Vsftpd zirconyl Linux - Software 0 09-13-2004 02:59 PM
Setting up vsftpd awing_pilot Linux - Networking 1 07-02-2003 10:39 PM
vsftpd - setting up users Korff Linux - Networking 7 05-31-2003 04:00 PM


All times are GMT -5. The time now is 12:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration