PDA

View Full Version : User permissions - Tried solutions found in search


Somnus
01-04-2005, 10:35 AM
For some reason when I make a new user on my server they can not upload, and can only download certain things, yet they have permission to do it all.

The only thing that I have tried that has worked was editting the following:

[VFS]
###
# Default attributes for files & directories
#
# Required Parameters: <filemode> <owner uid>:<owner gid>
#
Default_Directory_Attributes = 777 0:0
Default_File_Attributes = 777 0:0

Is there a better way of handling this?

I have the following dir tree and would like to do the following:

Applications - Allow all to download, only M users to delete
Games - Same
Movies - Same
Music - Same
Upload - This is the only folder allowed to be uploaded in by regular users, 1M users can upload anywhere. And the same attributes as above.

Can anyone help with this? Would it be easier to just have separate vfs files for different groups/users?

Also what is the best "gui" to use with ioFTPd? I have tried ioGUI, and ioISOTOPE.

Any help would be appreciated.

EwarWoo
01-04-2005, 05:31 PM
What have you got in folder permissions?

What error are they getting when trying to upload and what scripts are you using on the OnUpload event?

Somnus
01-04-2005, 08:57 PM
This is what I have:

###
# Detailed permissions for directories
#
# priviledge = <virtual path> <rights>
#
Upload = * *
Resume = * *
Download = * *
MakeDir = * *
RemoveOwnDir = * *
RemoveDir = * 1VM
Rename = * 1VM
RenameOwn = * *
Overwrite = * 1VM
Delete = * 1VM
DeleteOwn = * *
NoStats = * =lSpeed !*

The error they get is permission denied.

Zer0Racer
01-14-2005, 06:31 AM
suggestion..

[VFS]
Upload = /Upload/* *
Upload = * 1M
Resume = * *
Download = * *
MakeDir = * *
RemoveOwnDir = * M
RemoveDir = * M
Rename = * M
RenameOwn = * M
Overwrite = * 1M
Delete = * M
DeleteOwn = * M
NoStats = * =lSpeed !*

and run:
site chmod 777 Applications
site chmod 777 Games
site chmod 777 Movies
site chmod 777 Music
site chmod 777 Upload
(this is needed to allow uploads in those dirs by other users than M, to allow 1 to upload)

Regular users will be able to upload in Upload only. All dirs are writable but only users with flags 1 or M can upload. Only M users will be able to delete files and remove dirs. Regular users and 1 users will not be able to delete or rename what they have uploaded. 1 users are allowed to overwrite files.

If you want to set the permissions a bit different, i.e. allow 1 users to delete stuff they've uploaded set DeleteOwn = * 1M. You probably understand by now.

Good luck!

EwarWoo
01-15-2005, 05:27 AM
The way you have it now does it all except denying upload in / and thats a pain in arse to do via config, easier to get newdir by bounty and enable the deny upload in root option.