LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-27-2014, 05:41 AM   #1
hickehacke
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
Need help setting up ftp (vsftpd)


I have a file server (Pi w. Raspbian) with a project disk setup in my LAN.
I need to give FTP-access to one project folder at the server with files and folders, both created through LAN and uploaded/downloaded via FTP readable by anyone, both local and ftp-users (with rights to it of course).

I've created a "ftpuser" and a homefolder at the server, mounted /mnt/WORK/project-X in it.
Set up a FPT using vsftpd.

How should I set this up regarding to permissions, groups, etc?
Any way I try I either can't create folders and files from one of the users or they are not readable by some others.

You probably need more info regarding my setup so please ask.
 
Old 06-27-2014, 10:07 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
It sounds like you want a umask of 022 - look in vsftpd.conf.
 
Old 07-09-2014, 10:31 AM   #3
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Rep: Reputation: 0
1> chown -R ftp:ftp /home/ftp_username/
2> chmod 775 /home/ftp_username/
3> if you have selinux Enforcing mode then you should change it to Permissive or disabled.Otherwise use this :setsebool -P ftp_home_dir=1
4> now you can able to login using specific user credentials and now you can create file and dir under it.
5> also you can change other $HOME dir by using this methods :
# vi /etc/vsftpd/vsftpd.conf
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

# vi /etc/vsftpd/chroot_list
Ftpuser name

Hope it will solve your issue.
 
  


Reply



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
cant login via ftp(vsftpd) in centos 6.4 and cant start vsftpd SarahGurung Linux - Software 3 03-18-2013 08:35 AM
[SOLVED] Need help setting up "ftp only" user account with vsftpd GeekyAdam Linux - Software 2 06-11-2011 01:54 PM
Setting Up FTP client/server with vsftpd in Ubuntu 9.04 CircleDown Linux - Newbie 3 02-23-2010 06:01 PM
Setting up FTP access to vsftpd through RSA/SSH Key mchethan Linux - Newbie 1 02-25-2009 05:02 AM
Setting up secure FTP (trying vsftpd on RHEL 4) Xera Linux - General 11 11-07-2006 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:33 PM.

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