Hi,
It seems that wen we create a new user with a new directory in the web admin interface, the folder is created with 755 permissions ?
Is there anyway to set the default permissions to 775 ?
I changed the default permissions in Server / Settings /General settings / Default permissions, but this seems to be only applied when users are uploading new files and folders in tge existing root directory.
For some users, we use the API and adding os.execute("chmod 775 myfolder") after c_Mkdir works fine (as suggested in this forum), but I also need this behaviour when creating users through the web interface.
I'm using WingFTP 4.3.8 on Debian Wheezy.
Thank you for your help,
Regards,
Fred
Root directory permission when creating user from admin inte
-
- Posts: 23
- Joined: Mon Jul 02, 2012 9:29 am
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: Root directory permission when creating user from admin
You can set the default folder permissions under "Server > Settings > General Settings > Miscellaneous".
-
- Posts: 23
- Joined: Mon Jul 02, 2012 9:29 am
Re: Root directory permission when creating user from admin
Hi,
Thank you for your answer.
However, as I said in my post, this is already configured and doesn't work to set default permission from admin interface when adding a new directory to a user. It only works when user is uploading files or creating directories when logged through ftp.
Regards,
Fred
Thank you for your answer.
However, as I said in my post, this is already configured and doesn't work to set default permission from admin interface when adding a new directory to a user. It only works when user is uploading files or creating directories when logged through ftp.
Regards,
Fred
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: Root directory permission when creating user from admin
OK, maybe you can modify the file "webadmin/admin_mkdir.html", replace this line:
local result = c_MkDir(fullpath)
into:
local result = c_MkDir(fullpath)
os.execute("chmod 775 "..fullpath)
local result = c_MkDir(fullpath)
into:
local result = c_MkDir(fullpath)
os.execute("chmod 775 "..fullpath)
-
- Posts: 23
- Joined: Mon Jul 02, 2012 9:29 am
Re: Root directory permission when creating user from admin
Thank you, it works fine with this piece of code :-)
Would it be possible to add it in a future release (using the default parameters specified in General options) ?
Regards,
Fred
Would it be possible to add it in a future release (using the default parameters specified in General options) ?
Regards,
Fred
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: Root directory permission when creating user from admin
I think you can modify it by yourself, because it is a personal requirement.
-
- Posts: 23
- Joined: Mon Jul 02, 2012 9:29 am
Re: Root directory permission when creating user from admin
Yes, that's what I did, but this modification will be overwritten on each upgrade.