LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-15-2004, 12:11 AM   #1
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Angry /dev/null: Permission denied


I'm installing Gentoo from stage3, and whenever I do anything with a script like emerge, I get this error:
/dev/null: Permission denied.
The permissions on /dev/null itself are as follows:
crw-rw-rw- 1 root root 1
Any ideas?
 
Old 09-15-2004, 12:21 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
just a shot in the dark:

maybe the group needs to be different??

on my slackware box it looks like this (group is "sys"):

crw-rw-rw- 1 root sys 1, 3 1994-07-17 18:46 /dev/null
 
Old 09-15-2004, 12:44 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
I get the same messages in SuSE 8.2 Pro, both as user and as root. However, when I check the files I redirected to /dev/null, the file size is 0. So, I guess it works, and the error message is standard procedure, even when it works. Therefore, I don't worry about it anymore. In your case, check to see if user has permission to write to the file in question. If not, su to root, then do the /dev/null thing.
Since root has the necessary privileges, you might consider su to root before running the script which generates the error message. Otherwise, change the permissions on the script to allow user to execute the script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 10:20 AM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 07:31 PM
slackware /dev/null permission denied reddazz Slackware 8 03-09-2005 08:56 PM
Konsole = /dev/null: permission denied????? ithawtewrong Linux - Newbie 3 09-23-2004 06:39 PM
Access denied in /dev/null kpachopoulos Linux - Newbie 1 08-05-2004 10:50 AM


All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration