SM2Gen/json5/Remoteuseraccess.json5

144 lines
4.5 KiB
Plaintext

//
// Generated by sm1-html-2-json5 version:0.5 Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-15 10:54:56
//
{
PackageName: 'Remoteuseraccess',
prefix: 'rua',
MenuHeading: 'User management',
MenuDescription: 'User Remote access',
MenuNavigation: '2000 50',
firstPanel: 'USERTABLE',
signalEvent: 'smeserver-remoteuseraccess-table-update',
html: [
{
Name: 'table',
route: 'USERTABLE',
Header: 'Change user remote access settings',
SubHeader: 'Current list of users',
Table1: {
Type: 'Table',
TableControl: 'getAllUsers',
TopHeadings: [
'Account',
'User Name',
'Shell Access',
'Sudo',
'SSH Keys',
'Chroot Path',
'RSSH + VPN Access',
'Modify'
],
Columns: [
'Account',
'User_Name',
'Shell_Access',
'Sudo',
'SSH_Keys',
'Chroot_Path',
'RSSH_+_VPN_Access',
'Modify'
]
}
},
{
Name: 'params',
route: 'PARAMS',
Header: 'Change user remote access settings',
SubHeader: 'Edit Remote User Access settings:',
Paragraph1: 'Enabling bash shell access for a user account poses a security risk. Only use this option if you know what you are doing. A safer option is to allow rssh access (sftp, ssh & rsync).',
Paragraph2: 'Sudo access allows users to execute commands with the permissions of the root account without knowing the root password. This is more desirable than passing around the root password. Setting Sudo to yes also sets the shell to bash',
Paragraph3: 'SHELL, VPN & FTP access for users depend on the settings in the Remote Access Panel being opened.',
Paragraph4: 'Select an FTP Chroot path from the drop down box or enter it in the text field, the selection will overwrite the text field.',
Paragraph5: 'Enter the public SSH Keys to allow ssh access without passwords, keys should be pasted as a single line, but they will wrap onto three or more lines in the display. To delete all keys type deletekeys.',
Input10 :{
Type: 'Text',
Name:'Account',
Label:'Account',
Readonly:'True',
Value:'Account'
},
Input11 :{
Type: 'Text',
Name: 'User_Name',
Label: 'User Name',
Readonly: 'True',
Value: 'User_Name'
},
Input1: {
Type: 'Select',
Value: '',
Name: 'Shell',
Label: 'Shell Access',
Options: [
{
Value: '',
Text: ''
},
{
Value: '/bin/bash',
Text: '/bin/bash'
}
]
},
Input2: {
Type: 'Select',
Value: '',
Name: 'Sudoer',
Label: 'Sudo Access',
Options: [
{
Value: 'no',
Text: 'No'
},
{
Value: 'yes',
Text: 'Yes'
}
]
},
Input3: {
Type: 'Select',
Value: '',
Name: 'VPNClientAccess',
Label: 'RSSH + VPN ClientAccess',
Options: [
{
Value: 'no',
Text: 'No'
},
{
Value: 'yes',
Text: 'Yes'
}
]
},
Input4: {
Type: 'Select',
Value: '',
Name: 'ChrootDir2',
Label: 'Select Chroot path',
Options: [{'Text':'getChrootdirOptions','Value':'getChrootdirOptions()'}]
},
Input5: {
Type: 'Text',
Value: '',
Name: 'ChrootDir',
Label: 'ChrootDir'
},
Input6: {
Type: 'Textarea',
Value: '',
Name: 'sshKeys',
Label: 'SSH Keys',
Width: '50',
Height: '10'
},
Input7: {
Type: 'Submit',
Value: 'Save',
Name: 'Save',
Label: 'Save'
}
}
]
}