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

Password protection of archives (tar, zip etc) currently possible in UT?

Scheduled Pinned Locked Moved Solved Support
6 Posts 2 Posters 341 Views 2 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.
    • U Offline
      uwahl
      last edited by 24 Oct 2023, 17:06

      Hi all,
      just a question - is a password protection possible in UT when generating a new archive with tar, zip, etc?

      A 1 Reply Last reply 24 Oct 2023, 18:22 Reply Quote 0
      • A Offline
        arubislander @uwahl
        last edited by 24 Oct 2023, 18:22

        @uwahl Sure, if such is possible to do from the command line on regular Ubuntu, then it is possible to do with UT from the command line.
        Try googling for that.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        Google Pixel 3a (20.04 DEV)
        JingPad (24.04 preview)
        Meizu Pro 5 (16.04 DEV)

        1 Reply Last reply Reply Quote 0
        • U Offline
          uwahl
          last edited by 3 Nov 2023, 18:07

          @arubislander
          ...thanks for the advice... 😊 UT is not regular Ubuntu...
          The only (?) command I found in UT /bin doing compression AND password protection in one single command is " gpgtar ". With symmetric key option in my case. Any other ideas?
          7zip command doing the same I could find in regular Ubuntu only, not in UT...

          A 1 Reply Last reply 3 Nov 2023, 18:44 Reply Quote 0
          • A Offline
            arubislander @uwahl
            last edited by 3 Nov 2023, 18:44

            @uwahl
            How important is this feature to you? How much effort are you willing to expend to achieve it?

            Are you looking for something user friendly, like a built in setting GUI setting in FileManager(not available atm) or an app (possible, but not sure if such already exists)?

            If going the commandline route, do you intend to only stick to preinstalled packages, or are you comfortable branching out and becoming more creative and explore thingd such as (in decreasing order of official support):

            • installing the required tools or apps in a libertine container
            • manually creating a chroot environment and installing the required tools there
            • installing in a lxc container
            • installing via snap
            • installing in a lxd conainer
            • installing on the roots via apt.

            Or is this just an academic query?

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            1 Reply Last reply Reply Quote 0
            • U Offline
              uwahl
              last edited by 15 Nov 2023, 09:26

              Since it seems not possible at the moment to password protect/ enctrypt an usb-stick via UT, I looked for a possibility to do a partial (compressed and gpg protected) backup of my phone.
              In the moment it is not possible/ difficult to do a whole directory compression or a passphrase protected gpg encryption via KArchive to build a gui.
              My solution for the moment is a simple shell-script for backing up my /phablet/Downloads folder with

              tar -czvf Downloads.tar Downloads
              resulting in a file Downloads.tar
              and
              encrypting the file Downloads.tar with with a symmetric passphrase key using the gpg command:
              gpg --symmetric --cipher-algo aes256 Downloads.tar
              resulting in a passphrase protected file Downloads.tar.gpg

              So I'll mark the thread as solved for the moment.

              UT 20.04 dev on Pixel3axl

              A 1 Reply Last reply 15 Nov 2023, 09:35 Reply Quote 0
              • U uwahl has marked this topic as solved on 15 Nov 2023, 09:26
              • A Offline
                arubislander @uwahl
                last edited by 15 Nov 2023, 09:35

                @uwahl Glad you figured out a way to do what you wanted to achieve, all be it partially. This is what I meant when I said UT is a lot like 'regular' Ubuntu when viewed from the command line. Unless you want to be running services and such, more often than not, there is a way to get what you need, done.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post