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

Dattatec

Active Member
PartnerNOC
Mar 12, 2003
43
0
156
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?
 

Dattatec

Active Member
PartnerNOC
Mar 12, 2003
43
0
156
Argentina
¿solution?

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

Dattatec

Active Member
PartnerNOC
Mar 12, 2003
43
0
156
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:

> [email protected] [~/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
> [email protected] [~/test]#

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

> [email protected] [~/test]# cat shadow | grep microcom
> microcom:$1$1ZOwK6br$VXlOCcR5pfnhuoH4RbIxU.:12178::::::
> microcom:!!:12179::::::
> microcom:!!:12179::::::
> [email protected] [~/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.
 

Dattatec

Active Member
PartnerNOC
Mar 12, 2003
43
0
156
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
 

Dattatec

Active Member
PartnerNOC
Mar 12, 2003
43
0
156
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!

=)