Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Beginner mode for DWC?

    Scheduled Pinned Locked Moved
    Duet Web Control
    4
    5
    180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • trulmundefined
      trulm
      last edited by

      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!

      jay_s_ukundefined chrishammundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @trulm
        last edited by

        @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!

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        trulmundefined 1 Reply Last reply Reply Quote 0
        • trulmundefined
          trulm @jay_s_uk
          last edited by

          @jay_s_uk OKay, that`s sad. But thanks for your quick supply!

          1 Reply Last reply Reply Quote 1
          • chrishammundefined
            chrishamm administrators @trulm
            last edited by

            @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 the w flag from the files in /opt/dsf/sd/sys using chmod.

            Duet software engineer

            Tinchusundefined 1 Reply Last reply Reply Quote 1
            • Tinchusundefined
              Tinchus @chrishamm
              last edited by

              @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.g

              This 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 ,)

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA