Calculator Manipulator

  • 1 Post
  • 333 Comments
Joined 6 years ago
cake
Cake day: April 16th, 2019

help-circle



  • Illecors@lemmy.cafetoLinux@lemmy.mlIs it actually dangerous to run Firefox as root?
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Sorry, this is very much a PEBKAC issue. This is a excerpt from my tmux config:

    # Start windows and panes at 1, not 0
    set -g base-index 1
    setw -g pane-base-index 1
    
    # Use Alt-arrow keys without prefix key to switch panes
    bind -n M-Left select-pane -L
    bind -n M-Right select-pane -R
    bind -n M-Up select-pane -U
    bind -n M-Down select-pane -D
    
    # Shift arrow to switch windows
    bind -n S-Left  previous-window
    bind -n S-Right next-window
    
    # No delay for escape key press
    set -sg escape-time 0
    
    # Increase scrollback buffer size from 2000 to 50000 lines
    set -g history-limit 50000
    
    # Increase tmux messages display duration from 750ms to 4s
    set -g display-time 4000
    
    # Bind pane creation keys to reuse current directory
    bind % split-window -h -c "#{pane_current_path}"
    bind '"' split-window -v -c "#{pane_current_path}"
    

    I hope the comments are self explanatory.

    Scrolling works with Ctrl+b Page Up/Down. There are other shortcuts, but this is probably the most obvious. q to quit scrolling.

    Ctrl+b d to detach from a session. tmux a to attach. As always, many options are available to have many named sessions running simultaneously, but that is for a later time.


  • Illecors@lemmy.cafetoLinux@lemmy.mlIs it actually dangerous to run Firefox as root?
    link
    fedilink
    English
    arrow-up
    28
    arrow-down
    1
    ·
    edit-2
    11 months ago

    I don’t know the specifics on Fedora’s installer, but normally that question is about disabling root account, not logging into a DE.

    Not sure what else to elaborate here. There’s a bunch of code that is not tested to be run as root. A whole class of exploits becomes unavailable, if you stick to an unprivileged user.

    Say there’s some exploit that allows some component of KDE to be used to read a file. If it’s running under an unprivileged user - it sucks. Everything in user’s homedir becomes fair game. But if it runs as root - it’s simply game over. Everything on the system is accessible. All config, all bad config, files of all applications (databases come to mind). Everything.


  • Is it actually dangerous to run Firefox as root?

    Yes, very. This is not specific to Firefox, but anything running as root gets access to everything. Only one thing has to go wrong for the whole system to get busted.

    usually logged into KDE Plasma as root.

    Please don’t do this! DEs are not tested to be run as root! Millions of lines of code are expected to not have access to anything they shouldn’t have and as such might be built to fail quietly if accessing something they shouldn’t in the first place. Same thing applies to Firefox, really.