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

    Opening / saving a file with root permissions?

    Scheduled Pinned Locked Moved Solved Support
    4 Posts 2 Posters 507 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.
      • F Offline
        Fizz
        last edited by

        Hi all-

        I want to modify a simple config file, but it is kept in a read-only directly (several layers under /opt/ ). I can open the file in Seabass2 (from File Manager). But after i make my edits i can't save, with it saying i don't have permissions. How can i open the file in Seabass2 such that i can then save my edits?

        -Fizz

        (PS: Don't worry- it's not a system file- it's for a downloaded app, it's not going to break the system... πŸ™‚ )

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Online
          arubislander @Fizz
          last edited by

          @Fizz I don't believe there are currently any apps that facilitate editing text files with elevated permissions.

          To achieve what you want, you would need to edit the file from the command line.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          JingPad (24.04-1.x daily)
          OnePlus Nord N10 5G (24.04-2.x daily)
          PinePhone OG (20.04)
          Meizu Pro 5 (16.04 DEV)

          F 1 Reply Last reply Reply Quote 0
          • F Offline
            Fizz @arubislander
            last edited by

            @arubislander
            I haven't found one either. So i edited the permissions from the command line and was then able to open in Seabass2 (through terminal).

            So i guess we can mark this one as solved. Thanks.

            -Fizz

            arubislanderA 1 Reply Last reply Reply Quote 0
            • F Fizz has marked this topic as solved on
            • arubislanderA Online
              arubislander @Fizz
              last edited by

              @Fizz That is an interesting way of going about it. But I guess it works.

              In general though, changing ownership / permissions of system files is not recommended, so be sure to change them back to what they were when you are done editing them.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              JingPad (24.04-1.x daily)
              OnePlus Nord N10 5G (24.04-2.x daily)
              PinePhone OG (20.04)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better πŸ’—

              Register Login
              • First post
                Last post