Date: Wed, 5 Sep 2001 15:58:54 +0200 From: "Kozlovsky, Marek" <Marek.Kozlovsky@KPNQwest.com> To: "'stable@freebsd.org'" <stable@freebsd.org> Subject: weird group membership Message-ID: <31FD3FA70CBED31189E700508B6401718E0CF1@ntexgpra01>
next in thread | raw e-mail | index | archive | help
Hi, I wanted to use 'cu -l /dev/cuaa1' so I found out I have to be in 'dialer' group: buki@hal9000:/home/buki>ll /dev/cuaa1 crw-rw---- 1 uucp dialer 28, 129 Aug 29 16:29 /dev/cuaa1 So I su-ed to root and did 'pw user mod buki -G wheel dialer' checked with 'id buki': root@hal9000#id buki uid=1001(buki) gid=1001(users) groups=1001(users), 0(wheel), 68(dialer) it seems OK, so logged in as buki again, but: buki@hal9000:/home/buki>cu -l /dev/cuaa1 cu: /dev/cuaa1: Permission denied buki@hal9000:/home/buki>whoami buki buki@hal9000:/home/buki>id uid=1001(buki) gid=1001(users) groups=1001(users), 0(wheel) buki@hal9000:/home/buki>groups buki users wheel dialer The difference between output from 'id' and 'groups' makes me feel dizzy :( but when I (logged as buki) specify username (ie. 'id buki') the answer is right I am running on: FreeBSD hal9000.xxx.xx 4.4-RC FreeBSD 4.4-RC #0: Tue Aug 28 18:39:30 CEST 2001 root@hal9000.xxx.xx:/usr/src/sys/compile/HAL9000 i386 and the group file looks: buki@hal9000:/home/buki>cat /etc/group # $FreeBSD: src/etc/group,v 1.19 1999/08/27 23:23:41 peter Exp $ # wheel:*:0:root,buki daemon:*:1:daemon kmem:*:2:root sys:*:3:root tty:*:4:root operator:*:5:root mail:*:6: bin:*:7: news:*:8: man:*:9: games:*:13: staff:*:20:root guest:*:31:root bind:*:53: uucp:*:66: xten:*:67:xten dialer:*:68:buki network:*:69: mysql:*:70:mysql www:*:71:www nogroup:*:65533: nobody:*:65534: users:*:1001: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31FD3FA70CBED31189E700508B6401718E0CF1>