Beginner mode for DWC?
-
Hi all,
I'm looking for a way to use Duet Web Control (DWC) in a secure mode or block certain functions. Does anyone have experience with this or know of a solution?
Specifically, I've got a printer that I've converted to Duet3d and I'd like to make it available to my students, who are beginners in 3D printing. But I'm worried that DWC is too extensive and could lead to accidental changes to the config, for example. Is there a way to lock some areas or functions in dwc with a passkey or something?
I look forward to your answers and suggestions!
-
@trulm its been requested before but there isn't any functionality like this.
Best thing is have a backup of the SD card to hand just in case! -
@jay_s_uk OKay, that`s sad. But thanks for your quick supply!
-
@trulm You can make the system files read-only both in SBC and standalone mode. If you are using your board in standalone mode, you need to eject the microSD card, put it in a PC, and toggle the "read-only" flag of the files you wish to protect using a file explorer (in directory
sys
). In SBC mode, you can connect via SSH and remove thew
flag from the files in/opt/dsf/sd/sys
usingchmod
. -
@chrishamm That solution wont work completely, I tested it. By putting the files on read only mode, they are not protected from the user dwc. DWC (I might be wrong about whi is doing this ) open the files, reads them, and I have seen they are modified on their atributes.
What I did and worked @trulm (my situation is the same as you) is changing the sticky bits on the files;
sudo chattr +i /opt/dsf/sd/sys/*.g
sudo chattr -i /opt/dsf/sd/sys/config-override.gThis bit makes the files imposible to be modified. Do the same with the macros and the filaments directories.
Also, I have modified the html files on DWC deleting the links to the areas I didnt want my student even look, like for example I deleted the posibility to manually introduce a temperature for the hotend and I also deleted the fill area in the console . In that way students can modified temperature, can not enter gcode comands either ,)