--
Ron McDowell
San Antonio TX
Philip Guenther wrote:
On Mon, Mar 8, 2010 at 10:12 AM, Ron McDowell <r...@fuzzwad.org> wrote:
...
su is not setting the group for me. sudo does, so I rebuilt using sudo and
everything worked fine.
~
[...@zombie(OpenBSD)]> id
uid=1000(rcm) gid=1000(rcm) groups=1000(rcm), 0(wheel), 5(operator),
12345(apache)
~
[...@zombie(OpenBSD)]> su
# id
uid=0(root) gid=1000(rcm) groups=1000(rcm), 0(wheel), 5(operator),
12345(apache)
Hmm, I don't see that behavior:
$ id
uid=1000(guenther) gid=1000(guenther) groups=1000(guenther), 0(wheel),
9(wsrc), 10000(work)
$ /usr/bin/su
Password:
# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator), 20(staff), 31(guest)
#
You're using the normal OpenBSD /usr/bin/su, right?
Philip Guenther
Yes, fresh install of the install47.iso from a couple days back, but
have rebuilt /usr/src a few times since...but no other changes other
than adding bash [hmm, let me change to /bin/sh... nope, same behavior.]
+ ssh -p 22 r...@zombie
Last login: Tue Mar 9 10:19:07 2010 from juju-eth
OpenBSD 4.7 (GENERIC) #6: Mon Mar 8 14:06:28 CST 2010
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
OpenBSD (i386) system.
Tue Mar 9 11:09:32 CST 2010
11:09AM up 20:56, 1 user, load averages: 0.15, 0.13, 0.09
USER TTY FROM LOGIN@ IDLE WHAT
rcm p0 juju-eth 11:09AM 0 w
~
[...@zombie(OpenBSD)]> id
uid=1000(rcm) gid=1000(rcm) groups=1000(rcm), 0(wheel), 5(operator),
12345(apache)
~
[...@zombie(OpenBSD)]> which su
/usr/bin/su
~
[...@zombie(OpenBSD)]> /usr/bin/su
Password:
# id
uid=0(root) gid=1000(rcm) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator), 20(staff), 31(guest)
# ^D
~
[...@zombie(OpenBSD)]> /usr/bin/su -
Password:
# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator), 20(staff), 31(guest)
# ^D
~
[...@zombie(OpenBSD)]> /usr/bin/su -l
Password:
# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator), 20(staff), 31(guest)
# ^D
~
[...@zombie(OpenBSD)]>