Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Libertine
    3
    5
    322
    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
      georgeb1962 last edited by

      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!

      dobey 1 Reply Last reply Reply Quote 2
      • Pulsar33
        Pulsar33 last edited by Pulsar33

        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-24 (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
        • dobey
          dobey @georgeb1962 last edited by

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

          Pulsar33 1 Reply Last reply Reply Quote 0
          • Pulsar33
            Pulsar33 @dobey last edited by Pulsar33

            @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-24 (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)

            dobey 1 Reply Last reply Reply Quote 1
            • dobey
              dobey @Pulsar33 last edited by

              @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
              • First post
                Last post