[SOLVED] ARM Help Can't login to WebGui after fresh install

  • Could this be issue with his preinstalled system's current keyboard (keymap), language, timezone vs. omv install???


    I start to think we should be thinking the other way. Not what is missing but what is there before OMV. I know that when I installed a full desktop environment I was getting php errors churned out in syslog til I redid timezone in omv. So perhaps there is a package in his preinstall the causing issue. Also, have you looked at syslog at the time you attempted logins?

  • Well this could be the solution.
    I definetly did not configure locales but left them untouched;
    so there's just the general values of a virgin install set.


    I will give it a try and run "dpkg-reconfigure locale" and another "omv-initsystem" afterwards.
    Hopefully it will work at this late stage of installation.


    I'm gonna try this tonight and give you feedback about the results.


    Regards


    ranX

  • Hi,


    just installed and configured locales and re-ran omv-initsystem.
    Login still doesn't work; neither with admin nor with root.


    /var/log/auth.log -->

    Zitat

    Jan 12 21:35:38 localhost unix_chkpwd[16220]: check pass; user unknown
    Jan 12 21:35:38 localhost unix_chkpwd[16220]: password check failed for user (root)
    Jan 12 21:35:38 localhost php5: pam_unix(openmediavault-webgui:auth): authentication failure; logname= uid=999 euid=999 tty= ruser= rhost=192.168.168.10 user=root
    Jan 12 21:35:52 localhost unix_chkpwd[21169]: check pass; user unknown
    Jan 12 21:35:52 localhost unix_chkpwd[21169]: password check failed for user (admin)
    Jan 12 21:35:52 localhost php5: pam_unix(openmediavault-webgui:auth): authentication failure; logname= uid=999 euid=999 tty= ruser= rhost=192.168.168.10 user=admin


    btw.: as I'm on a serial console I go by command line only - there's no Gui at all ;)


    Are there any other logfiles which Icould have a look at for further investigation on this authentication issue ?


    Regards


    ranX

  • The only thing I can think of is to check this: dpkg -l | grep pam


    php5-pam
    libpam0g
    libpam-runtime
    libpam-modules


    and make sure these are installed..... :( same results if you try to access via http?
    Is there something in PAM service configuration that needs to be set to allow serial access?

  • Hi !


    The Stora NAS has no video out.
    Usually you plug it to the net and configure via Browser.
    As the factory OS is pretty ugly, I disabled it and run Debian from a thumb drive.
    My wish is to enhance the Debian base by OMV

    To get control (e.g. install Debian an configure it) you have to plug a serial adapter directly to the JTAG pins on the board.
    Then you start something like picocom and have direct console access to issue commands on the NAS box.
    After you've gotten ssh installed you can also go by that.


    Maybe we've been talking 'bout different things : serial access has always been working.
    ssh authentiction is also fine.
    The logon to http webgui is the thing that refuses to work and which I'm trying to get to work.
    Using OMV wouldn't be too smart without that ;)


    Checked the packges - all of them installed ...


    Regards


    ranX

  • Hi !


    Just an idea: could it be the whole thing is just a DNS issue ?
    When I try to log on at the webinterface for any user I get: "unix_chkpwd[18893]: check pass; user unknown" at /var/log/auth.log
    This is even the case when I try with root.


    Strange enough regarding I can logon locally with root without any issues.
    This proves the root user is existent on the system and his account is valid.
    May it be local password authority feels not responsive for the given user
    as it cannot determine that authentication against a local system user is invoked by the webgui ?


    Regards


    ranX

    • Offizieller Beitrag

    Are you using http://ipaddress/ to login?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    What is the output of apache2ctl -M?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Well, that doesn't help. I found an article that mentioned needing mod_auth_basic, mod_authN_file, and mod_authz_user. So, I thought maybe you were missing one or more.


    Here is my output. Strange that I don't have php5 or version as a module...


    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    I found an article that mentioned needing mod_auth_basic, mod_authN_file, and mod_authz_user.


    I found that one too, while diggin' through the interwebs ... ;)


    I'm not sure, but at least I found a workaround, if not the solution.
    Authentication uses /etc/shadow as password container.
    Permission of this file was set to root:root.


    As the whole OMV-site delivered by Apache belongs to user and group openmediavault.
    I assumed any authentication from the webgui might be called with this owner/group rights.
    Therfore I did "chown root:openmediavault /etc/shadow" to change permissions of the password container and make it readable for OMV
    After this I'm now able to logon to the webgui.


    I'm not too familiar with web-authentication stuff; therefore excuse me dumb question:
    Did I really find a valid solution or did I open a security hole ?


    Would be nice, if you could take a look at permissions for /etc/shadow set on your system


    best Regards


    ranX

    • Offizieller Beitrag
    Zitat von "tekkbebe"

    root:shadow


    What he said :) Here is my pogoplug's:


    Code
    ls -al /etc/shadow
    
    
    -rw-r-----  1 root           shadow           481 Jan  7 09:02 shadow


    Good find! Hope that does it!

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thank you for your help to find a solution !


    I marked this one as "solved"
    Gonna change my shadow's permissions to root:shadow too.


    As I already pointed out, there was at least one other guy, who had the same issue.
    Could that be worth adding a check to the install process, which changes permissions, if not set properly ?


    Regards


    ranX

    • Offizieller Beitrag

    ranX, what is the output of groups openmediavault?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi !

    Zitat von "votdev"

    User 'openmediavault' is created with group membership of 'sudo' and 'shadow' during package installation, thus there is no error in the setup routine in my eyes.


    Yes, you're right !
    Late night yesetrday, when coming back from Sports, I couldn't go to bed before having another look at the installation 8-)
    While trying to change configuration via webgui (e.g. activate ssh) I always got the following error, when clicking the "submit" button

    Zitat

    "sudo:effective uid is not 0, is sudo installed setuid root?"


    Short research pointed to the issue, that permissions on /usr/bin/sudo were not accurate
    They were -rwxr-xr-x root:root
    Necessary is -rwsr-xr-x root:root
    So I did "chmod 4755 /usr/bin/sudo" to fix this


    Just a guess: these wrong permissions might have already been set during debootstrapping the base installation as this took part in a virtual environment.
    Missing sudo permissions led to configuration errors during installation process.
    e.g. I also get errors, when trying to start FTP as the directory /home/ftp has not been created during setup.
    It's just an assumption as I don't know if the install/initialisation process has to rely on sudo.


    Regards


    ranX

Jetzt mitmachen!

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