Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Backup Ubuntu Settings - How to ?

  1. #21
    Join Date
    Nov 2018
    Beans
    28

    Re: Backup Ubuntu Settings - How to ?

    Fu :
    "A few years ago, we had a discussion about this in the forums after someone used sudo gedit on a brand new install and ended up not being able to run a browser or any gnome programs because root:root had owned the ~/.config/ directory."
    ======================
    O_O root owning root and preventing root from accessing config stored in root ?
    meta-root and meta privileges ?

    That's how it sounds to this clueless lay-person.

    I know this was directed to oldfred but :
    Thank you for this "rant" , ie. very useful information.
    I'm sure keeping this in mind will prevent me from making an awful goof in the near future.

  2. #22
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Backup Ubuntu Settings - How to ?

    Quote Originally Posted by spazz2 View Post
    O_O root owning root and preventing root from accessing config stored in root ?
    meta-root and meta privileges ?

    That's how it sounds to this clueless lay-person.
    Not meta at all, just requires understanding that
    /home/thefu == $HOME == ~/

    If HOME is set to /root/, then ~/ == /root/
    But if HOME is set to /home/thefu, then ~/ == /home/thefu.

    HOME is set at login by the value set in the password entry - getent passwd thefu
    HOME is an extremely important environment variable. Generally, no management of it is needed, but with sudo you can end up with a program running with root as the userid, but HOME still set to the normal user account's value. This is almost always bad, but it is the GUI programs that tend to automatically create and write settings to the HOME directory. CLI programs just don't do this. I don't know why. This is why sudo nano isn't so bad, but sudo gedit is terrible.

    Claro?

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •