Category Archives: My Linux

Remove a Linux user

You can remove old users from your Linux server. This will revoke the user’s SSH access, and remove that user’s file and directory owner Remove the user Log in to your server via SSH. Switch to the root user: sudo … Continue reading

Posted in command line of linux, My Linux | Comments Off on Remove a Linux user

How do I unzip a zip file in Terminal?

Open a terminal ( Ctrl + Alt + T should work). Now create a temporary folder to extract the file: mkdir temp_for_zip_extract . Let’s now extract the zip file into that folder: unzip /path/to/file.zip -d temp_for_zip_extract sample here –> root@host: … Continue reading

Posted in command line of linux, My Linux | Comments Off on How do I unzip a zip file in Terminal?

How to add directory browsing in apache configuration?

One of the “must do’s” on setting a secure apache web server is to disable directory browsing.  Usually apache comes with this feature enabled but its always a good idea to get it disabled unless you really need it. First … Continue reading

Posted in apache, command line of linux, My Linux | Comments Off on How to add directory browsing in apache configuration?

Stumped by (13)Permission denied: file permissions deny server access ?

I was just pretty stumped by the following Apache error, in /var/log/httpd/error_log: [Thu Dec 08 21:53:28 2011] [error] [client 192.168.1.2] (13)Permission denied: file permissions deny server access: /var/www/html/aml/i ndex.html The error implies it’s a filesystem permissions issue, and the Apache … Continue reading

Posted in apache, centOS, command line of linux | Comments Off on Stumped by (13)Permission denied: file permissions deny server access ?

check the file permission status

stat -c “%a %n” /filepath

Posted in command line of linux, My Linux | Comments Off on check the file permission status