APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Set and retain ownership and permissions on tty files



Taken from a newsgroup post


Subject: Re: 2 Questions
References: <6a13693a-b974-4e7e-8a46-5421adddcb6d@k37g2000hsf.googlegroups.com>
<8B005451DE864FDBA494C85F91638332@venti> From: spce...@armory.com (John DuBois) Message-ID: <f4Gdna7N79TlbFLVnZ2dnUVZ_tTinZ2d@speakeasy.net> Date: Tue, 16 Sep 2008 12:48:40 -0500 In article <8B005451DE864FDBA494C85F91638332@venti>, Brian K. White <br...@aljex.com> wrote: > >----- Original Message ----- >From: "sdhaya" <dhaya.sni...@gmail.com> >> Our application requires the /dev/tty10 /dev/tty11 /dev/tty12 owner, >> group and mode to be online:online, read-write for all ( chmod 666 ). >> >> crw-rw-rw- 1 online online 0, 9 Sep 16 08:09 tty10 >> crw-rw-rw- 1 online online 0, 10 Sep 16 08:09 tty11 >> crw-rw-rw- 1 online online 0, 11 Sep 16 08:09 tty12 >> >> After I change the owner, group and mode and restart the server, the >> device owner, group and mode changes back as below : >> >> crw------- 1 bin terminal 0, 9 Sep 16 08:09 tty10 >> crw------- 1 bin terminal 0, 10 Sep 16 08:09 tty11 >> crw------- 1 bin terminal 0, 11 Sep 16 08:09 tty12 >> >> How can I keep the owner, group and mode permanent.. > >disable tty{10,11,12} >chown online:online /dev/tty{10,11,12} Also, to retain the ownership/mode beyond the next relink/kernel environment rebuild, be sure to change the appropriate values in /etc/conf/node.d/cn See the idmknod(ADM) man page. John -- John DuBois spce...@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/

Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Set and retain ownership and permissions on tty files



Increase ad revenue 50-250% with Ezoic

Kerio Samepage


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us