creating new User Error

  • Hello, I'm new here.,


    couple of months ago i integrated my OpenMediaVault into my Microsoft Active Directory at my Home Lab with apt-get install krb5… and so on.

    So now if I go to Access Rights Management -> User I see all the users from my Active Directory.

    Now I wanted Setup FTP on my OMV. So, I wanted to add a User to my OMV, but I get an ERROR. Now i tried to add a User named Test, with password 123 but aufter i hit "Save" i get the same ERROR:



    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; chpasswd <<EOF
    Test:123
    EOF' with exit code '1':

    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; chpasswd <<EOF
    Test:123
    EOF' with exit code '1': in /usr/share/php/openmediavault/system/process.inc:196
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/usermgmt.inc(588): OMV\System\Process->execute()
    #1 [internal function]: Engined\Rpc\UserMgmt->setUser(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setUser', Array, Array)
    #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('UserMgmt', 'setUser', Array, Array, 1)
    #5 {main}

  • i tried this:

    Code
    chpasswd <<EOF
    Test:123
    EOF

    Output:

    Code
    chpasswd: (user Test) pam_chauthtok() failed, error:
    Authentication token manipulation error
    chpasswd: (line 1, user Test) password not changed




    i also looked in my /etc/samba/smb.conf

    Code
    .
    .
    idmap config * : range = 9500-9999
    .
    .
    .
    invalid users = "Test"

    so i changed pam_krb5.so "minimun_uid" from 1000 to 9500 in my /etc/pam.d/common-* files


    user "Test" is accualy created but i can't access from it or use it


    This is the output for id Test:

    Code
    uid=9540(Test) gid=100(users) groups=100(users)


    i rebooted my OMV but nothing changed i am still getting this ERORR if i try to create another user

  • Have you executed pam-auth-update? Found this here.

    it didn't work.



    in my /var/log/auth.log i found this:

    Code
    useradd[5983]: new user: name=Test2, UID=9568, GID=100, home=/home/Test2, shell=/bin/sh
    useradd[5983]: add 'Test2' to group 'users'
    useradd[5983]: add 'Test2' to shadow group 'users'
    chpasswd[5990]: pam_winbind(chpasswd:chauthtok): valid_user: wbcGetpwnam gave WBC_ERR_DOMAIN_NOT_FOUND
    chpasswd[6187]: pam_winbind(chpasswd:chauthtok): valid_user: wbcGetpwnam gave WBC_ERR_DOMAIN_NOT_FOUND



    i remember i added the following to my /etc/samba/smb.conf. but maybe some line causes this problem

  • also if i try this:

    Code
    chpasswd <<EOF
    Test:123
    EOF


    i get this ERROR in my my /var/log/auth.log:

    Code
    chpasswd[5865]: pam_winbind(chpasswd:chauthtok): valid_user: wbcGetpwnam gave WBC_ERR_DOMAIN_NOT_FOUND

Jetzt mitmachen!

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