Tuesday, January 27, 2009

How to add a user in the freeBSD using a shell script?

Adding a user in the FreeBSD using a shell script

touch useradd.txt
echo "$linux_login::::::::bash:" > useradd.txt


/usr/sbin/adduser -f useradd.txt -k $skeldir $linux_login -w no


sample useradd.txt file
-----------------------
test::::::::bash:

Tuesday, December 30, 2008

How to find the php.ini path?

php -i | grep php.ini

Wednesday, December 24, 2008

Using suphp To Secure A Shared Server

http://blog.stuartherbert.com/php/2008/01/18/using-suphp-to-secure-a-shared-server/