You are not logged in.

#1 2014-04-12 13:34:44

EnergiaPotenziale
Member
Registered: 2014-04-12
Posts: 5

[SOLVED] Problem in getting a secondary null device

Hi everybody! smile

I need to have a null device in a chroot environment. I know that I could mount the /dev directory with "-bind" option, but I want to share only the essential. So I thought to create the null device with the following (typed as root):

# mknod mynull c 1, 3
# chmod a+w mynull

I tested the new block device with:

# ls -l
crw-rw-rw- 1 root root    1, 3 Apr 12 14:51 mynull
# echo blabla > mynull
bash: mynull: Permission denied

I really don't understand why it doesn't work.
Thanks.

Last edited by EnergiaPotenziale (2014-04-16 09:15:40)

Offline

#2 2014-04-16 09:17:34

EnergiaPotenziale
Member
Registered: 2014-04-12
Posts: 5

Re: [SOLVED] Problem in getting a secondary null device

Ok, i found that the partition in which I created mynull was mounted with "nodev" option. Aftter changing the partition, worked fine.

Offline

Board footer

Powered by FluxBB