Re: adding user to a group

2021-01-10 Thread Bodie
On 10.1.2021 12:06, Ville Valkonen wrote: Not true. It's opposite. -- Ville I tried that lately on one of installs. Using -G it removed me from already assigned groups and left only that new one provided (unless you specify ALL of them after -G switch) While using -S resulted in behavior

Re: adding user to a group

2021-01-10 Thread Ville Valkonen
Not true. It's opposite. -- Ville On Fri 8. Jan 2021 at 19.53, Bodie wrote: > > > On 8.1.2021 16:21, Rudolf Sykora wrote: > > Dear list, > > > > > > I tried to add myself to the "dialer" group: > > > > #usermod -G dialer ruda > > > > But when I write > > > > $groups > > > > in a terminal I

Re: adding user to a group

2021-01-08 Thread Rudolf Sykora
Todd C. Miller writes: > You need to login in again. Logging in via ssh, a virtual console, > X11 or running su will set the groups list. Setting groups is a > privileged operation so simply starting a new shell or opening a > new xterm is not sufficient. Thanks, su helped. (Although I do

adding user to a group

2021-01-08 Thread Rudolf Sykora
Dear list, I tried to add myself to the "dialer" group: #usermod -G dialer ruda But when I write $groups in a terminal I still do not see the new group. Not even if I open a new login shell (by writing "ksh -l"). However, when I log in in a text console (ctrl-alt-1), I see the new group

Re: adding user to a group

2021-01-08 Thread Bodie
On 8.1.2021 16:21, Rudolf Sykora wrote: Dear list, I tried to add myself to the "dialer" group: #usermod -G dialer ruda But when I write $groups in a terminal I still do not see the new group. Not even if I open a new login shell (by writing "ksh -l"). However, when I log in in a text

Re: adding user to a group

2021-01-08 Thread Ian Darwin
On Fri, Jan 08, 2021 at 05:20:36PM +0100, Rudolf Sykora wrote: > > Todd C. Miller writes: > > > You need to login in again. Logging in via ssh, a virtual console, > > X11 or running su will set the groups list. Setting groups is a > > privileged operation so simply starting a new shell or

Re: adding user to a group

2021-01-08 Thread Martijn van Duren
User and group information is set during login. When running a new shell with -l it only reads the shell profile: -l Login shell. If the basename the shell is called with (i.e. argv[0]) starts with ‘-’ or if this option is used, the shell is assumed to be a

Re: adding user to a group

2021-01-08 Thread Todd C . Miller
On Fri, 08 Jan 2021 16:21:08 +0100, Rudolf Sykora wrote: > I tried to add myself to the "dialer" group: > > #usermod -G dialer ruda > > But when I write > > $groups > > in a terminal I still do not see the new group. Not even if I open a new logi > n > shell (by writing "ksh -l"). However, when I