Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229862

Re: Debian 10 64bit

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: Debian 10 64bit
Date 2020-12-20 18:10 +0100
Message-ID <Boanw-54O-7@gated-at.bofh.it> (permalink)
References (5 earlier) <Bn34K-4i9-7@gated-at.bofh.it> <Bn3ep-4ln-3@gated-at.bofh.it> <Bnu4W-42c-5@gated-at.bofh.it> <BnQIa-1bQ-9@gated-at.bofh.it> <Boanw-54O-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Sun, Dec 20, 2020 at 11:32:33AM +0000, mick crane wrote:
> I noticed that if you add yourself to sudo group in /etc/group you
> have to logout and log back in for it to be noticed.

If you don't want to log out of the shell you can do this:

$ exec sg sudo "newgrp $(id -ng)"

The "exec" causes what follows to replace the current shell. Without
this you'd end up with two extra shells running and would have to
"exit" three times to close them.

"sg sudo" causes the following command to be executed with primary
group of "sudo".

"newgrp $(id -ng)" puts you back in your original primary group,
leaving you with group "sudo" as an additional group.

You can just do "newgroup sudo" but this:

- starts an extra shell so you'd have to "exit" it twice

- leaves you with "sudo" as your primary group

You can just do "su - $USER" but this will ask you for your
password.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Debian 10 64bit Jerry Mellon <jfmellon@netscape.net> - 2020-12-15 01:50 +0100
  Re: Debian 10 64bit Peter Ehlert <peter@sdi-baja.com> - 2020-12-15 03:00 +0100
  Re: Debian 10 64bit john doe <johndoe65534@mail.com> - 2020-12-15 08:10 +0100
  Re: Debian 10 64bit Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-15 10:30 +0100
    Re: Debian 10 64bit john doe <johndoe65534@mail.com> - 2020-12-15 11:40 +0100
      Re: Debian 10 64bit Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-15 12:40 +0100
      Re: Debian 10 64bit Tixy <tixy@yxit.co.uk> - 2020-12-15 18:40 +0100
        Re: Debian 10 64bit "Gareth Evans" <donotspam@fastmail.fm> - 2020-12-15 19:10 +0100
          Re: Debian 10 64bit Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-15 19:20 +0100
            Re: Debian 10 64bit Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-15 19:50 +0100
              Re: Debian 10 64bit Nicholas Geovanis <nickgeovanis@gmail.com> - 2020-12-15 21:20 +0100
                Re: Debian 10 64bit <tomas@tuxteam.de> - 2020-12-16 10:50 +0100
            Re: Debian 10 64bit "Gareth Evans" <donotspam@fastmail.fm> - 2020-12-15 19:50 +0100
            Re: Debian 10 64bit "Gareth Evans" <garethevans@fastmail.fm> - 2020-12-15 20:00 +0100
          Re: Debian 10 64bit Brian <ad44@cityscape.co.uk> - 2020-12-15 22:00 +0100
        Re: Debian 10 64bit john doe <johndoe65534@mail.com> - 2020-12-15 19:40 +0100
          Re: Debian 10 64bit Brian <ad44@cityscape.co.uk> - 2020-12-15 20:40 +0100
            Re: Debian 10 64bit Keith Bainbridge <ke1thozgroups@gmx.com> - 2020-12-16 11:20 +0100
              Re: Debian 10 64bit deloptes <deloptes@gmail.com> - 2020-12-16 11:40 +0100
              Re: Debian 10 64bit Peter Ehlert <peter@sdi-baja.com> - 2020-12-16 15:30 +0100
              Re: Debian 10 64bit David Wright <deblis@lionunicorn.co.uk> - 2020-12-16 22:50 +0100
              Re: Debian 10 64bit Steven Mainor <steve@degga.net> - 2020-12-17 12:30 +0100
          Re: Debian 10 64bit David Wright <deblis@lionunicorn.co.uk> - 2020-12-16 23:10 +0100
            Re: Debian 10 64bit Brian <ad44@cityscape.co.uk> - 2020-12-17 01:20 +0100
              Re: Debian 10 64bit Tixy <tixy@yxit.co.uk> - 2020-12-17 11:00 +0100
            Re: Debian 10 64bit <tomas@tuxteam.de> - 2020-12-17 16:10 +0100
              Re: Debian 10 64bit Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-17 16:20 +0100
                Re: Debian 10 64bit David Wright <deblis@lionunicorn.co.uk> - 2020-12-17 17:30 +0100
                Re: Debian 10 64bit <tomas@tuxteam.de> - 2020-12-17 17:40 +0100
                Re: Debian 10 64bit steef <debian.linux@home.nl> - 2020-12-17 23:00 +0100
                Re: Debian 10 64bit David Wright <deblis@lionunicorn.co.uk> - 2020-12-17 17:40 +0100
                Re: Debian 10 64bit <tomas@tuxteam.de> - 2020-12-18 21:10 +0100
                Re: Debian 10 64bit <tomas@tuxteam.de> - 2020-12-18 21:00 +0100
                Re: Debian 10 64bit David Wright <deblis@lionunicorn.co.uk> - 2020-12-19 21:10 +0100
                Re: Debian 10 64bit Andy Smith <andy@strugglers.net> - 2020-12-20 18:10 +0100
                Re: Debian 10 64bit Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-21 14:10 +0100

csiph-web