• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

how to add phablet user to a group (inside a container)?

Scheduled Pinned Locked Moved Unsolved Libertine
5 Posts 3 Posters 547 Views 3 Watching
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.
    • G Offline
      georgeb1962
      last edited by 24 Sept 2021, 19:53

      I'm having trouble launching a desktop application because it requires the user running it to be a member of a particular group. I can run a root shell, but the root shell doesn't know users or groups (usermod gives error because user 'phablet' doesn't exist)..

      I can run a shell as 'phablet' user, but can't do usermod because sudo won't work (sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set).

      Seems like a catch 22!

      D 1 Reply Last reply 25 Sept 2021, 19:06 Reply Quote 2
      • P Offline
        Pulsar33
        last edited by Pulsar33 24 Sept 2021, 22:24

        I am very interested in this question. I also have this problem when I try to install Wireshark. Not only you can not reply to the questions asked during installation because the keyboard is ignored by the container management tool, but more importantly, things can't be rectified after installation for the reasons outlined by the OP.
        BR
        Pulsar33

        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

        1 Reply Last reply Reply Quote 0
        • D Offline
          dobey @georgeb1962
          last edited by 25 Sept 2021, 19:06

          @georgeb1962 What application requires you to be a member of a specific group? I would say that application is broken.

          Groups are basically irrelevant in a Libertine container, as it's unprivileged. Which means that everything is treated as owned by the user already, so the user already has access to everything. If you install sudo in the container, it can cause the container to become broken, so it is recommended to not install it.

          P 1 Reply Last reply 26 Sept 2021, 20:54 Reply Quote 0
          • P Offline
            Pulsar33 @dobey
            last edited by Pulsar33 26 Sept 2021, 20:54

            @dobey Wireshark is not a "broken" application and requires for all systems which want to install it that a group "wireshark" is created and that the user is added in this group ...
            Good night
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            D 1 Reply Last reply 27 Sept 2021, 20:27 Reply Quote 1
            • D Offline
              dobey @Pulsar33
              last edited by 27 Sept 2021, 20:27

              @pulsar33 Yes, wireshark is not designed to be run from an unprivileged container, as it requires a user in privileged group, and has a setuid binary. Therefore you should not try to run it in a libertine container, as it will not work properly.

              1 Reply Last reply Reply Quote 0
              3 out of 5
              • First post
                3/5
                Last post