Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Why do you need the root password...


    .... to install software, exactly?



    Thanks.

  2. #2
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    Filesystem permissions. Only root can write data to /usr/bin, /usr/share, etc.

  3. #3
    It's a great way to keep rogue code from wreaking havoc behind the scenes.

  4. $spacer_open
    $spacer_close
  5. #4
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    More generically, security and protection.

    Although you can install software to your home directory if you download it. I do this with things like Netbeans where the latest version is hugely better than the one usually found in repositories.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  6. #5
    Just Joined!
    Join Date
    Dec 2014
    Location
    Sosnowiec, Poland
    Posts
    67
    Because in linux and *BSD systems by default you are working on account with limited permisssions.

  7. #6
    ...so why DOES software install into /usr/bin or whatever? is there any way say, yum, can be FORCED to put stuff into my home dir,, EVEN if the software isn't packaged that way......? like with chroot or something?

  8. #7
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Not yum but it seems to be possible see here. I have never tried this myself but hey... what could possibly go wrong?
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  9. #8
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    I wonder what exactly is your problem and what are you trying to achieve.

  10. #9
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Quote Originally Posted by ugjka View Post
    I wonder what exactly is your problem and what are you trying to achieve.
    Maybe to allow non-root users to install specific software they need using convenient package handling tools; which now that I think about it doesn't sound like a bad idea. If a bit complicated to implement securely.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  11. #10
    -->
    This isn't really any different from how you should be doing it in a Windows world. It's actually more prudent under Windows.

    It's a good practice to run as a user with limited permissions to enhance your system security. Regardless of the OS you can enable admin rights as needed.

Posting Permissions

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