vince,
what distribution are you running on? this probably
isn't relevant, but you never know... might be useful
info.
On Thu, 2002-10-10 at 01:04, vince cagud wrote:
> 3.) owner2 is a member of group1 but his default group is not group1
how do you set a default group? on my box (mandrake 8.2), i don't
see what "default group" means. there is a group that is the same
name as the login. i suppose that's the same as my default group.
but that's not useful in the context of your question.
now, you can add a person to a group (edit /etc/groups, and for the
group you want, add a person (e.g., ",tiger") to the group.
if you're using X, you might want to log out of X (there might be
an easier way, but this is the simplest. if i do, for instance,
Ctrl-Alt-F1 and then login as tiger and then do groups, i find i'm in
the group i just added myself into. but if i just start another
Rxvt terminal in X and do "groups", i'm not in the group i just added
myself to. groups, it seems, are inherited from the initial login.
and if you're in X, the initial login is from when you authenticated
to X via xdm, gdm or kdm.
> the actual unix command to change groups ON AN INTERACTIVE LOGIN SESSION
> is newgrp <groupname>. i need something like that just for the ssh
> session of a CVS write operation(import, commit, etc).
this might work. but for me (Mandrake 8.2) it doesn't. now, i've
got something in sudoers so i can do, for example, "sudo su -l <user>"
and i can do that without having to type my password (although setting
it up so that you type your password should still work, i just have
my notebook setup so i can sudo as anyone else and not have to type
my password in). and when i do, for example:
sudo -u tiger newgrp
(because newgrp is suid), then i am now in the new group that i
added. but it is only for the Rxvt session i opened. in all my
other Rxvt sessions in X, i'm not in the group i wanted to join.
the simplest thing, i think (not tested, but should work) would
be to exit X, and then login again as that user. at that point,
you should be in the CVS group you created.
note: i am aware that the above might be damn confused :).
complain to the list if it doesn't work. i might then perform
some work to make the above *less* confused :).
tiger
--
Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Veritas liberabit vos.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]