LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VSFTPD Permission Configuration. (https://www.linuxquestions.org/questions/linux-newbie-8/vsftpd-permission-configuration-908177/)

anishkumarv 10-14-2011 09:49 AM

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

pingu 10-15-2011 02:55 AM

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--

anishkumarv 10-15-2011 05:31 AM

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??

pingu 10-15-2011 05:47 AM

Quote:

Originally Posted by anishkumarv (Post 4499065)
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/


All times are GMT -5. The time now is 08:30 AM.