"bash: /dev/null: Permission denied" on Ubuntu Login...
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"bash: /dev/null: Permission denied" on Ubuntu Login...
Hi. Subject pretty much says all--I get the following message repeated in a terminal window infinitely whenever I try to login as a normal user on my Ubuntu 6.06 box:
The permissions on /dev/null are indeed set to 0600 (for whatever reason) and running a "sudo chmod 666 /dev/null" rectifies this problem. However, upon rebooting, the perms on /dev/null return to 0600. I am having this problem on another one of my Ubuntu boxen and I've no clue what I did to prompt it. My only guess was a system update.
The permissions on /dev/null should be set by udev so check the files in /etc/udev/rules.d, such as /etc/udev/rules.d/40-permissions.rules, it should have a line that says
Hey, thanks for the response. I thought udev might have something to do with it. However, I have checked the file that you're talking about and it does indeed have that exact line that you typed.
Also, udev is set to run in the current runlevel (2) and 'ps aux|grep udev' shows that it is active as a daemon.
Hmmmm...
(Plus, I'm still kinda wondering what is causing this--this is a fresh Ubuntu install. )
Yeah, changing the permissions via /etc/rc.local was what I ultimately ended up doing shortly after posting the original thread. It works but, like others here, I would still like to know why this is happening in the first place. It's happened on 2 out of 3 of my Ubuntu machines (and I "treat" them all alike--I didn't do anything special to the 2 that gave me problems), and it's obviously happening to others.
I should probably file a bug report but I don't know how...
Tried all the mentioned method ,not working with Ubuntu Jaunty
As problem that bash:/dev/null:Permission denied, I have tried all the method mentioned ,but it's not allow me login from graphical login screen,And if I login from terminal got that error.
Please help. Tried to solve this problem by;
1) Remove and create /dev/null
2) set correct permission ,0666
3) write/create a file 40-persistent-rules in udev dir and put the line Kernel=Null and ...
4)put an entry in rc.local as chmod 0666 and exit 0
what else... still not able to get in. Although last time putting the value in rc.local solve this same problem.
Wondering!! Any help would be greatly appreciated.
I am using Ubuntu Jaunty 9.0.4.
Thanks
Bhaskar
Last edited by unixbhaskar; 10-08-2009 at 06:33 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.