LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-14-2004, 11:11 PM   #1
LavaDevil94
LQ 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-14-2004, 11:21 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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-14-2004, 11:44 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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



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 09:20 AM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 06:31 PM
slackware /dev/null permission denied reddazz Slackware 8 03-09-2005 07:56 PM
Konsole = /dev/null: permission denied????? ithawtewrong Linux - Newbie 3 09-23-2004 05:39 PM
Access denied in /dev/null kpachopoulos Linux - Newbie 1 08-05-2004 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:40 PM.

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
Open Source Consulting | Domain Registration