Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

808 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