Ftp permissions

Ftp permissions

Posted by: Maikelmix
Posted on: 2007-02-16 05:03:00

I know how create a ftp account (only ftp access, no web) but my question is. I want to have 2 users:

First user .- Super admin (all permissions: write, delete, etc...)
Second user .- Only write and read permissions.

How can i do that?

Re: Ftp permissions

Posted by: rlparker
Posted on: 2007-02-16 06:37:00

"write" permission *is* "delete" permission. wink

--rlparker

Re: Ftp permissions

Posted by: Maikelmix
Posted on: 2007-02-16 07:36:00

I want users can upload and download, but they can delete.

How can i do ?

Re: Ftp permissions

Posted by: Mousee
Posted on: 2007-02-16 07:56:00

You can't. Though ProFTPd supports such permissions (just checked), we can't modify the configuration file for it.

Unless there is something I'm unaware of anyways.

Edited by Mousee on 02/16/07 07:58 AM (server time).

Re: Ftp permissions

Posted by: BUGabundo
Posted on: 2007-02-16 10:20:00

actually u can create a folder whose group includes both users, give it 775 or 770.
that way both users can write in there.
on you files, either change the group owner, or chmod 700.
also make sure that the folder before the folder u created only was 755, or 750, so the 2 user cant delete that folder. like this:

folder _________________________ group __ permitions
/home/user/folder1/ _____________ group1 __ 750
/home/user/folder1/folder2/ _______ group1 __ 770
/home/user/folder1/folder2/file.txt __ group1 __ 700
/home/user/folder1/folder2/file2.txt __ group2 __ 770

Re: Ftp permissions

Posted by: mao
Posted on: 2007-02-16 14:11:00

What about umask?
umask is the unix command that set what kind of permission has the file you created.
So if you set only read permission, when someone upload a file then he (and everyone else) cannot delete it.

This is just theory 'cause I don't have a DH account yet
:-)

Tags: ftp accountftp access