user2503445
user2503445

Reputation: 1

Using linux, how can I create a device file outside of the /dev directory that will give me permission to open and read it?

I am using linux kernel 3.8, ubuntu 13.04, I am curious if there is a way to do this. Also, I would like to know if there is some generic reason for why this doesn't work for me. Thanks.

Upvotes: 0

Views: 578

Answers (1)

icktoofay
icktoofay

Reputation: 129139

Device files are created with mknod. Permissions and owner can be changed with chmod and chown respectively. If the device file already exists, you may want to create a symbolic link to it instead using ln -s.

Upvotes: 1

Related Questions