.bashrc of root get rewritten - WHY?

  • I had a hard time upgrading one system from OMV4 to 5.

    I totally messed up the second machine with the attempt of an upgrade and did a clean install.


    Part of the problems following ryecoaaron procedure in the thread 27909-omv-5-0-finally-out/&pageNo=2 was that when working as root the path is not amended for the system utilities.

    su ...

    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


    I can cure that with

    Code
    export PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"

    each time I want to work as root typing su and giving the password.


    The first lines of root .bashrc read:

    # This file is auto-generated by openmediavault (https://www.openmediavault.org)

    # WARNING: Do not edit this file, your changes will get lost.


    sudo su give me a suitable PATH.

    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


    Is this a feature or a bug?

    I expect to have the same behavior than in Debian where I have the correct path for root and can customize roots .bashrc

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!