LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2012, 08:24 AM   #1
satyadev75
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Rep: Reputation: 0
Question ftp multiple users should share a single folder/dir with their account passwords


hi linux user/admin,

I am using an FTP server. we should need two directories. few ftp users should have the permission to enter into one directory and remaining should enter into other directory. while entering into the specific directory it should ask for the username and password.

EXAMPLE: there are main1 and main2 are two directories in the FTP server.. and we have ftp1 , ftp2, ftp3, ftp4 and ftp5 are five ftp users are there.
ftp1 and ftp2 should have the permission to enter into the main1
ftp3,ftp4 and ftp5 should have the permission to enter into the main2
every time it should check by the user password...




please can you any one help me or can you show me some other way????????????????????????
 
Old 02-03-2012, 03:07 PM   #2
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 26

Rep: Reputation: Disabled
try to use ACL on grant access to the dir
 
Old 02-03-2012, 04:04 PM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,608

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hi,

You should mention your distro and the ftp server you're running

Regards
 
Old 02-03-2012, 11:53 PM   #4
deepak_message
Member
 
Registered: Oct 2007
Posts: 102

Rep: Reputation: 15
you may chnage the home directory using -d for the users.
 
Old 02-07-2012, 07:56 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,041
Blog Entries: 4

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by satyadev75 View Post
hi linux user/admin,

I am using an FTP server. we should need two directories. few ftp users should have the permission to enter into one directory and remaining should enter into other directory. while entering into the specific directory it should ask for the username and password.

EXAMPLE: there are main1 and main2 are two directories in the FTP server.. and we have ftp1 , ftp2, ftp3, ftp4 and ftp5 are five ftp users are there.
ftp1 and ftp2 should have the permission to enter into the main1
ftp3,ftp4 and ftp5 should have the permission to enter into the main2
every time it should check by the user password...




please can you any one help me or can you show me some other way????????????????????????

every user by default logs into their home directory when they give their credentials while logging in ftp server
so you need to specify the default place where the user has to go after logging in

this is how to do this
Code:
#vi vsftpd.conf
anonymous_enable=NO
user_config_dir=/etc/vsftpd_user_conf

#mkdir /etc/vsftpd_user_conf
#cd /etc/vsftpd_user_conf
#vi user1
local_root=/(path where user1 wil log in)
create similar files for all the users and give their local_root
 
1 members found this post helpful.
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share access to single folder in user home dir? duffme Linux - Security 1 11-13-2011 11:29 PM
[SOLVED] Renaming a folder which is default folder for FTP account rjo98 Linux - Newbie 6 02-11-2011 09:30 AM
FTP Folder accessible by multiple users question JohnnyAvocado Linux - Networking 1 01-13-2007 07:39 AM
LXer: Linux Internet Cafe Software Allows Multiple Users To Share Single ... LXer Syndicated Linux News 0 09-24-2006 09:54 PM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 06:07 AM


All times are GMT -5. The time now is 04:53 PM.

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
Open Source Consulting | Domain Registration