Slight mod to custom template and add remoteuseraccess files

This commit is contained in:
2025-05-15 12:52:41 +01:00
parent 8977d629e7
commit 386e602958
14 changed files with 1398 additions and 0 deletions

View File

@@ -0,0 +1,144 @@
//
// 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'
}
}
]
}

View File

@@ -0,0 +1,140 @@
//
// Generated by sm1-html-2-json5 version:0.5 Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-15 11:11:25
//
{
'PackageName': 'remoteuseraccess-params',
'prefix': '',
'MenuHeading': 'Miscellaneous',
'MenuDescription': 'remoteuseraccess-params',
'MenuNavigation': '2000 400',
'firstPanel': 'PARAMS',
'signalEvent': 'smeserver-remoteuseraccess-params-update',
'html': [
{
'Name': 'params',
'route': 'PARAMS',
'Header': 'Change user remote access settings',
'SubHeader': 'Manage remoteuseraccess-params settings:',
'Link1': {
'Type': 'Link',
'href': 'https://wiki.koozali.org/SME_Server:Download',
'title': 'https://wiki.koozali.org/SME_Server:Download'
},
'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.',
'Input1': {
'Type': 'Select',
'Value': '',
'Name': 'Shell',
'Label': 'Shell',
'Options': [
{
'Value': '',
'Text': ''
},
{
'Value': '/bin/bash',
'Text': '/bin/bash'
}
]
},
'Input2': {
'Type': 'Select',
'Value': '',
'Name': 'Sudoer',
'Label': 'Sudoer',
'Options': [
{
'Value': 'no',
'Text': 'No'
},
{
'Value': 'yes',
'Text': 'Yes'
}
]
},
'Input3': {
'Type': 'Select',
'Value': '',
'Name': 'VPNClientAccess',
'Label': 'VPNClientAccess',
'Options': [
{
'Value': 'no',
'Text': 'No'
},
{
'Value': 'yes',
'Text': 'Yes'
}
]
},
'Input4': {
'Type': 'Select',
'Value': '',
'Name': 'ChrootDir2',
'Label': 'ChrootDir2',
'Options': [
{
'Value': '',
'Text': ''
},
{
'Value': 'home',
'Text': '. ~/home'
},
{
'Value': '/home/e-smith/files',
'Text': '.. /home/e-smith/files'
},
{
'Value': '/home/e-smith/files/ibays/Primary',
'Text': 'Primary'
},
{
'Value': '/home/e-smith/files/ibays/Primary/files',
'Text': 'Primary/files'
},
{
'Value': '/home/e-smith/files/ibays/Primary/html',
'Text': 'Primary/html'
},
{
'Value': '/home/e-smith/files/ibays/mesdb',
'Text': 'mesdb'
},
{
'Value': '/home/e-smith/files/ibays/mesdb/files',
'Text': 'mesdb/files'
},
{
'Value': '/home/e-smith/files/ibays/mesdb/html',
'Text': 'mesdb/html'
}
]
},
'Input5': {
'Type': 'Text',
'Value': '/home/e-smith/files/users/cok1/home',
'Name': 'ChrootDir',
'Label': 'ChrootDir'
},
'Input6': {
'Type': 'Textarea',
'Value': '',
'Name': 'sshKeys',
'Label': 'sshKeys'
},
'Input7': {
'Type': 'Submit',
'Value': 'Save',
'Name': 'Next',
'Label': 'Next'
}
}
]
}

View File

@@ -0,0 +1,95 @@
//
// 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-table',
'prefix': '',
'MenuHeading': 'Miscellaneous',
'MenuDescription': 'remoteuseraccess-table',
'MenuNavigation': '2000 400',
'firstPanel': 'PARAMS',
'signalEvent': 'smeserver-remoteuseraccess-table-update',
'html': [
{
'Name': 'params',
'route': 'PARAMS',
'Header': 'Change user remote access settings',
'SubHeader': 'Current list of users',
'Link1': {
'Type': 'Link',
'href': 'https://wiki.koozali.org/SME_Server:Download',
'title': 'https://wiki.koozali.org/SME_Server:Download'
},
'Link2': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=brianr&FullName=Brian%20Read&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/brianr/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link3': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=cok1&FullName=Clare%20Park&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/cok1/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link4': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=cok2&FullName=Frank%20Park&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/cok2/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link5': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=dmarc&FullName=Dmarc%20Dmarc&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/dmarc/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link6': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=ecmw2025&FullName=ecmw%202025&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/ecmw2025/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link7': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=englishcountrymusicweekend&FullName=English%20Music%20Weekend&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/englishcountrymusicweekend/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link8': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=guest&FullName=Guest%20Guest&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/guest/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link9': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=katy&FullName=Katy%20Read&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/katy/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link10': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=more&FullName=More%204AllianceForFoodPurity&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/more/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link11': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=nikki&FullName=Nicola%20Escott&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/nikki/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link12': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=phil&FullName=Phil%20Fermor&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/phil/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link13': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=sheila&FullName=Sheila%20Read&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/sheila/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link14': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=smeserver&FullName=sme%20server&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/smeserver/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
},
'Link15': {
'Type': 'Link',
'href': 'remoteuseraccess?page=0&page_stack=&Next=Next&User=zara.healy&FullName=Zara%20Healy&Sudoer=no&Shell=&ChrootDir=/home/e-smith/files/users/zara.healy/home&VPNClientAccess=no&wherenext=PAGE_MODIFY',
'title': 'Modify'
}
}
]
}