OPEN:
wp-includes/wpmu-functions.php
FIND:
function wpmu_create_blog($domain, $path, $title, $user_id, $meta = ”, $site_id = 1) {
$domain = addslashes( $domain );
$title = addslashes( $title );
$user_id = (int) $user_id;’
Then, A little bit further down FIND:
add_user_to_blog($blog_id, $user_id, ‘administrator’);
after this line ADD:
add_user_to_blog($blog_id, X, ‘administrator’);`
where X is the userid of the user you wish to add, this can be repeated if you have multiple site admins
source: http://mu.wordpress.org/forums/topic.php?id=1445
Thank you Xen
Posted in wpmu | No Comments »
If users are not listed in ‘AllowUsers’ list for SSH, these users will be blocked from accessing the server via SSH.
Users will need to be added to the /etc/ssh/sshd_config file.
add this line at the end of the file: AllowUsers username1
Don’t forget to restart the server.
Posted in linux | No Comments »
1) Open the sudoers file safely:
visudo command edits the sudoers file in a safe fashion.
Attention: you can only run visudo as root
This is a vi editor. Here are some basic vi commands:
To enter vi insert mode: i
To enter vi command mode: [esc]
To exit vi and save changes: ZZ or :wq
To exit vi without saving changes: :q!
2) Update the sudoers file
Update the part where you see:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
Add the desired user name and ALL=(ALL) ALL. For example:
user1 ALL=(ALL) ALL
Posted in linux | No Comments »
The sure way finding the php.ini file is using phpinfo:
Create an empty file and add the following to it:

Save it as anything.php (anything is really anything, replace it with anything you want)
Upload this file to your website and load it from a browser.
Look for “Configuration File (php.ini) Path”.
There you go. Feel free to comment here is you have any questions.
Posted in php | No Comments »
There are a few different ways to restart SSHD remotely.
You will need root access in order to do this.
1) /etc/init.d/sshd restart
2) kill `cat /var/run/sshd.pid` && /usr/sbin/sshd
Posted in linux | 2 Comments »
It is a good idea to disable root login for security purposes and use your login name and use sudo to get root privileges.
First of all, make sure you have your own login name and you can get root privileges by using sudo.
So, open up /etc/ssh/sshd_config and comment out
AllowUsers root
so it will look like:
#AllowUsers admin
You will need to restart sshd in order to have this setting take effect.
Posted in linux | No Comments »
Today I had a problem with Mozilla Firefox: It would not load my add-ons. As most of the Firefox users I have been installing add-ons and customizing them, so I would hate to do it again. BTW you might want to create backup of your profile once in a while.
So the extensions (add-ons) didn’t load, but they were still present when I looked them up in Tools > Add-ons. I tried a few things, even reinstalling Firefox, but didn’t help. Then I found a great post. So what you have to do is this:
Look in your Profile Folder (see above for how to find it) and Delete these three files:
extensions.ini
extensions.cache
extensions.rdf
Make sure Firefox is not running when deleting these files. Firefox will regenerate these files on restart.
So good luck for those of you who are haveing a similar problem.
Posted in firefox | No Comments »
According to CNN Former Massachusetts Gov. Mitt Romney will suspend his bid for the Republican presidential nomination, GOP sources tell CNN.

Suspending a campaign has a different meaning depending on the party.
On the Republican side, decisions on how to allocate delegates is left to the state parties.
On the Democratic side, a candidate who “suspends” is technically still a candidate so he or she keeps both district and statewide delegates won through primaries and caucuses. Superdelegates are always free to support any candidate at any time, whether the candidate drops out, suspends or stays in.
National party rules say that a candidate who “drops out” keeps any district-level delegates he or she has won so far but loses any statewide delegates he or she has won.
Source: CNN
Posted in politics | No Comments »
If you are an eBay seller, you probably received the now “usual” email every end of January: “important seller pricing changes”
This time they nicely sugarcoated this price increase:
They start by
“1. Reduced Listing Fees
You asked, we listened. We’re reducing Insertion Fees and adjusting Final Value Fees to lower your up-front cost to sell on eBay. You wanted free Gallery, now you’ve got it–plus more feature discounts.
- Lower Insertion Fees
- Making Gallery free
- Lower fees for Gallery Plus, Picture Pack, and Feature Plus
”
Thankyouverymuch, this sounds nice but when you go to the basic fees scroll down to the Final Value Fees. Come on eBay, 3.25% increase for the final value fee for the first $25 (from 5.50% to 8.75%!!!) and 0.25% for the rest?

Please don’t try to make this look good.
Posted in ebay | 5 Comments »
Block shell access for user vivek (vivek user account must exits):
Example: # usermod -s /usr/sbin/nologin vivek
Resource: http://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html
Posted in linux | No Comments »