LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2007, 04:55 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
permission denied to /dev/null in chroot env


Hi,

I'm preparing a Slack11 partition and having installed everything on it, I chroot into it because I want to do some compiling of stuff.

I verify that I am root with whoami, but I am denied permission to /dev/null which has permission setting crw-rw-rw-, so I can't understand it.

Under what circumstances can you be denied permission to a file/device if you are root? I know it's a chroot environment, but that shouldn't have any bearing on the permissions issue, I don't think. Any suggestions?

Thanks in advance.
 
Old 04-15-2007, 08:14 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
When/how exactly are you “denied permission to /dev/null”? Do you have a /dev/null in your soon-to-be root?
 
Old 04-16-2007, 04:07 AM   #3
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
root@box # echo "hi" > /dev/null
/dev/null permission denied.

This is after chrooting.
 
Old 04-17-2007, 03:32 AM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
ok, managed to do a bit of googling on this. It would appear to have something to do with udev.

That's less surprising because udev is kind of dynamic. I think I have to do some unmount and then re mounting with new permissions.

So although, in linux, "everything is a file" and "ls -l" gives you their permissions, some files are "equaller than others" to borrow George Orwell and may deny your permission over and above what "ls -l" says.
 
Old 04-18-2007, 06:32 AM   #5
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
Can'tbe bothered going into this. Other things have popped up. udev, seems difficult somehow.
 
Old 01-29-2015, 06:29 PM   #6
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Rep: Reputation: 2
Sorry for reviving such an old thread, but I had this same issue, and found a fix.

For me, the problem occurred when I mounted the partition via a GUI file browser, and then tried to chroot. The chroot worked, but things like /dev/null gave me problems.

When I unmounted the partition in the file browser, remounted the partition myself with a simple # mount /dev/sda1 /mnt, and then chrooted, everything was fine.

It must be something to do with the permissions the file browser mounts the partition with.

I hope this port help someone, even if it's only me searching for this issue again in six months.

Last edited by WhiteHotLoveTiger; 01-29-2015 at 06:33 PM.
 
1 members found this post helpful.
  


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
/dev/null permission denied sagar.1986 Linux - General 4 01-19-2007 03:39 PM
/dev/null: Permission Denied dsschanze Red Hat 3 10-13-2006 01:38 PM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 06:31 PM
Konsole = /dev/null: permission denied????? ithawtewrong Linux - Newbie 3 09-23-2004 05:39 PM
/dev/null: Permission denied LavaDevil94 Linux - Software 2 09-14-2004 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:59 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