PDA

View Full Version : Permisions


raum
10-30-2004, 08:40 AM
i have started lookng for a good ftp server and this far i like ioFTPD but i have a problem.

If i add a user there us no way in h*ll 3he can upload :(
When i add him he goes into a NoGroup group, and i have tried to move him abound.

In detailed permisions i have

Upload = /Upload/* *
Upload = * *
.
.
.

The thing i want is that all the users can uplaod in a "Upload" folder and not anywhere else.

Anyone with some ideas why this doesnt work?

Harm
10-30-2004, 08:42 AM
Have you tried this (http://www.ioftpd.com/kb/view.php?kbid=31) ?

raum
10-30-2004, 08:46 AM
yes i have but the thing is that the next step i to set up that users who can upload only can remove their own catalogues and files.

if i am not to tired 777 gives that permision to everybody?

Harm
10-30-2004, 09:46 AM
Not with settings like those:
[VFS]
RemoveOwnDir = * *
RemoveDir = * 1VM
Rename = * 1VM
RenameOwn = * *
Delete = * 1VM
DeleteOwn = * *

With those, only siteops, masters and VFS masters can edit files/dirs they don't own.

raum
10-30-2004, 10:28 AM
ah, actually that worked fine. Thanks!
But i wonder shouldn´t it be possbile to do it as i was trying first?

dink-puller
10-30-2004, 12:32 PM
Setting up folder permissions was the single most difficult part of setting up ioFTPD for me, I hope this helps someone else.
Login as M user.
Start with CHMOD and CHOWN to set all the ownership and default permissions for directories, then use the detailed permissions to add "detail" and exceptions. For example, most people would want to have several download directories and one upload directory. You want users to download from the download directories only and upload to the upload ones only. CHOWN -R to yourself and CHMOD 755 all your download directories, now nobody except you or M users can upload to them. CHMOD your upload folder to 777, now anybody can upload to that folder. Note: The default CHMOD for new directories is 755, unless you change ioFTPD.ini, so whenever someone makes a directory inside there, it will be CHMOD 755 and only that user will be able to upload to it, but they can make their own. Now you can edit the detailed permissions for directories and add exceptions like:
Download = /Uploads/* !*
to prevent downloading from the upload folder, and stuff like that.
There's more in the Knowledge Base about how to use wildcards for that, and advanced permissions.

raum
10-30-2004, 01:17 PM
thanks for all help. Now it is working just fine. I think that i will stick to this one :)