Solved

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

Posted on 2011-03-21
5
766 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now