LinuxQuestions.org
Review your favorite Linux distribution.
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 08-08-2006, 03:44 PM   #1
Dasflipz
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Simple FTP server setup


Or not so simple?

I am somewhat new to linux and am wanting to do a pretty basic setup with my Ubuntu-server. I want to install an FTP server (vsftp, Proftp, whatever) that I can create a user(s) and have that user have access to a folder (/data/share). The user will need to be able to read/write as well and create new folders within. I do not want them to be able to browse the rest of my server however.

This seems simple enough and yet all I can find online is how to set up a user to be locked into their user folder.

Any help would be ver much appreciated.


 
Old 08-08-2006, 03:47 PM   #2
Maeltor
Member
 
Registered: Mar 2004
Location: Boise
Distribution: CentOS 5
Posts: 69

Rep: Reputation: 15
Hi

I've been helping him with this problem. We initially used VSFTP which I like for its simple configuration and security, but as far as extended features it seemed to be lacking (to do what we want to do).

We are looking at PROFTP right now but if there is a better free solution that provides less bloat and a secure setup we would greatly appreciate it.
 
Old 08-08-2006, 03:48 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
The rest of what you want is permissions related. Just give the users suitable permissions in the folder they can access.
 
Old 08-08-2006, 03:52 PM   #4
Maeltor
Member
 
Registered: Mar 2004
Location: Boise
Distribution: CentOS 5
Posts: 69

Rep: Reputation: 15
Will that lock them from being able to view outside their folder?
Also, it still requires us to add a user to the system does it not?
 
Old 08-08-2006, 04:09 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I thought you already had locking them in a folder figured out. If they're already a user on the system, I think they'll have whatever privledges they normally might in their /home directory. All "chroot" functions are managed from vsftpd.conf

For a complete list of those functions ... $ man vsftpd.conf
 
Old 08-08-2006, 05:28 PM   #6
Maeltor
Member
 
Registered: Mar 2004
Location: Boise
Distribution: CentOS 5
Posts: 69

Rep: Reputation: 15
K I think i got it locked down now. The FTP users are using a shared home dir and are chrooted to that directory with all the access they need.

The only problem now, is that my ftpuser i created is able to login to a shell on the server, which I DONT want them to be able to do!
I tried setting their shell to /bin/false, which killed their shell login successfully, BUT also kills their ability to login to VSFTPD! Is there a work around for this?
 
Old 08-08-2006, 05:44 PM   #7
Maeltor
Member
 
Registered: Mar 2004
Location: Boise
Distribution: CentOS 5
Posts: 69

Rep: Reputation: 15
Nevermind, figured it out.

Used PAM & SSHD to restrict access. Local access to the server is secured and nothing else is running but SSH and FTP for now.
 
  


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
A Simple Ftp Server Suse??? Dimitriy Linux - Networking 5 06-09-2006 07:54 PM
Best flavour for a simple ftp server mig.gentry Linux - Newbie 3 03-27-2005 05:41 PM
simple ftp server with gui? NonSumPisces Linux - Software 2 07-29-2004 05:41 PM
How do I setup a simple name server? jrbush82 Linux - Networking 4 07-18-2004 08:14 PM
Simple Ftp server recommendations Noved Linux - General 5 06-28-2002 12:13 PM

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

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