chmod command

How do I match dot files under Unix / Linux using bash shell? Why .* considered as harmful when matching dot files under bash shell?

{ 5 comments }

I‘m setting up server on an Amazon EC2 compute instance powered by Suse Enterprise Linux server. I am using the following command to login into the my EC2 compute from OS X/Ubuntu desktop:

ssh -i suse-ec2-server-jp.pem root@ec2-xx-yy-zzz-yyy.compute-1.amazonaws.com

I am getting the following error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0440 for 'suse-ec2-server-jp.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: suse-ec2-server-jp.pem
Password:

How do I fix this problem and login using ssh command?

{ 2 comments }

When I try to login into my Linux Gnome based desktop system, I get the following error from GDM :

gconf-sanity-check-2 exited with status 256

How do I fix this problem?

{ 8 comments }

How do I set readonly permission for all files stored in /var/www/html directory?

{ 4 comments }

When I ssh into my server and login as t root user and I’m getting the following error on screen:

Could not chdir to home directory /root: No such file or directory

How do I fix this error under CentOS or Debian Linux server?

{ 1 comment }

How do I run a Linux shell script? How can I run a script in Linux operating system using command line options?

{ 13 comments }

How do I execute a script under UNIX or Linux like operating system using command prompt?

{ 1 comment }