Solved

Linux/Fedora: -bash: /dev/null: Permission denied

Posted on 2011-03-21
5
827 Views
Last Modified: 2013-12-06
Every time I log in as user zooph I get these five identical error messages:
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied

Open in new window

0
Comment
Question by:hankknight
[X]
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
5 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 125 total points
ID: 35185738
Login as root

And issue the following command

grep zooph /etc/passwd

What is the output?

Do you get shell at all?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35185748
Also issue the following command


ls -l /dev/null
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 125 total points
ID: 35185815
Please list the contents of .profile and/or .bash_profile for the zooph user.
0
 
LVL 19

Accepted Solution

by:
jools earned 250 total points
ID: 35203584
make sure the perms for /dev/null are 666 (crw-rw-rw-)
0
 
LVL 16

Author Comment

by:hankknight
ID: 35226949
Thank you all.  The permissions of dev null were wrong!
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

617 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