beta.blog

Linux (Ubuntu)

Ubuntu: Can’t redirect standard input from /dev/null

by on Aug.11, 2010, under Linux (Ubuntu)

I’ve often came accross the following error message when executing a batch file :

bash: cannot redirect standard input from /dev/null: Permission denied
bash: /dev/null: Permission denied

Luckily I’ve found an easily solution to get rid of this annoying error message. You simply need to chmod /dev/null like that :

chmod ugo+rw /dev/null

That’s it, the error message shouldn’t occur anymore 🙂

1 Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!