The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[*URGENT*] Take only a second. (CPANEL - FTP)

Discussion in 'General Discussion' started by Dattatec, May 7, 2003.

  1. Dattatec

    Dattatec Active Member
    PartnerNOC

    Joined:
    Mar 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    1.- After jail mail all users in one server the FTP not works more (the passwords) and in Cpanel too, result of jail not cpanel, not ftp, im send a email to cpanel but this no give solution to your software, im need help from the comunity ;).

    2.- Webalizer problems have solution?
     
  2. Dattatec

    Dattatec Active Member
    PartnerNOC

    Joined:
    Mar 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    ¿solution?

    i send ticket o cpanel and not have a fast solution? i have a entire server with this problem.
     
  3. Dattatec

    Dattatec Active Member
    PartnerNOC

    Joined:
    Mar 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    ¿ Solution #2?

    My Cpanel (the entire software) have a BIg problem, change the password of the users automatically, and i see this in my passwd file:

    > root@secure [~/test]# cat /etc/passwd | grep microcom
    > microcom:x:1438:1442::/home/microcom:/usr/local/cpanel/bin/jailshell
    > microcom:x:1438:1442::/home/microcom:/usr/local/cpanel/bin/jailshell
    > microcom:x:1438:1442::/home/microcom:/usr/local/cpanel/bin/jailshell
    > root@secure [~/test]#

    this is bad, but have 3 lines more en my shadow, and diferent result, example:

    > root@secure [~/test]# cat shadow | grep microcom
    > microcom:$1$1ZOwK6br$VXlOCcR5pfnhuoH4RbIxU.:12178::::::
    > microcom:!!:12179::::::
    > microcom:!!:12179::::::
    > root@secure [~/test]#

    the first problem its fixing with this command:

    cat /etc/passwd | sort -u > passwd.new , but the second problem not is fixed but is a especial file, and have more, in my shadow the 70 % of the users no have password, this is a NEW bug, and BIG but stop the server, if the main pass not works no works email and other stuff, i have 4 days and no solution, if any more haev this problem or one solution please tell me.
     
  4. Dattatec

    Dattatec Active Member
    PartnerNOC

    Joined:
    Mar 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    Solution for shadow

    -------------------------------------------------------------------
    #!/bin/bash
    IFS='
    '
    for line in $( cat shadow.sorted )
    do
    user=$( echo -n "$line" | tr ':' ' ' | awk '{ print $1 }' )
    cat shadow.new | grep "$user" &> /dev/null
    res=$?
    if [ $res -ne 0 ]
    then
    echo "$line " >> shadow.new
    fi
    -------------------------------------------------------------------
    <rusko> before running this script:
    <rusko> 1. cp /etc/shadow ./
    <rusko> 2. cat ./shadow | sort > ./shadow.sorted
    <rusko> 3. run script
    <rusko> 4. you should now have unique entries in ./shadow.new
     
  5. Dattatec

    Dattatec Active Member
    PartnerNOC

    Joined:
    Mar 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    Not is the solution

    Obiouly not is the solution but the 70 % of the users not have password but is the first step to the real solution, now i need change the password of 800 users, via SSH.

    And Lets go!

    =)
     
Loading...

Share This Page