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 04-25-2006, 10:02 AM   #1
crime
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Rep: Reputation: 0
ftp user.


hi.

my friend wanted me a place where he can upload his files. I want to give him a folder from my linux box.

proFtpd is installed on my linux. I added a user for my friend. Its home dir. is "/home/john/" .. but i want to hinder this user can go out from its homedir "john" .. Example, when he want to go /home/ , or / , it will be stopped.

what can i do.

Thanks.
 
Old 04-25-2006, 10:09 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi!

You will need to find and edit your proftpd.conf (it usually is at /etc/). Once you find that file, either add the following line or uncomment this line:

DefaultRoot ~

That should do it. You may need to restart the proftpd server.

Good luck!
 
Old 04-25-2006, 10:10 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

You could set this up with the proftpd configuration file (/etc/proftpd.conf).

Take a look at the DefaultRoot directive.

Here's what proftpf has to say about it: ProFTPD - DefaultRoot

Hope this helps.
 
Old 04-26-2006, 10:16 AM   #4
crime
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Original Poster
Rep: Reputation: 0
thanks a lot!

How about vsFTPd?
 
Old 04-26-2006, 10:31 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

The answer is in the manpage..........

Ok, just this time: chroot_local_user=yes

Manpage of VSFTPD.CONF

Hope this helps.
 
  


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
when I use ftp://user@ftp.blah.com it works. But when I type just ftp.blah.com says.. hunterhunter Linux - General 15 03-05-2014 09:12 AM
FTP User? carlosinfl Linux - Networking 2 12-13-2005 11:47 AM
ftp only user chongluo Linux - Newbie 3 03-25-2004 12:57 PM
Only Allow ftp for a user kelper Linux - Software 1 03-10-2003 06:04 AM
ftp user dsgdevil Linux - General 11 02-05-2003 08:39 PM


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