[SOLVED] Used omv-firstaid and yet can't login

  • Zitat von "ryecoaaron"

    Ok. How about:

    Code
    ls -al /var/www/opemediavault/
    cat /etc/passwd | grep admin:


    ls -al /var/www/opemediavault/


    cat /etc/passwd | grep admin:

    Code
    root@Savannah:~# cat /etc/passwd | grep admin:
    admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin
    root@Savannah:~#
    • Offizieller Beitrag

    Well, all of that looks ok. I don't know why there is a php folder in /var/www/openmediavault/.


    ry the following and then try to login to the web interface as that user. Even though you won't be able to see most items, it will tell me a few things.

    Code
    useradd --groups users testuser
    passwd testuser

    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"

    Well, all of that looks ok. I don't know why there is a php folder in /var/www/openmediavault/.


    ry the following and then try to login to the web interface as that user. Even though you won't be able to see most items, it will tell me a few things.

    Code
    useradd --groups users testuser
    passwd testuser


    It's in Portuguese, Digite a nova senha UNIX = "type the new UNIX password" and senha atualizada com sucesso = "password successfully updated".

    Code
    root@Savannah:~# useradd --groups users testuser
    root@Savannah:~# passwd testuser
    Digite a nova senha UNIX:
    Redigite a nova senha UNIX:
    passwd: senha atualizada com sucesso
    root@Savannah:~#


    That didn't work, yet got Incorrect username or password.

    • Offizieller Beitrag

    Any errors in /var/log/auth.log

    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"

    Any errors in /var/log/auth.log


    Something like this?

    Code
    Jul 24 09:29:48 Savannah php5: pam_unix(openmediavault-webgui:auth): authentication failure; logname= uid=999 euid=999 tty= ruser= rhost=189.9.22.2  user=admin


    Here the whole thing: https://www.dropbox.com/s/coikwho0ojtidnp/auth.log (pastebin couldn't handle it, so I used dropbox instead)

    • Offizieller Beitrag

    How about:


    dpkg -l | grep pam
    ls -al /etc/shadow



    Try:


    chown root:shadow /etc/shadow

    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!


  • dpkg -l | grep pam

    Code
    root@Savannah:~# dpkg -l | grep pam
    ii  libpam-modules                      1.1.1-6.1+squeeze1               Pluggable Authentication Modules for PAM
    ii  libpam-runtime                      1.1.1-6.1+squeeze1               Runtime support for the PAM library
    ii  libpam0g                            1.1.1-6.1+squeeze1               Pluggable Authentication Modules library
    ii  php5-pam                            1.0.3-1                          pam module for PHP 5
    root@Savannah:~#


    ls -al /etc/shadow

    Code
    root@Savannah:~# ls -al /etc/shadow
    -rw-r----- 1 root shadow 1446 Jul 24 17:46 /etc/shadow
    root@Savannah:~#


    chown root:shadow /etc/shadow

    Code
    root@Savannah:~# chown root:shadow /etc/shadow
    root@Savannah:~#


    And it yet: Incorrect username or password


    I didn't lose my hope yet ;)


    Bear with me guys, please?

    • Offizieller Beitrag

    You are missing php5-pam which is very important.


    apt-get install php5-pam

    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"

    You are missing php5-pam which is very important.


    apt-get install php5-pam


    apt-get says it's there, nothing installed, nothing changed ;(


    Is there a way to force the install even if stuff is already there? What if I rewrite all the important stuff, I mean, the major packages?


    I think all the stuff is there and I probably messed up with its links, settings or something.

  • Please give results of these commands:


    cat /etc/passwd | grep 990*
    cat /etc/passwd | grep openmediavault:


    I saw this:

    Code
    Jul 24 09:29:48 Savannah php5: pam_unix(openmediavault-webgui:auth): authentication failure; logname= uid=999 euid=999 tty= ruser= rhost=189.9.22.2  user=admin


    admin has always setup as uid 998 for me and openmediavault as uid 999.


  • cat /etc/passwd | grep 990*

    Code
    root@Savannah:~# cat /etc/passwd | grep 990*
    openmediavault:x:999:100:openmediavault:/home/openmediavault:/bin/dash
    admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin
    root@Savannah:~#


    cat /etc/passwd | grep openmediavault:

    Code
    root@Savannah:~# cat /etc/passwd | grep openmediavault:
    openmediavault:x:999:100:openmediavault:/home/openmediavault:/bin/dash
    root@Savannah:~#
  • Zitat von "tekkbebe"

    Hmm, I checked my machine and it is the same. Give results of this command:


    groups openmediavault


    groups openmediavault

    Code
    root@Savannah:~# groups openmediavault
    openmediavault : users
    root@Savannah:~#


    groups admin

    Code
    root@Savannah:~# groups admin
    admin : users
    root@Savannah:~#


    Really? Just users? No admin, sudo or something else?

  • Correct groups:


    Code
    lroot@chap:~# groups openmediavault
    openmediavault : openmediavault sudo shadow
    root@chap:~#


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Code
    root@Savannah:/storage/Jogos# usermod -G openmediavault openmediavault
    root@Savannah:/storage/Jogos# usermod -G "" openmediavault
    root@Savannah:/storage/Jogos# usermod -g sudo openmediavault
    root@Savannah:/storage/Jogos# usermod -g shadow openmediavault
    root@Savannah:/storage/Jogos# groups openmediavault
    openmediavault : shadow
    root@Savannah:/storage/Jogos#


    Restarted apache2, used omv-firstaid, changed the password and yet, Incorrect username or password


    It was not included on sudo, right? Even though it didn't show any error when I used the command to add it.

  • Zitat von "mizifih"


    -g primary; -G secondary?


    usermod -a -G openmediavault,shadow,sudo openmediavault


    I'M IN!


    Guys, thank y'all! Very much!

Jetzt mitmachen!

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