login makes /dev/ttySx inaccessible to intended owners
Roland Rosenfeld (roland@spinnaker.rhein.de)
Wed, 24 Jan 1996 19:05:36 +0100
In article <9601240233.AA12237@sun1.lrz-muenchen.de>
Pilch <ucc02aa@sunmail.lrz-muenchen.de> wrote:
> Suppose user ebruehl of group ebsh logged in to my system by modem.
> After logging out he will leave the modem device owner status changed:
> lrwxrwxrwx 1 uucp uucp 5 Aug 20 11:58 /dev/modem -> ttyS1
> crw-rw---- 1 ebruehl ebsh 4, 65 Jan 23 12:38 /dev/ttyS1
> I want these devices to be accessible to a special group of non-root
> users, which is not the same as ebsh. Now these users can no longer
> send faxes, as soon as somebody logged in.
You should not use /dev/modem as a symbolic link, but use /dev/ttyS1
direct. mgetty tries to reset the device to the right
owner/permissions, but mgetty does not see, that /dev/modem is a link,
so it changes the owner/permission of /dev/modem and /dev/ttyS1 keeps
changed...
Ciao
Roland
--
* Internet: roland@spinnaker.rhein.de * Fido: 2:2450/111.13 *