permission problems

Posted on 2005-03-29
Medium Priority
Last Modified: 2013-12-16
All of a sudden we are having a permission problem on our Red Hat 7.2 server . When you log in through SSH you get the following message:

bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied

and some other programs seem to be affected as well. Any idea what could have caused this and where to start looking?


Question by:timothyking
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

owensleftfoot earned 200 total points
ID: 13657436
Somehow the permissions of /dev/null have been changed. "chmod 666 /dev/null" as root (without the qoutes) should fix it.
LVL 22

Expert Comment

ID: 13674989
the above information should correct the error reports.....but you need to check what commands are causing this, and why they have started occurring! Someone else could have been messing?

Files you initially need to look at are those that are run when you log in. These are normally:


Also, if this started out of the blue, consider whether your system may have been compromised in some way.


Featured Post

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question