Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
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 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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

809 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