David Krmpotic wrote: > In Ubuntu (7.04 and 6.06 at least) there is a problem with "id" command.
Thanks for the report. However I believe what you are seeing is normal expected behavior. Let me explain. > The info from the command is often not updated.. for example if I change > the user's group by newgrp command and then issue "id", I still see the > old primary group. The operating system assigns groups at the time that the user logs into the system. In order for group changes to occur the user must log in with the new configuration. The existing list of groups is not changed. This is a behavior of the operating system kernel and not something that userland commands can affect. > If I say "id username", I get the right info... The usage summary for the 'id' command says: `id' prints information about the given user, or the process running it if no user is specified. The information for the specified user comes from the present configuration. But the information for the present process comes from the present process. Those may be different. > sudo delgroup david svn > Removing user `david' from group `svn'... > done. > [EMAIL PROTECTED]:/var/svn/thoughtbag$ id > uid=1000(david) gid=1000(svn) groups=100(users),1000(svn) > [EMAIL PROTECTED]:/var/svn/thoughtbag$ id david > uid=1000(david) gid=100(users) groups=100(users) That is expected. You need to log out and log back in again to see the updates take effect to your new login process. Bob _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
