How to add a new users in proftpd server?

Hi,

I have installed proftpd server in my amazon instance and how to enable a new user to access the proftpd.

1. How to add or delete a users 

2. how to enable a particular user to access particular folder

Regards
Paulwintech

I don't think there's a special kind of 'proftpd user', UNIX usernames and proftpd usernames match up... The usual file access permissions apply.

Hi,

No im able to share only the user home directory. For example i need to share a particular folder for user1 & user2 and restrict user3

please let me know how can i do it?

Regards
Paulwintech

---------- Post updated 03-20-13 at 11:13 AM ---------- Previous update was 03-19-13 at 01:47 PM ----------

Hi,

Please some body help me on this

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

You can restrict their access to files in UNIX by using UNIX file access restrictions.

Create a 'shared' group and put user1 and user2 in it, but not user3. Then change the ownership of the directory, and restrict file access from other users, but allow the group.

groupadd shared # Create a new user group named 'shared'
usermod -a -G shared user1 # Add user1 to the group
usermod -a -G shared user2 # Add user2 to the group

chown :shared /path/to/directory # Make the group-owner of the folder 'shared'
chmod 770 /path/to/directory # The dir's owner, and the group, can write, but not anyone else.

That way, people in the 'shared' group can write to it, or the folder's own owner, but not anyone else.

As for how to get to the files with FTP, the obvious way would be to change their home directories, but if they use shell logins too, that's not so good... You can check if they belong to the 'shared' group and force them into that folder like this:

<IfGroup shared>
DefaultRoot /path/to/directory
</IfGroup>

If your filesystem supports it, you can also use ACLs to granulate user access to specific files/folders.