2010年12月12日星期日

Linux Tips

A.
When try to su to another user, the command always prompt incorrent password. The sudo works.

using the following commands:
 ls -l /bin/su

rpm -qf /bin/su
coreutils

rpm -qV coreutils
....
S file Size differs
M Mode differs (includes permissions and file type)
       5 MD5 sum differs
       D Device major/minor number mis-match
       L readLink(2) path mis-match
       U User ownership differs
       G Group ownership differs
       T mTime differs 

if the rpm -qV coreutils output something, means the coreutils has been updated.

have to install it.

don't know why it is updated/modified.

B.
close the putty session in the Windows client, and it's really sad that the server processing that is supposed to long running is killed too.
How to keep it running at the back end while I close the putty client session in the Windows desktop and leave the office.

Just run the back end server process using the following command:
nohup ****.sh &

Everything will be OK.