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


Groups > linux.debian.user > #165626 > unrolled thread

Sudo

Started byFrank Jones <sandyman45@sky.com>
First post2016-03-19 17:40 +0100
Last post2016-03-21 12:00 +0100
Articles 20 on this page of 40 — 24 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Sudo Frank Jones <sandyman45@sky.com> - 2016-03-19 17:40 +0100
    Re: Sudo humbert.olivier.1@free.fr - 2016-03-19 17:50 +0100
    Re: Sudo Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-03-19 18:10 +0100
      Re: Sudo doug <dmcgarrett@optonline.net> - 2016-03-19 18:40 +0100
        Re: Sudo John Hasler <jhasler@newsguy.com> - 2016-03-19 18:50 +0100
          Re: Sudo Keith Bainbridge <keithrbaugroups@gmail.com> - 2016-03-20 06:10 +0100
            Re: Sudo Adam Wilson <moxalt@riseup.net> - 2016-03-20 09:30 +0100
            Re: Sudo Dan Ritter <dsr@randomstring.org> - 2016-03-20 16:30 +0100
      Re: Sudo Joe <joe@jretrading.com> - 2016-03-19 19:40 +0100
        Re: Sudo Sven Arvidsson <sa@whiz.se> - 2016-03-19 20:10 +0100
          Re: Sudo Joe <joe@jretrading.com> - 2016-03-19 20:40 +0100
            Re: Sudo Adam Wilson <moxalt@riseup.net> - 2016-03-20 09:30 +0100
              Re: Sudo Michael Milliman <michael.e.milliman@gmail.com> - 2016-03-21 05:40 +0100
                Re: Sudo Wolf Halton <wolf.halton@gmail.com> - 2016-03-21 06:30 +0100
                  Re: Sudo Michael Milliman <michael.e.milliman@gmail.com> - 2016-03-21 17:10 +0100
                    Re: Sudo Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-03-21 18:00 +0100
                      Re: Sudo Richard Hector <richard@walnut.gen.nz> - 2016-03-21 22:30 +0100
                Re: Sudo Richard Hector <richard@walnut.gen.nz> - 2016-03-21 09:50 +0100
                  Re: Sudo <tomas@tuxteam.de> - 2016-03-21 10:20 +0100
                    Re: Sudo Richard Hector <richard@walnut.gen.nz> - 2016-03-21 22:40 +0100
                      Re: Sudo <tomas@tuxteam.de> - 2016-03-22 09:00 +0100
                Re: Sudo Thomas D Dial <tdial@cox.net> - 2016-03-24 03:00 +0100
                  Re: Sudo Stefan Monnier <monnier@iro.umontreal.ca> - 2016-03-24 14:50 +0100
                    Re: Sudo David Wright <deblis@lionunicorn.co.uk> - 2016-03-24 15:50 +0100
                      Re: Sudo Stefan Monnier <monnier@iro.umontreal.ca> - 2016-03-24 16:20 +0100
                        Re: Sudo David Wright <deblis@lionunicorn.co.uk> - 2016-03-25 06:00 +0100
                        Re: Sudo Curt <curty@free.fr> - 2016-03-25 11:30 +0100
                Re: Sudo Adam Wilson <moxalt@riseup.net> - 2016-04-03 20:40 +0200
                  Re: Sudo Michael Milliman <michael.e.milliman@gmail.com> - 2016-04-04 16:00 +0200
    Re: Sudo Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-03-19 18:20 +0100
    Re: Sudo John Hasler <jhasler@newsguy.com> - 2016-03-19 18:40 +0100
    Re: Sudo Gene Heskett <gheskett@shentel.net> - 2016-03-19 19:50 +0100
    Re: Sudo <tomas@tuxteam.de> - 2016-03-19 22:50 +0100
      Re: Sudo Lisi Reisz <lisi.reisz@gmail.com> - 2016-03-20 01:30 +0100
        Re: Sudo Ric Moore <wayward4now@gmail.com> - 2016-03-20 01:50 +0100
          Re: Sudo Lisi Reisz <lisi.reisz@gmail.com> - 2016-03-20 02:00 +0100
            Re: Sudo Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-03-20 02:40 +0100
    Re: Sudo Jude DaShiell <jdashiel@panix.com> - 2016-03-21 06:00 +0100
      Re: Sudo Lisi Reisz <lisi.reisz@gmail.com> - 2016-03-21 11:00 +0100
        Re: Sudo shawn wilson <ag4ve.us@gmail.com> - 2016-03-21 12:00 +0100

Page 1 of 2  [1] 2  Next page →


#165626 — Sudo

FromFrank Jones <sandyman45@sky.com>
Date2016-03-19 17:40 +0100
SubjectSudo
Message-ID<res4V-2nd-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

I have only been using Linux for a short time why cant I use SUDO on theterminal with Debian I use it with Linu Mint.

[toc] | [next] | [standalone]


#165627

Fromhumbert.olivier.1@free.fr
Date2016-03-19 17:50 +0100
Message-ID<reseC-2qI-9@gated-at.bofh.it>
In reply to#165626
Hi Frank,

> I have only been using Linux for a short time why cant I use SUDO on the 
> terminal with Debian I use it with Linu Mint. 

Because Debian uses by default the "su" command.
You can learn about it using "man su" in a terminal.

If you really want to use sudo, you can read at https://wiki.debian.org/sudo

Hope that helps,
Olivier

[toc] | [prev] | [next] | [standalone]


#165628

FromAndrew McGlashan <andrew.mcglashan@affinityvision.com.au>
Date2016-03-19 18:10 +0100
Message-ID<resxX-2NP-3@gated-at.bofh.it>
In reply to#165626

[Multipart message — attachments visible in raw view] — view raw

Hi,

On 20/03/2016 3:15 AM, Frank Jones wrote:
> I have only been using Linux for a short time why cant I use SUDO on the
> terminal with Debian I use it with Linu Mint.

There is, or was at the very least, an installation choice of whether or
not to setup sudo.

It is not foreign to /normal/ Debian.

Regards
AndrewM

[toc] | [prev] | [next] | [standalone]


#165631

Fromdoug <dmcgarrett@optonline.net>
Date2016-03-19 18:40 +0100
Message-ID<ret10-309-17@gated-at.bofh.it>
In reply to#165628
On 03/19/2016 01:01 PM, Andrew McGlashan wrote:
> Hi,
>
> On 20/03/2016 3:15 AM, Frank Jones wrote:
>> I have only been using Linux for a short time why cant I use SUDO on the
>> terminal with Debian I use it with Linu Mint.
> There is, or was at the very least, an installation choice of whether or
> not to setup sudo.
>
> It is not foreign to /normal/ Debian.
>
> Regards
> AndrewM
>
I usually use PCLinuxOS, a distro which has a great distaste for sudo. 
As the debian people note, su allows someone with a root password (and
nobody else) to make system modifications, etc., which might harm the 
operation of the system. Sudo basically allows anyone with a user password
to do the same thing, and that's dangerous. The proper use of sudo 
(there IS a proper use) is to assign _specific_ tasks to some specific user,
so that such user can do _only_ certain tasks, like downloading programs 
from the repos, but not other tasks, which are assigned only to those
who have root password permissions, and presumably know what they're doing.

--doug

[toc] | [prev] | [next] | [standalone]


#165632

FromJohn Hasler <jhasler@newsguy.com>
Date2016-03-19 18:50 +0100
Message-ID<retaG-33v-7@gated-at.bofh.it>
In reply to#165631
doug writes:
> su allows someone with a root password (and nobody else) to make
> system modifications, etc., which might harm the operation of the
> system. Sudo basically allows anyone with a user password to do the
> same thing

No it doesn't.  Only users who have been granted sudo privileges can use
sudo and only for the commands permitted them.
-- 
John Hasler 
jhasler@newsguy.com
Elmwood, WI USA

[toc] | [prev] | [next] | [standalone]


#165657

FromKeith Bainbridge <keithrbaugroups@gmail.com>
Date2016-03-20 06:10 +0100
Message-ID<reDMK-2aH-5@gated-at.bofh.it>
In reply to#165632
On 20 Mar 2016, John Hasler <jhasler@newsguy.com> wrote:
>doug writes:
>> su allows someone with a root password (and nobody else) to make
>> system modifications, etc., which might harm the operation of the
>> system. Sudo basically allows anyone with a user password to do the
>> same thing
>
>No it doesn't.  Only users who have been granted sudo privileges can
>use
>sudo and only for the commands permitted them.

In reality, how many PC s have more than 1 user.  

If I had users other than myself, I'd think hard about a ding them to sudoers
Keith Bainbridge

0447 667 468 

Keithrbaugroups@gmail.com 

Sent from my APad 

[toc] | [prev] | [next] | [standalone]


#165661

FromAdam Wilson <moxalt@riseup.net>
Date2016-03-20 09:30 +0100
Message-ID<reGUi-4dN-5@gated-at.bofh.it>
In reply to#165657

[Multipart message — attachments visible in raw view] — view raw

On Sun, 20 Mar 2016 16:03:32 +1100
Keith Bainbridge <keithrbaugroups@gmail.com> wrote:

> On 20 Mar 2016, John Hasler <jhasler@newsguy.com> wrote:
> >doug writes:  
> >> su allows someone with a root password (and nobody else) to make
> >> system modifications, etc., which might harm the operation of the
> >> system. Sudo basically allows anyone with a user password to do the
> >> same thing  
> >
> >No it doesn't.  Only users who have been granted sudo privileges can
> >use
> >sudo and only for the commands permitted them.  
> 
> In reality, how many PC s have more than 1 user.

We have UNIX's multi-user design to thank for this.

[toc] | [prev] | [next] | [standalone]


#165700

FromDan Ritter <dsr@randomstring.org>
Date2016-03-20 16:30 +0100
Message-ID<reNsJ-gQ-7@gated-at.bofh.it>
In reply to#165657
On Sun, Mar 20, 2016 at 04:03:32PM +1100, Keith Bainbridge wrote:
> On 20 Mar 2016, John Hasler <jhasler@newsguy.com> wrote:
> >doug writes:
> >> su allows someone with a root password (and nobody else) to make
> >> system modifications, etc., which might harm the operation of the
> >> system. Sudo basically allows anyone with a user password to do the
> >> same thing
> >
> >No it doesn't.  Only users who have been granted sudo privileges can
> >use
> >sudo and only for the commands permitted them.
> 
> In reality, how many PC s have more than 1 user.  
> 
> If I had users other than myself, I'd think hard about a ding them to sudoers

And there are lots of good config options to make a multi-system
multi-user shared sudoers file worthwhile.

You can make groups of hosts, groups of users, and groups of
commands, and assign them different privileges.

-dsr-

[toc] | [prev] | [next] | [standalone]


#165636

FromJoe <joe@jretrading.com>
Date2016-03-19 19:40 +0100
Message-ID<retX3-3EF-9@gated-at.bofh.it>
In reply to#165628
On Sun, 20 Mar 2016 04:01:03 +1100
Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> wrote:

> Hi,
> 
> On 20/03/2016 3:15 AM, Frank Jones wrote:
> > I have only been using Linux for a short time why cant I use SUDO
> > on the terminal with Debian I use it with Linu Mint.  
> 
> There is, or was at the very least, an installation choice of whether
> or not to setup sudo.
> 
> It is not foreign to /normal/ Debian.
> 

I've never seen sudo installed by default in any Debian, and I begin
with expert minimal netinstalls of stable, and I've never seen it
offered as an option there. My first two actions on reboot are to
install sudo and mc.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#165639

FromSven Arvidsson <sa@whiz.se>
Date2016-03-19 20:10 +0100
Message-ID<reuq6-44R-7@gated-at.bofh.it>
In reply to#165636

[Multipart message — attachments visible in raw view] — view raw

On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:
> I've never seen sudo installed by default in any Debian, and I begin
> with expert minimal netinstalls of stable, and I've never seen it
> offered as an option there. My first two actions on reboot are to
> install sudo and mc.

    By default you are asked to provide a password for the “root”
    (administrator) account and information necessary to create one
    regular user account. If you do not specify a password for the
    “root” user this account will be disabled but the sudo package will
    be installed later to enable administrative tasks to be carried out
    on the new system. 

From https://www.debian.org/releases/stable/amd64/apas03.html.en

See also the note about the desktop task in 
https://wiki.debian.org/sudo

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



[toc] | [prev] | [next] | [standalone]


#165642

FromJoe <joe@jretrading.com>
Date2016-03-19 20:40 +0100
Message-ID<reuT8-4he-3@gated-at.bofh.it>
In reply to#165639
On Sat, 19 Mar 2016 19:57:56 +0100
Sven Arvidsson <sa@whiz.se> wrote:

> On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:
> > I've never seen sudo installed by default in any Debian, and I begin
> > with expert minimal netinstalls of stable, and I've never seen it
> > offered as an option there. My first two actions on reboot are to
> > install sudo and mc.  
> 
>     By default you are asked to provide a password for the “root”
>     (administrator) account and information necessary to create one
>     regular user account. If you do not specify a password for the
>     “root” user this account will be disabled but the sudo package
> will be installed later to enable administrative tasks to be carried
> out on the new system. 
> 
> From https://www.debian.org/releases/stable/amd64/apas03.html.en
> 
>

OK, I didn't know that.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#165659

FromAdam Wilson <moxalt@riseup.net>
Date2016-03-20 09:30 +0100
Message-ID<reGUi-4dN-1@gated-at.bofh.it>
In reply to#165642

[Multipart message — attachments visible in raw view] — view raw

On Sat, 19 Mar 2016 19:30:57 +0000
Joe <joe@jretrading.com> wrote:

> On Sat, 19 Mar 2016 19:57:56 +0100
> Sven Arvidsson <sa@whiz.se> wrote:
> 
> > On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:  
> > > I've never seen sudo installed by default in any Debian, and I
> > > begin with expert minimal netinstalls of stable, and I've never
> > > seen it offered as an option there. My first two actions on
> > > reboot are to install sudo and mc.    
> > 
> >     By default you are asked to provide a password for the “root”
> >     (administrator) account and information necessary to create one
> >     regular user account. If you do not specify a password for the
> >     “root” user this account will be disabled but the sudo package
> > will be installed later to enable administrative tasks to be carried
> > out on the new system. 
> > 
> > From https://www.debian.org/releases/stable/amd64/apas03.html.en
> > 
> >  
> 
> OK, I didn't know that.
> 

When you carry out a net install (or any installation, in fact) if you
decline to provide a root password then sudo is automatically installed
and configured for you, with the first user you create able to become
root with sudo.

This is all explained in the installer at the root password stage-
there is no need to install sudo manually post-installation.

If you want sudo, just don't provide a root password in the
installation.

[toc] | [prev] | [next] | [standalone]


#165744

FromMichael Milliman <michael.e.milliman@gmail.com>
Date2016-03-21 05:40 +0100
Message-ID<reZNg-ue-9@gated-at.bofh.it>
In reply to#165659

On 03/20/2016 03:26 AM, Adam Wilson wrote:
> On Sat, 19 Mar 2016 19:30:57 +0000
> Joe <joe@jretrading.com> wrote:
>
>> On Sat, 19 Mar 2016 19:57:56 +0100
>> Sven Arvidsson <sa@whiz.se> wrote:
>>
>>> On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:
>>>> I've never seen sudo installed by default in any Debian, and I
>>>> begin with expert minimal netinstalls of stable, and I've never
>>>> seen it offered as an option there. My first two actions on
>>>> reboot are to install sudo and mc.
>>>      By default you are asked to provide a password for the “root”
>>>      (administrator) account and information necessary to create one
>>>      regular user account. If you do not specify a password for the
>>>      “root” user this account will be disabled but the sudo package
>>> will be installed later to enable administrative tasks to be carried
>>> out on the new system.
>>>
>>> From https://www.debian.org/releases/stable/amd64/apas03.html.en
>>>
>>>   
>> OK, I didn't know that.
>>
> When you carry out a net install (or any installation, in fact) if you
> decline to provide a root password then sudo is automatically installed
> and configured for you, with the first user you create able to become
> root with sudo.
>
> This is all explained in the installer at the root password stage-
> there is no need to install sudo manually post-installation.
>
> If you want sudo, just don't provide a root password in the
> installation.
On the other hand, I use both su and sudo.  If I have a protracted 
session with several different tasks that I need to complete all 
requiring root access I su to the root user.  If on the other hand, I 
only need to perform a single command, or so, I use sudo.  Both have 
their uses, though as already noted, Debian generally does one or the 
other as a default.  I install with a root password, and then bring in 
the sudo package post-installation.

-- 
Mike

[toc] | [prev] | [next] | [standalone]


#165749

FromWolf Halton <wolf.halton@gmail.com>
Date2016-03-21 06:30 +0100
Message-ID<rf0zE-15e-7@gated-at.bofh.it>
In reply to#165744

[Multipart message — attachments visible in raw view] — view raw

Sudo -i opens a session as root with environment as if you did su -  except your non-root admin user doesn't have to know the root password.  

Wolf Halton
Atlanta Cloud Technology
Cybersecurity & Disaster Recovery Solutions 
Mobile/Text 678-687-6104

--
Sent from my iPhone. Creative word completion courtesy of Apple, Inc. 

> On Mar 21, 2016, at 00:30, Michael Milliman <michael.e.milliman@gmail.com> wrote:
> 
> 
> 
>> On 03/20/2016 03:26 AM, Adam Wilson wrote:
>> On Sat, 19 Mar 2016 19:30:57 +0000
>> Joe <joe@jretrading.com> wrote:
>> 
>>> On Sat, 19 Mar 2016 19:57:56 +0100
>>> Sven Arvidsson <sa@whiz.se> wrote:
>>> 
>>>>> On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:
>>>>> I've never seen sudo installed by default in any Debian, and I
>>>>> begin with expert minimal netinstalls of stable, and I've never
>>>>> seen it offered as an option there. My first two actions on
>>>>> reboot are to install sudo and mc.
>>>>     By default you are asked to provide a password for the “root”
>>>>     (administrator) account and information necessary to create one
>>>>     regular user account. If you do not specify a password for the
>>>>     “root” user this account will be disabled but the sudo package
>>>> will be installed later to enable administrative tasks to be carried
>>>> out on the new system.
>>>> 
>>>> From https://www.debian.org/releases/stable/amd64/apas03.html.en
>>> OK, I didn't know that.
>> When you carry out a net install (or any installation, in fact) if you
>> decline to provide a root password then sudo is automatically installed
>> and configured for you, with the first user you create able to become
>> root with sudo.
>> 
>> This is all explained in the installer at the root password stage-
>> there is no need to install sudo manually post-installation.
>> 
>> If you want sudo, just don't provide a root password in the
>> installation.
> On the other hand, I use both su and sudo.  If I have a protracted session with several different tasks that I need to complete all requiring root access I su to the root user.  If on the other hand, I only need to perform a single command, or so, I use sudo.  Both have their uses, though as already noted, Debian generally does one or the other as a default.  I install with a root password, and then bring in the sudo package post-installation.
> 
> -- 
> Mike
> 

[toc] | [prev] | [next] | [standalone]


#165778

FromMichael Milliman <michael.e.milliman@gmail.com>
Date2016-03-21 17:10 +0100
Message-ID<rfaz0-86k-9@gated-at.bofh.it>
In reply to#165749

[Multipart message — attachments visible in raw view] — view raw

On 03/21/2016 12:22 AM, Wolf Halton wrote:
> Sudo -i opens a session as root with environment as if you did su - 
>  except your non-root admin user doesn't have to know the root password.
Hmm...I wasn't aware of that particular switch....don't need su anymore 
that way.  Next install may be su-less:-)
> Wolf Halton
> Atlanta Cloud Technology
> Cybersecurity & Disaster Recovery Solutions
> Mobile/Text 678-687-6104
>
> --
> Sent from my iPhone. Creative word completion courtesy of Apple, Inc.
>
> On Mar 21, 2016, at 00:30, Michael Milliman 
> <michael.e.milliman@gmail.com <mailto:michael.e.milliman@gmail.com>> 
> wrote:
>
>>
>>
>> On 03/20/2016 03:26 AM, Adam Wilson wrote:
>>> On Sat, 19 Mar 2016 19:30:57 +0000
>>> Joe <joe@jretrading.com <mailto:joe@jretrading.com>> wrote:
>>>
>>>> On Sat, 19 Mar 2016 19:57:56 +0100
>>>> Sven Arvidsson <sa@whiz.se <mailto:sa@whiz.se>> wrote:
>>>>
>>>>> On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:
>>>>>> I've never seen sudo installed by default in any Debian, and I
>>>>>> begin with expert minimal netinstalls of stable, and I've never
>>>>>> seen it offered as an option there. My first two actions on
>>>>>> reboot are to install sudo and mc.
>>>>>     By default you are asked to provide a password for the “root”
>>>>>     (administrator) account and information necessary to create one
>>>>>     regular user account. If you do not specify a password for the
>>>>>     “root” user this account will be disabled but the sudo package
>>>>> will be installed later to enable administrative tasks to be carried
>>>>> out on the new system.
>>>>>
>>>>> From https://www.debian.org/releases/stable/amd64/apas03.html.en
>>>>>
>>>>>
>>>> OK, I didn't know that.
>>>>
>>> When you carry out a net install (or any installation, in fact) if you
>>> decline to provide a root password then sudo is automatically installed
>>> and configured for you, with the first user you create able to become
>>> root with sudo.
>>>
>>> This is all explained in the installer at the root password stage-
>>> there is no need to install sudo manually post-installation.
>>>
>>> If you want sudo, just don't provide a root password in the
>>> installation.
>> On the other hand, I use both su and sudo.  If I have a protracted 
>> session with several different tasks that I need to complete all 
>> requiring root access I su to the root user.  If on the other hand, I 
>> only need to perform a single command, or so, I use sudo.  Both have 
>> their uses, though as already noted, Debian generally does one or the 
>> other as a default.  I install with a root password, and then bring 
>> in the sudo package post-installation.
>>
>> -- 
>> Mike
>>

-- 
Mike

[toc] | [prev] | [next] | [standalone]


#165782

FromCharlie Kravetz <cjk@teamcharliesangels.com>
Date2016-03-21 18:00 +0100
Message-ID<rfblo-8qY-7@gated-at.bofh.it>
In reply to#165778
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 21 Mar 2016 11:00:13 -0500
Michael Milliman <michael.e.milliman@gmail.com> wrote:

>On 03/21/2016 12:22 AM, Wolf Halton wrote:
>> Sudo -i opens a session as root with environment as if you did su - 
>>  except your non-root admin user doesn't have to know the root password.  

That is incorrect. Anytime sudo is used, a password is required.
sudo -i does open a root session, after the password is entered. Of
course, you can set it up to NOT require a password for any user, but
that is not by default.


>Hmm...I wasn't aware of that particular switch....don't need su anymore 
>that way.  Next install may be su-less:-)
>> Wolf Halton
>> Atlanta Cloud Technology
>> Cybersecurity & Disaster Recovery Solutions
>> Mobile/Text 678-687-6104
>>
>> --
>> Sent from my iPhone. Creative word completion courtesy of Apple, Inc.
>>
>> On Mar 21, 2016, at 00:30, Michael Milliman 
>> <michael.e.milliman@gmail.com <mailto:michael.e.milliman@gmail.com>> 
>> wrote:
>>  
>>>
>>>
>>> On 03/20/2016 03:26 AM, Adam Wilson wrote:  
>>>> On Sat, 19 Mar 2016 19:30:57 +0000
>>>> Joe <joe@jretrading.com <mailto:joe@jretrading.com>> wrote:
>>>>  
>>>>> On Sat, 19 Mar 2016 19:57:56 +0100
>>>>> Sven Arvidsson <sa@whiz.se <mailto:sa@whiz.se>> wrote:
>>>>>  
>>>>>> On Sat, 2016-03-19 at 18:38 +0000, Joe wrote:  
>>>>>>> I've never seen sudo installed by default in any Debian, and I
>>>>>>> begin with expert minimal netinstalls of stable, and I've never
>>>>>>> seen it offered as an option there. My first two actions on
>>>>>>> reboot are to install sudo and mc.  
>>>>>>     By default you are asked to provide a password for the “root”
>>>>>>     (administrator) account and information necessary to create one
>>>>>>     regular user account. If you do not specify a password for the
>>>>>>     “root” user this account will be disabled but the sudo package
>>>>>> will be installed later to enable administrative tasks to be carried
>>>>>> out on the new system.
>>>>>>
>>>>>> From https://www.debian.org/releases/stable/amd64/apas03.html.en
>>>>>>
>>>>>>  
>>>>> OK, I didn't know that.
>>>>>  
>>>> When you carry out a net install (or any installation, in fact) if you
>>>> decline to provide a root password then sudo is automatically installed
>>>> and configured for you, with the first user you create able to become
>>>> root with sudo.
>>>>
>>>> This is all explained in the installer at the root password stage-
>>>> there is no need to install sudo manually post-installation.
>>>>
>>>> If you want sudo, just don't provide a root password in the
>>>> installation.  
>>> On the other hand, I use both su and sudo.  If I have a protracted 
>>> session with several different tasks that I need to complete all 
>>> requiring root access I su to the root user.  If on the other hand, I 
>>> only need to perform a single command, or so, I use sudo.  Both have 
>>> their uses, though as already noted, Debian generally does one or the 
>>> other as a default.  I install with a root password, and then bring 
>>> in the sudo package post-installation.
>>>
>>> -- 
>>> Mike
>>>  
>


- -- 
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM.   [http://keepingdreams.com]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJW8CFvAAoJEIqui46mydCAIwUH/juiGv6foQjtIoAhPgqyHUZy
0Gc7BEOcwZ2qOc9HKqTsIPVCABn62027tUaZXvAgj2aM5SjTQuWGuIBvVzGMFkWP
+JuTpZSU7gycOqvCsuE18qQ0yf6yF4VUc54Sr/3+tNqA/XDJHPv45/709BLor2Rj
oky89z7F5j/wm7LcBjfPokrGRY3H7DgU5R4MEJAsPbddJuM9wyIDu/E5ukPeVUSg
iGrNHr9+23PJ4Dz2MF31wGj84qwFfbFnhuIGGgoiiZCummH5QWzANdggYIP0bkEm
GeDT0v8cMqmEK8ndLmJoUkQ5BNF8ylspriUY2UhnjG26g0P3UkbbPbsAtTEkyuE=
=1vsB
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#165795

FromRichard Hector <richard@walnut.gen.nz>
Date2016-03-21 22:30 +0100
Message-ID<rffyG-2WC-7@gated-at.bofh.it>
In reply to#165782
On 22/03/16 05:29, Charlie Kravetz wrote:
> On Mon, 21 Mar 2016 11:00:13 -0500
> Michael Milliman <michael.e.milliman@gmail.com> wrote:
> 
>> On 03/21/2016 12:22 AM, Wolf Halton wrote:
>>> Sudo -i opens a session as root with environment as if you did su - 
>>>  except your non-root admin user doesn't have to know the root password.  
> 
> That is incorrect. Anytime sudo is used, a password is required.

Not incorrect. Yes, a password is (usually) required. The _root_
password is not required. That's a big difference.

Richard

[toc] | [prev] | [next] | [standalone]


#165757

FromRichard Hector <richard@walnut.gen.nz>
Date2016-03-21 09:50 +0100
Message-ID<rf3Hc-337-19@gated-at.bofh.it>
In reply to#165744
On 21/03/16 17:30, Michael Milliman wrote:
> On the other hand, I use both su and sudo.  If I have a protracted
> session with several different tasks that I need to complete all
> requiring root access I su to the root user.  If on the other hand, I
> only need to perform a single command, or so, I use sudo.  Both have
> their uses, though as already noted, Debian generally does one or the
> other as a default.  I install with a root password, and then bring in
> the sudo package post-installation.
> 
> -- 

I use sudo -s for a root session. I can't remember the difference
between that and sudo -i, but it works for me.

On the other hand, if I need to be some other user, like the postgres
user, I use "sudo su postgres". There are probably better ways to do
that, too, but again, it works.

Richard

[toc] | [prev] | [next] | [standalone]


#165758

From<tomas@tuxteam.de>
Date2016-03-21 10:20 +0100
Message-ID<rf4ad-3tj-3@gated-at.bofh.it>
In reply to#165757
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Mar 21, 2016 at 09:45:32PM +1300, Richard Hector wrote:

[...]

> On the other hand, if I need to be some other user, like the postgres
> user, I use "sudo su postgres". There are probably better ways to do
> that, too, but again, it works.

  sudo -su postgres

or

  sudo -iu postgres

depending on your preferences. It's all in the manpage :)

These days I only use su for some (archaeological) installations I
stumble upon at work.

- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbvsmMACgkQBcgs9XrR2kYkhwCffbIiSEg8tl4nHjbsof3N8p99
SgoAn1E53GaR9L7sWJxIUOkQh6O3U6gt
=Obxs
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#165797

FromRichard Hector <richard@walnut.gen.nz>
Date2016-03-21 22:40 +0100
Message-ID<rffIm-30V-1@gated-at.bofh.it>
In reply to#165758
On 21/03/16 21:35, tomas@tuxteam.de wrote:
> On Mon, Mar 21, 2016 at 09:45:32PM +1300, Richard Hector wrote:
> 
> [...]
> 
>> On the other hand, if I need to be some other user, like the postgres
>> user, I use "sudo su postgres". There are probably better ways to do
>> that, too, but again, it works.
> 
>   sudo -su postgres
> 
> or
> 
>   sudo -iu postgres
> 
> depending on your preferences. It's all in the manpage :)

It is indeed - thanks :-) I try and remember such things, but it's
harder when the old way works fine as well :-)

Richard

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | linux.debian.user


csiph-web