LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-14-2011, 09:49 AM   #1
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
VSFTPD Permission Configuration.


Hi Masters,

Thanks in Advance,

This is the first time iam trying to configure ftp using VSFTP

in that iam trying to access a path using multiple users.

for example:

/var/www/html

using this users:

anish
test
redhat

For that i created a group ftpusers and add this 3 users in that group.

so that i can able to login the same path using 3 different users

but how to do this:?

For anish - read permission alone

For test - Read/Write permission

for redhat - Read-write-executable permission.

how To do this can any guide me to solve this thread
 
Old 10-15-2011, 02:55 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
There is no point in setting "execute" permission for a file that's only accessed via ftp.
But maybe these users are allowed to login to shell.

Using only the standard file permissions you could set redhat as owner with permission rwx, group=ftpusers permission rw-. User "anish" shall not be member of the group ftpusers.
Permissions will then be rwxrw-r--
 
Old 10-15-2011, 05:31 AM   #3
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Original Poster
Rep: Reputation: 10
Hi,

Using SETFACL i can able to do all my requirement,

but any one help me?? using setfacl if i set read permission alone to a user means i cannot able to login itself :-(

How to overcome this issue??
 
Old 10-15-2011, 05:47 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by anishkumarv View Post
if i set read permission alone to a user means i cannot able to login itself :-(
Ahh, sorry didn't realize you wanted to set users home directory.
There are issues with that, one is what you've noticed - without write permissions on homedir a user can't log in.
There is nothing you can do to change this - homedir must be writable.
Also, if several users share same homedir you must make sure A) all belong to same group and B) set umask for these users to 002, so group always has write access.

Another approach is to have separate homedirs and then set up one shared directory for ftp.
This I haven't tried personally, but I think you can use the option "local_root".
From the man-page:
local_root
This option represents a directory which vsftpd will try to change into after a local (i.e. non-anonymous) login
Also check this thread:
http://www.linuxquestions.org/questi...server-167202/
 
  


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
vsftpd users permission manish_meet_in Linux - General 3 07-23-2009 01:30 AM
vsftpd and write permission noir911 Linux - Server 0 04-01-2009 12:10 AM
VSFTPD permission issue villumanati Linux - Server 2 12-29-2008 06:41 AM
vsftpd / Apache permission tbarsness Linux - Security 3 04-18-2005 07:50 AM
Permission Denied with VSFTPD whitetiger0990 Linux - Software 4 01-01-2005 06:30 PM

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

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