LinuxQuestions.org
Review your favorite Linux distribution.
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 10-22-2007, 02:54 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
How can Give particular location to Access in FTP


Hello Frineds,

I am using VSFTP in office. I want to give access permission of particular folder not their home folder.by default can access home folder.
that is ...
ABC is user name, I want to set ftp access permission on /data folder only. not their home folder.
how it is possible in /etc/vsftpd/vsftpd.conf.

Please let me know.

Thanks in Advance..
 
Old 10-23-2007, 05:08 PM   #2
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
I'm not 100% sure, but I believe that when you create a user using 'useradd some_user_name' that the created user by default has FTP access to the directory called /home/some_user_name. The issue therefore appears to be not a vsftpd configuration but rather an issue with the behavior or the 'useradd' command.

This user's home folder is automatically created by the useradd cmd and has user=some_user_name and group=some_user_name. To deny access to the some_user_name, you'd need to change the permissions on that folder. This might work:
Code:
chown root.root /home/some_user_name
chmod 600 /home/some_user_name
then if you want to give access to the folder /home/some_user_name/data you would need to give that user permissions to the folder:
Code:
chown some_user_name.some_user_name /home/some_user_name/data
chmod 600 /home/some_user_name
I could be wrong about vsftpd config....there may be *some* way to do it.
 
  


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 do I give access to an ftp user to the var/www/html dir shootinstr8 Linux - Newbie 1 10-13-2006 03:32 AM
can some one give me the name of few FTP programs in Linux ? indian Linux - Software 2 09-17-2004 06:18 AM
How do i give permissions on ftp server? Soujiro Linux - Software 1 04-22-2004 11:27 PM
how to give root ftp access blaha Linux - Software 3 05-30-2003 09:09 PM
Why does ftp give kerberos warnings? SForsgren Linux - General 0 04-27-2003 02:40 PM

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

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