Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
xml
permissions.xml 0.2 kB 1 05-Dec-2023 05:32 Ben Spink
xml
user.xml 0.2 kB 1 05-Dec-2023 05:32 Ben Spink
xml
vfs_items.xml 0.3 kB 1 05-Dec-2023 05:32 Ben Spink

This page (revision-68) was last changed on 22-May-2025 04:47 by krivacsz

This page was created on 05-Dec-2023 05:32 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 6 changed one line
}}}
}}}\\
At line 12 added one line
user vfs_add MainUsers user3 path=/home/subfolder/ privs=(read)(resume)(view)
At line 14 added one line
user vfs_delete MainUsers user3 path=/home/subfolder/ privs=(read)(resume)(view)
At line 17 changed 13 lines
}}}
Where:
"path" is the FTP style path to the folder, relative to the user's virtual root, "/". If it's single VFS , then path is to be "/" indeed, otherwise we'll create a Virtual root item, read only, the true VFS will be added below.
"privs" the user VFS folder permissions, can be any combination of (read)(write)(view)(delete)(deletedir)(makedir)(rename)(resume)(share)(slideshow)(invisible)(ratio)
(replicate)(locked) , for details see our user VFS related docs page.
"url" the true URL pointing to the folder itself.
}}}\\
Where:\\
__path__ is the FTP style path to the folder, relative to the user's virtual root, "/". If it's single VFS , then path is to be "/" indeed, otherwise we'll create a Virtual root item, read only, the true VFS will be added below.\\
\\
__privs__ the user VFS folder permissions, can be any combination of __(read)(write)(view)(delete)(deletedir)(makedir)(rename)(resume)(share)(slideshow)(invisible)(ratio)(replicate)(locked)__, for details see our user [VFS] related docs page.\\
\\
__url__ the true URL pointing to the folder itself. \\
\\
__Managing Server's Files__:\\
\\
These commands require an admin user. They allow administrators to perform file operations directly on the server’s file system, such as createing, renaming, or deleting folders. Use them with caution, as changes affect actual server data.\\
Template:\\
{{{
user adminAction <<action>> <<path>> <<name>>
or
user adminAction <<action>> <<path>> <<name>> <<new name>>
}}}\\
Examples:\\
{{{
user adminAction newFolder /home/ test_subfolder
user adminAction duplicateItem /home/ test_subfolder
user adminAction renameItem /home/ test_subfolder test_subfolder_new
user adminAction deleteItem /home/ test_subfolder_new
}}}\\
\\
__Managing User Folder Permissions:__\\
\\
Template:\\
{{{
user <<action>> <<user connection group>> <<username>> path=<<the path>> privs=<<the custom privs>>
}}}\\
\\
{{{
user vfs_add MainUsers user3 path=/home/subfolder/ privs=(read)(resume)(view)
}}}\\
It is used to give a specific user (user3) access to a subfolder within an existing (VFS). It does not replace the user’s existing folder access, but simply adds a new set of permissions—allowing user3 to have different permissions specifically for the /home/subfolder/ location.\\
\\
{{{
user vfs_delete MainUsers user3 path=/home/subfolder/ privs=(read)(resume)(view)
}}}\\
It is used to remove specific permissions for user3 on the /home/subfolder/ location. It does not remove the entire folder access, but only the specified permissions.\\
\\
__Managing Groups and Inheritance:__\\
At line 39 changed 2 lines
}}}
You can use the user API call in CrushTunnel.jar to set the field: allowed_protocols to configure Port restrictions
}}}\\
\\
__Managing allowed protocols__:\\
You can use the user API call in CrushTunnel.jar to set the field: allowed_protocols to configure Port restrictions\\
At line 43 changed one line
}}}
}}}\\
At line 45 changed 3 lines
sftp:0,https:0,
sftp:0,https:0,\\
\\
__Managing Jobs:__\\
At line 51 changed 2 lines
}}}
}}}\\
At line 54 removed 2 lines
\\
\\
At line 117 changed 2 lines
}}}
''(long line, so get it all)''
}}}\\
''(long line, so get it all)''\\
At line 151 added 6 lines
Add a specific permission to a subfolder:\\
{{{
curl -d command=setUserItem -d data_action=update_vfs -d xmlItem=user -d serverGroup=MainUsers -d username=user1 -d permissions@permissions.XML -u crushadmin:passw http://127.0.0.1:8080/
}}}\\
''(long line, so get it all)''\\
\\
At line 197 changed one line
curl -d command=modifyIpRestrictions -d start_ip=192.168.0.5 -d stop_ip=192.168.0.5 -d type=A -d method=add -u admin:passhttp://127.0.0.1:9090
curl -d command=modifyIpRestrictions -d start_ip=192.168.0.5 -d stop_ip=192.168.0.5 -d type=A -d method=add -u admin:pass http://127.0.0.1:9090
At line 201 changed one line
curl -d command=modifyIpRestrictions -d start_ip=192.168.0.5 -d stop_ip=192.168.0.5 -d type=A -d method=delete -u admin:passhttp://127.0.0.1:9090
curl -d command=modifyIpRestrictions -d start_ip=192.168.0.5 -d stop_ip=192.168.0.5 -d type=A -d method=delete -u admin:pass http://127.0.0.1:9090
Version Date Modified Size Author Changes ... Change note
68 22-May-2025 04:47 11.061 kB krivacsz to previous
67 22-May-2025 04:40 11.045 kB krivacsz to previous | to last
66 22-May-2025 04:29 10.773 kB krivacsz to previous | to last
65 22-May-2025 04:21 10.778 kB krivacsz to previous | to last
64 22-May-2025 04:21 10.774 kB krivacsz to previous | to last
63 22-May-2025 04:17 10.644 kB krivacsz to previous | to last
62 22-May-2025 04:16 10.631 kB krivacsz to previous | to last
61 22-May-2025 04:09 10.495 kB krivacsz to previous | to last
« This page (revision-68) was last changed on 22-May-2025 04:47 by krivacsz
G’day (anonymous guest)
CrushFTP11 | What's New

Referenced by
LeftMenu

JSPWiki