LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2011, 07:13 PM   #1
jwilliams
LQ Newbie
 
Registered: Sep 2010
Location: Northern California
Distribution: Ubuntu 9.1, Debian
Posts: 4

Rep: Reputation: 0
File and directory permissions for FTP server multiple users (howto)


Hi, I inherited a Fedora 10 FTP server, initially there was only one FTP user account with one password but things have changed and a request has been made to setup different FTP user accounts and limit access for each user to one directory.

I took the simple approach and assigned each "drwx" permissions and it basically works but in testing I notice two things:
1 - Each user can change directories up one level and see the other directory names. The good news is you get a 550 error unable to change directory to any but your own.
2 - More perplexing to me is each of the users can change to the root "/" directory and can change to some of the directories and even "get" some of the files.

Probably something fundamental I've overlooked or just not aware of. I'm not a Unix/Linux sysadmin I'm only asked to play one on occasions and I have a number of systems in my lab mostly Ubuntu 9.10.

Maybe there's a better way to setup an FTP server I'm not aware of. Thanks for any pointer.
Regards,
jw
 
Old 11-01-2011, 10:03 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Would be good to know which ftp server and version; guessing vsftp.
You could try
Code:
rpm -qa|grep -i ftp
Also it usually tells you when you connect.
If it IS vsftpd, try these links https://security.appspot.com/vsftpd/vsftpd_conf.html http://www.linuxhomenetworking.com/w...P_Server_Setup
 
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup file permissions for multiple groups/users that use Windows AND Linux unassassinable Linux - Security 4 11-02-2010 09:00 PM
Help on setting up multiple FTP users on Ubuntu Server 9.04 with proFTPD Jamie Kugelmann Linux - Server 1 12-23-2009 03:31 AM
sending a file thru ftp to multiple users at a time.... visitnag Linux - Desktop 7 02-05-2009 11:57 AM
all users can see the all directory in my ftp server padideh Linux - Server 3 03-24-2007 06:01 AM
ftp: howto work with file-permissions Schmurff Mandriva 1 06-20-2004 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration