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-44) was last changed on 24-Jun-2024 06:40 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 10 added one line
user user_update MainUsers user3 email=support@CrushFTP.com first_name=John last_name=Doe
At line 13 added 4 lines
user user_delete MainUsers user3
user list MainUsers users
user list MainUsers groups
user list MainUsers inheritance
At line 15 changed one line
"path" is the FTP style path to the folder, relative to the user's virtual root, "/".
"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.
At line 40 added 8 lines
You can use the user API call in CrushTunnel.jar to set the field: allowed_protocols to configure Port restrictions
{{{
ftp:0,ftps:0,sftp:0,http:0,https:0,webdav:0,
}}}
That is the default, but if you only wanted to allow sftp and https, you could do:
sftp:0,https:0,
At line 37 changed one line
job remote MyFindJob
job remote MyFindJob param1=test param2=test
At line 52 added one line
At line 88 added 7 lines
!Delete a user
----
{{{
curl -d command=setUserItem -d data_action=delete -d xmlItem=user -d serverGroup=MainUsers -d username=curl_user http://crushadmin:pass@127.0.0.1:8080/
}}}
\\
----
At line 105 added one line
Updating a user with certain properties, the missing/updated xml keys can be supplied in line, below example sets the password as the literal "thisismypass"
At line 107 added 6 lines
{{{
curl -d command=setUserItem -d data_action=update -d xmlItem=user -d serverGroup=MainUsers -d username=curl_user --data-urlencode 'user=<?xml+version="1.0"+encoding="UTF-8"?>+<user+type="properties"><password>thisismypass</password></user>' http://crushadmin:pass@127.0.0.1:8080/
}}}
''(long line, so get it all)''
\\
\\
At line 137 changed one line
\\
!!Job:\\
\\
At line 172 added 11 lines
Run a job via command line:
{{{
java -jar CrushTunnel.jar inline_script "connect https://admin:pass@server.com/;job remote MyFindJob param1=test;quit;"
}}}
or from an execute task of CrushTask do:
{{{
separator: ~
command: java
Parameters: -jar~CrushTunnel.jar~inline_script~connect https://admin:pass@server.com/;job remote MyFindJob param1=test;quit;
}}}
At line 184 added 30 lines
\\
!!IP Restrictions:\\
\\
Unban an ip (only for full admin users):\\
\\
{{{
curl -d command=unban -d ip=192.168.0.5 -u crushadmin:pass http://127.0.0.1:8080/
}}}\\
\\
\\
Modify IP restrictions (only for full admin users):\\
\\
{{{
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
}}}\\
\\
{{{
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
}}}\\
\\
!!Update:\\
\\
Perform update:
{{{
DMZ:
curl -d command=updateNow -u crushadmin:pass https://myserver.com/dmz_instance_name/
INTERNAL:
curl -d command=updateNow -u crushadmin:pass https://myserver.com/
}}}
Version Date Modified Size Author Changes ... Change note
44 24-Jun-2024 06:40 9.011 kB krivacsz to previous
43 24-Jun-2024 06:30 9.009 kB krivacsz to previous | to last
42 24-Jun-2024 06:29 8.993 kB krivacsz to previous | to last
41 24-Jun-2024 06:28 8.976 kB krivacsz to previous | to last
« This page (revision-44) was last changed on 24-Jun-2024 06:40 by krivacsz
G’day (anonymous guest)
CrushFTP11 | What's New

Referenced by
LeftMenu

JSPWiki