[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /dev/ttyS? dialin/dialout and modes.

In article <[🔎] 19970429180828.28062@wonderland.linux.it>,
Marco d'Itri <md@linux.it> wrote:
>On Apr 28, Miquel van Smoorenburg <miquels@cistron.nl> wrote:
> >No, you can't put uucp in the group dialout. I know what you mean; just
> >add uucp to the dialout group in /etc/group, right? But that only
> >works on login, because /bin/login calls initgroups() and youhave to
> >be root to do that.
>I can't reproduce this:
>uid=1002(marco) gid=100(users) groups=100(users)
>marco@wonderland:3:~$su uucp
>uid=10(uucp) gid=10(uucp) groups=10(uucp),20(dialout)
>marco@wonderland:3:~$su -l uucp
>uid=10(uucp) gid=10(uucp) groups=10(uucp),20(dialout)
>(Obviously I don't usually keep a passwordless user on my system :-) )

Ofcourse. I said you have to be root to be able to call initgroups().
Now how do you think "su" works? Hint:

-rwsr-xr-x   1 root     wheel       24632 Mar 29 18:10 /bin/su
   ^           ^^^^


Nonetheless I'm almost convinced the tty devices need not be owned by uucp.

|    Miquel van      |  "I need more space" "Well, why not move to Texas" |
| miquels@cistron.nl |  "No, on my account, stupid." "Stupid? Uh-oh.."    |
|   PGP fingerprint: FE 66 52 4F CD 59 A5 36  7F 39 8B 20 F1 D6 74 02     |

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: