LinuxQuestions.org
Help answer threads with 0 replies.
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 12-10-2021, 01:08 AM   #1
crosscheck
LQ Newbie
 
Registered: Dec 2021
Posts: 2

Rep: Reputation: Disabled
vsFTPd configuration not quite right


I think I have vsFTPd ALMOST right.

I want 3 user types:
1) A single Download user only stuck in own directory.
2) A single Super user.
3) Many Upload/download users stuck only in their own directories.

I tried to remake a server, and I can get FTP working, but everyone is a super user which ain't cool because an untrustable can change a download file into something unwanted.

Can you review what I have configured wrong?

My /etc/vsftpd/vsftpd.conf: https://pastebin.com/RXxLQDqD

My user assignments: https://pastebin.com/cdi1Eqxy

Thank you,
Crosscheck
 
Old 12-10-2021, 02:44 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
Aren't the directory permissions too restrictive?
Code:
sudo chmod 440 /home/K5Y0/ftp
sudo chmod 440 /home/K5Y0/ftp/upload
As it stands now, the user K5Y0 won't be able to upload anything to /home/K5Y0/ftp/upload. And won't be able to browse it as well.

Last edited by shruggy; 12-10-2021 at 02:49 AM.
 
Old 12-10-2021, 09:52 AM   #3
crosscheck
LQ Newbie
 
Registered: Dec 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
>As it stands now, the user K5Y0 won't be able to upload anything to /home/K5Y0/ftp/upload. And won't be able to browse it as well.

Wow, yeah you're right!

So it is working... And I learned stuff!

I only have one problem/question left then:

They can leave their home director and roam the entire ftp uploading/downloading stuff even system files.

How do I lock em in their home directory so they can't hit the .. and move up a directory node.

Thanks a ton!
Like no one is helping on other forums at all. Internet got bad since political hate bots rolled on it about 2yr ago.

,Crosscheck
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ICS Windows/Linux - Client not quite working right -.- Mmc245 Linux - Hardware 2 08-31-2005 08:23 AM
mysql and apache not working quite right shortname Linux - Networking 3 03-26-2005 04:24 PM
LaTeX-Printed not so quite right Baix Linux - Software 2 06-24-2004 04:28 AM
apache .htaccess basic authentication not working quite right kleptophobiac Linux - Software 3 01-10-2004 02:43 PM
MDK9.2 - Menu system is not quite right pete_bogg Mandriva 1 11-23-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 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