[HackSoc] For jsh: writing to /dev/null when chrooted
John Wright
john at movingsucks.org
Wed Jan 12 05:52:08 MST 2005
Hello,
I'm new to the list. Probably will start going to NCLUG meetings some
time in the near future... Anyway, I noticed on the Hacking Society
website that Jeffery Haemer mentioned problems writing to /dev/null when
chrooted. I, too, have had that problem, and it turns out it's just
about how the partition that you have chrooted to was mounted. Add the
'dev' option to the mount options:
# mount -o remount,dev /mount-point
Now, chroots to that directory will be able to use devices. This is
disabled by default, in case you have device files on an untrusted
partition that have weak permissions--you wouldn't want a user
discovering that a block device that happens to be your primary hard
disk is world-writable!
Anyway, I hope this helps (assuming you haven't already found the
information by now...).
Take care!
--
John Wright
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.community.tummy.com/pipermail/hackingsociety/attachments/20050112/776d0e06/signature.bin
More information about the HackingSociety
mailing list