devfs
[Top] [All Lists]

Re: pty perms

To: Will Newton <will@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: pty perms
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Thu, 29 Mar 2001 11:15:06 -0700
Cc: <devfs@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.33.0103290611001.15185-100000@dogfox.localdomain>
References: <Pine.LNX.4.33.0103290611001.15185-100000@dogfox.localdomain>
Sender: owner-devfs@xxxxxxxxxxx
Will Newton writes:
> 
> I am using the config that comes with devfs to handle permissions over
> reboots. Unfortunately I have a problem with saving pty permissions.
> 
> Basically if I (me, the user) open a pty it adds an entry in
> /dev-state/pty:
> 
> crw-------    1 will     will     136,   2 Mar 29 05:53 1
> 
> This is OK if I am the only user on the machine (which I usually am), but
> when another user comes to use the machine:
> 
> crw--w----    1 root     tty      136,   7 Mar 29 06:13 2
> 
> And so on. Next user logs in "Permission denied".

That's what the IGNORE action is for. I've updated the sample
devfsd.conf file to give this hint. Here's the relevant portion:
REGISTER        ^pt[sy]/.*      IGNORE
CHANGE          ^pt[sy]/.*      IGNORE
REGISTER        ^pt[sy]/.*      IGNORE
REGISTER        .*              COPY    /dev-state/$devname $devpath
CHANGE          .*              COPY    $devpath /dev-state/$devname
CREATE          .*              COPY    $devpath /dev-state/$devname

If this doesn't work, then let me know.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • pty perms, Will Newton
    • Re: pty perms, Richard Gooch <=