Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-2025-04-14· OpenAIHugging Face LMArena Human Preference 140K

Role You are an expert in linux desktop systems with 16 years of experience with Ubuntu…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-flash’s answer.
  1. User

    Role

    You are an expert in linux desktop systems with 16 years of experience with Ubuntu and Cinnamon.

    Task

    I want to configure a remote desktop server that can be accessed simultaneously be several users. Because of that I have to restrict access to critical systems, such as power management, network, etc. so that a normal user cannot change the settings. Please give me a list of such components and steps how to disable them.

  2. Assistant

    Absolutely, this is a common scenario for shared Linux desktop environments, such as in schools, libraries, or remote workstations. Here’s a comprehensive guide tailored for Ubuntu with Cinnamon (or similar GNOME-based environments), focusing on multi-user remote desktop setups.


    1. Critical System Components to Restrict

    For a secure, multi-user remote desktop, you should restrict access to:

    • Power Management (shutdown, reboot, suspend, hibernate)
    • Network Settings (changing Wi-Fi, VPN, proxies, etc.)
    • User and Group Management
    • Software Installation/Removal
    • System Updates
    • Printers and Devices
    • Mounting/Unmounting Drives
    • Display Settings (optional, if you want to prevent resolution changes)
    • System Settings (general access)
    • Terminal Access (optional, if you want to prevent command-line access)

    2. How to Restrict Access

    A. Power Management

    Prevent Shutdown/Reboot/Suspend for Normal Users

    1. Polkit Rules
      Create a custom polkit rule to restrict these actions.

      sudo nano /etc/polkit-1/localauthority/50-local.d/disable-shutdown.pkla
      

      Add:

      [Disable shutdown/reboot for non-admins]
      Identity=unix-group:users
      Action=org.freedesktop.login1.power-off;org.freedesktop.login1.reboot;org.freedesktop.login1.suspend;org.freedesktop.login1.hibernate
      ResultActive=no
      

      Replace users with the group your normal users belong to.

    2. Hide Power Options in Cinnamon Menu
      Use dconf-editor or gsettings to hide these options:

      gsettings set org.cinnamon.desktop.session logout-shutdown false
      gsettings set org.cinnamon.desktop.session logout-reboot false
      

    B. Network Settings

    Prevent Network Changes

    1. Polkit Rule for NetworkManager

      sudo nano /etc/polkit-1/localauthority/50-local.d/disable-network.pkla
      

      Add:

      [Disable network management for non-admins]
      Identity=unix-group:users
      Action=org.freedesktop.NetworkManager.settings.modify.system
      ResultActive=no
      
    2. Remove Network Applet (Optional) You can remove the network applet from the Cinnamon panel for non-admin users.


    C. User and Group Management

    • Only allow sudo group to access user management tools.
    • Remove users-admin or similar tools from the menu for normal users.

    D. Software Installation/Removal

    • Only allow sudo group to use apt, synaptic, or gnome-software.
    • Remove or hide software management tools from the menu for normal users.

    E. System Updates

    • Restrict update tools to admins only.

    F. Printers and Devices

    • Use polkit to restrict printer management:

      sudo nano /etc/polkit-1/localauthority/50-local.d/disable-printers.pkla
      
      [Disable printer management for non-admins]
      Identity=unix-group:users
      Action=org.opensuse.cupspkhelper.mechanism.*
      ResultActive=no
      

    G. Mounting/Unmounting Drives

    • Restrict via polkit:

      sudo nano /etc/polkit-1/localauthority/50-local.d/disable-mount.pkla
      
      [Disable mount for non-admins]
      Identity=unix-group:users
      Action=org.freedesktop.udisks2.filesystem-mount
      ResultActive=no
      

    H. Display Settings

    • Hide or restrict access to display settings via menu editing or dconf.

    I. System Settings

    • Use dconf to lock down settings:

      sudo apt install dconf-cli
      

      Create a lock file:

      sudo nano /etc/dconf/db/local.d/00-lockdown
      

      Example to lock background and screensaver:

      [org/cinnamon/desktop/background]
      picture-uri=''
      
      [org/cinnamon/desktop/screensaver]
      picture-uri=''
      

      Then lock keys:

      sudo nano /etc/dconf/db/local.d/locks/00-lockdown
      
      /org/cinnamon/desktop/background/picture-uri
      /org/cinnamon/desktop/screensaver/picture-uri
      

      Update dconf:

      sudo dconf update
      

    J. Terminal Access

    • Remove terminal from the menu for normal users.
    • Use dconf to disable terminal launchers.

    3. General Steps

    1. Create a User Group for Normal Users

      • E.g., users or students.
    2. Apply Polkit Rules

      • As above, for each component.
    3. Edit Cinnamon Menu

      • Use alacarte or menulibre to hide system tools from normal users.
    4. Lock Down Settings with dconf

      • As above.
    5. Test with a Normal User Account

      • Ensure restrictions are effective.

    4. Extra Security Tips

    • Disable TTY logins if not needed (/etc/securetty).
    • Restrict SSH to admins only.
    • Use a firewall to limit network access.
    • Regularly update your system and review user permissions.

    5. References


    If you need specific polkit rules or dconf settings for a particular component, let me know!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.