SlackwareThis Forum is for the discussion of Slackware 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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.