Senin, 08 Agustus 2011

Command to view the queue


Command to view the queue

To view the exim mail queue issue the following command:

mailq
OR

exim -bp
If exim is in /usr/sbin and /usr/sbin is not in your path, you'll need to prefix the command with the full path like so:

/usr/sbin/exim -bp

Example output

The outut from the above commands will look something like so:


4d  1.2K 1Ka6u5-00032Z-Eb <from@example.com>

          to@example.com

 

62h  1.2K 1KaRH0-0007QZ-B5 <from@example.com>

          to@example.com

 

3h   22K 1KbLHr-0004ev-An <from@example.com>

          to@example.com

Jumat, 15 Juli 2011

plesk - Unable to read Control Panel configuration file


After reinstall of server Centos 5/Plesk 10.3, I get the following error when tryig to access the panel login page:
Unable to read Control Panel configuration file: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead


Check that Plesk configuration files have correct permissions:


Quote:
# stat /etc/psa/psa.conf
File: `/etc/psa/psa.conf'
Size: 2441 Blocks: 8 IO Block: 4096 regular file
Device: 37h/55d Inode: 22039860 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)


# stat /etc/psa/.psa.shadow
File: `/etc/psa/.psa.shadow'
Size: 13 Blocks: 8 IO Block: 4096 regular file
Device: 37h/55d Inode: 20696909 Links: 1
Access: (0600/-rw-------) Uid: ( 500/ psaadm) Gid: ( 500/ psaadm)

Cannot retrieve admin password after Parallels Plesk Panel installation

Symptoms
It is not possible to retrieve Parallels Plesk Panel admin password. Message that Plesk is not configured is displayed.
# /usr/local/psa/bin/admin --show-password
Plesk is not configured. You should go to the Server Administration Panel and configure it.

Such message can be received after Parallels Plesk Panel installation, if you want to retrieve password, but Parallels Plesk Panel is not configured yet.
Cause
After Parallels Plesk Panel installation auto generated password is set for the admin user. It is not possible to retrieve Plesk admin password before the initial configuration is done.
Resolution
Login into the Control Panel with the root user and its password and perform initial configuration. On the configuration step you can set new password for the admin user.

As workaround you can set desired password for the admin user using the /usr/local/psa/bin/init_conf utility. Then login into the Control Panel with the admin user using new password.

/usr/local/psa/bin/init_conf --set-admin-password -passwd NEW_PASSWORD

This behaviour will be fixed in Parallels Plesk Panel 10.3. It will be possible to retrieve auto generated password for the admin user prior initial configuration.

Plesk Control Panel shows the error after upgrade to version 10.x

Resolution
This error means that Plesk database was not upgraded correctly. For fixing the error perform post upgrade configuration by executing bootstrapper script.
Bootstrapper script can be found at the directory $PRODUCT_ROOT_DIbootstrapper/.

# /usr/local/psa/bootstrapper/pp10.9.0-bootstrapper/bootstrapper.sh repair
..........
**** Product repair completed successfully.

After repairing configuration you should be able to access to Control Panel.

Plesk - after upgrade to 10.3.0 all domains point to Apache 2 Test Page

solved

/usr/local/psa/admin/bin/websrvmng -v -a

or

/usr/local/psa/admin/bin/httpdmng -v -a

Kamis, 14 Juli 2011

New Foursquare Badge: How To Unlock "It's a Boy! & It's a Girl!" Badges

New Foursquare Badge: How To Unlock "It's a Boy! & It's a Girl!" Badges

Name: It's a boy!

Message: "Look at that beautiful baby! He looks just like you! Congrats on one of the happiest days of your life! Now put down the phone and breathe deep. Because, though it's a miracle to see the baby come out, wait 'til you see what comes out of the baby!"

How To Unlock: Check-in to venue category "Hospital" with shout "It's a boy!"

Name: It's a girl!

Message: "Look at that beautiful baby! She looks just like you! Congrats on one of the happiest days of your life! Now put down the phone and breathe deep. Because, though it's a miracle to see the baby come out, wait 'til you see what comes out of the baby!"

How To Unlock: Check-in to venue category "Hospital" with shout "It's a girl!"


Notes: kedua badge ini berlaku global atau bisa di seluruh dunia dengan venue yang sesuai, apabila shout digabungkan akan mendapatkan kedua badge bersamaan. 

[Canvas] MS11-054 Privilege Escalation Demo