LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-26-2006, 02:09 AM   #1
pikky2006
LQ Newbie
 
Registered: Jan 2006
Location: Delhi India
Distribution: Fedora Core Redhat9 RHEL ES/AS
Posts: 14

Rep: Reputation: 0
Adding a ftp user


HI ALL
I have configured vsftpd service in my server on redhat 9 .
I have given access to only one user and changed the local directory to /var/www/html because i wanted this user to access only html directory in my server . But the user is able to see all files and directories in my server and can download any file from the server . Please help me prevent my server accessed by this ftp user.
Thanking all
 
Old 05-26-2006, 07:13 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
you probably have to set the default root directory in the vsftpd configuration to lock them into the directory you want, in this case, /var/www/html. i use proftpd, but i'd imagine it's the same in vsftpd. the config file itself might even have instructions in the comments.

Last edited by slackhack; 05-26-2006 at 07:14 PM.
 
Old 05-28-2006, 08:26 PM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Hi pikky2006,

In vsftpd, you can jailed the user into current directory by adding this rules in your vsftpd.conf

chroot_local_user=YES

save your new configuration, restart your ftp server, it should jailed your user to /var/www/html and he/she cant get out of that location.

Hope this help you

Thanks
 
Old 05-30-2006, 06:01 AM   #4
madhugp
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
from NEW BIE

HI ALL,

PLZ TELL HOW TO POST A QUESTION, I REGISTRED IN THIS
SITE. WHERE IS THE OPTION TO POST NEW THREAD OR
NEW QUESTION. PLZ TELL. i AM ABLE TO SEND REPLY ONLY NOW.
 
Old 05-30-2006, 09:46 AM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally Posted by madhugp
HI ALL,

PLZ TELL HOW TO POST A QUESTION, I REGISTRED IN THIS
SITE. WHERE IS THE OPTION TO POST NEW THREAD OR
NEW QUESTION. PLZ TELL. i AM ABLE TO SEND REPLY ONLY NOW.
madhugp:

1. don't yell. typing in all caps is considered yelling and isn't appropriate in most situations.

2. to post a new thread, go to the forum you want -- newbie, for example, and click the button near the upper left hand corner of the forum that says "New Thread." the button looks like this.

a complete list of the LQ forums is here.

Last edited by slackhack; 05-30-2006 at 09:47 AM.
 
  


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
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
Adding an FTP install source to Yast mykrob Linux - Software 5 03-25-2005 06:14 PM
adding new ftp user through PHP winsonlee Programming 1 09-10-2003 04:19 AM
Adding FTP users in vsFTP groovybrandon Linux - Software 3 02-27-2003 09:16 AM
help with adding FTP users dkc_ace Linux - Software 1 01-10-2003 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:00 AM.

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