Saturday, December 15, 2012

How to add a user to sudo list

Edit the the sudo user list using the command
'visudo'
 under the line that looks like the following:

    root ALL=(ALL) ALL

Add the following

    joseph ALL=(ALL) ALL  // Here joseph is the user which is to be added to the sudo user list

You can go to root prompt by
sudo -s
or
sudo -i
provided you have access permission

Tuesday, December 4, 2012

Web programming using Java

When accessing a parameter from Java code, use request.
getParameter(“xxx”). When accessing a parameter from HTML, use the
expression language ${param.xxx}.