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


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

Why /usr/sbin is not in my root $PATH ?

Started byPierre Couderc <pierre@couderc.eu>
First post2019-02-21 09:10 +0100
Last post2019-02-24 20:20 +0100
Articles 20 on this page of 72 — 25 participants

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


Contents

  Why /usr/sbin is not in my root $PATH ? Pierre Couderc <pierre@couderc.eu> - 2019-02-21 09:10 +0100
    Re: Why /usr/sbin is not in my root $PATH ? Reco <recoverym4n@enotuniq.net> - 2019-02-21 09:20 +0100
      Re: Why /usr/sbin is not in my root $PATH ? Pierre Couderc <pierre@couderc.eu> - 2019-02-21 09:40 +0100
        Re: Why /usr/sbin is not in my root $PATH ? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-21 14:30 +0100
          Re: Why /usr/sbin is not in my root $PATH ? Reco <recoverym4n@enotuniq.net> - 2019-02-21 14:40 +0100
            Re: Why /usr/sbin is not in my root $PATH ? Reco <recoverym4n@enotuniq.net> - 2019-02-21 19:20 +0100
              Re: Why /usr/sbin is not in my root $PATH ? ghe <ghe@slsware.net> - 2019-02-21 19:40 +0100
                Re: Why /usr/sbin is not in my root $PATH ? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-21 20:00 +0100
                  Re: Why /usr/sbin is not in my root $PATH ? ghe <ghe@slsware.net> - 2019-02-21 21:10 +0100
                Re: Why /usr/sbin is not in my root $PATH ? Ric Moore <wayward4now@gmail.com> - 2019-02-21 21:40 +0100
          Re: Why /usr/sbin is not in my root $PATH ? Brad Rogers <brad@fineby.me.uk> - 2019-02-21 14:40 +0100
            Re: Why /usr/sbin is not in my root $PATH ? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-21 14:40 +0100
              Re: Why /usr/sbin is not in my root $PATH ? Brad Rogers <brad@fineby.me.uk> - 2019-02-21 14:50 +0100
              Re: Why /usr/sbin is not in my root $PATH ? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-21 17:30 +0100
                Re: Why /usr/sbin is not in my root $PATH ? Reco <recoverym4n@enotuniq.net> - 2019-02-21 18:20 +0100
                  Re: Why /usr/sbin is not in my root $PATH ? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-21 18:50 +0100
                    Re: Why /usr/sbin is not in my root $PATH ? Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-26 10:50 +0200
                  Re: Why /usr/sbin is not in my root $PATH ? ghe <ghe@slsware.net> - 2019-02-21 19:20 +0100
                    Re: Why /usr/sbin is not in my root $PATH ? Reco <recoverym4n@enotuniq.net> - 2019-02-21 19:30 +0100
                    Re: Why /usr/sbin is not in my root $PATH ? ghe <ghe@slsware.net> - 2019-05-26 15:50 +0200
                      Re: Why /usr/sbin is not in my root $PATH ? Andy Smith <andy@strugglers.net> - 2019-05-27 04:20 +0200
                        Re: Why /usr/sbin is not in my root $PATH ? Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-27 07:20 +0200
                          Re: Why /usr/sbin is not in my root $PATH ? Andy Smith <andy@strugglers.net> - 2019-05-27 07:30 +0200
                          Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Jason <electron@emypeople.net> - 2019-05-30 00:00 +0200
                            Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andy Smith <andy@strugglers.net> - 2019-05-30 01:50 +0200
                              Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) Cindy Sue Causey <butterflybytes@gmail.com> - 2019-05-30 03:50 +0200
                                Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andy Smith <andy@strugglers.net> - 2019-05-30 04:50 +0200
                                  Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-30 08:10 +0200
                                    Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andy Smith <andy@strugglers.net> - 2019-05-30 23:30 +0200
                                  Re: Ping as normal user Stefan Monnier <monnier@iro.umontreal.ca> - 2019-05-31 05:00 +0200
                                    Re: Ping as normal user rhkramer@gmail.com - 2019-05-31 13:20 +0200
                                      Re: Ping as normal user Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-31 13:30 +0200
                                        Gmail problems (was Re: Ping as normal user) rhkramer@gmail.com - 2019-05-31 15:10 +0200
                                          Re: Gmail problems (was Re: Ping as normal user) mick crane <mick.crane@gmail.com> - 2019-05-31 15:40 +0200
                                            Re: Gmail problems (was Re: Ping as normal user) Brian <ad44@cityscape.co.uk> - 2019-05-31 21:50 +0200
                              Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) Gene Heskett <gheskett@shentel.net> - 2019-05-30 05:30 +0200
                                Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-31 08:40 +0200
                                  Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-31 11:50 +0200
                                    Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-31 15:00 +0200
                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andrei POPESCU <andreimpopescu@gmail.com> - 2019-06-01 07:50 +0200
                              Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Curt <curty@free.fr> - 2019-05-30 11:20 +0200
                                Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-30 14:40 +0200
                                  Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Curt <curty@free.fr> - 2019-05-30 15:10 +0200
                                    Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-30 15:20 +0200
                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Curt <curty@free.fr> - 2019-05-30 15:30 +0200
                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-30 16:30 +0200
                                        Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-30 16:40 +0200
                                          Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-30 17:10 +0200
                                            Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-30 17:50 +0200
                                              Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-31 09:00 +0200
                                                Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-31 09:20 +0200
                                                  Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-31 10:30 +0200
                                                    Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-31 12:20 +0200
                                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-31 13:10 +0200
                                                        Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-31 14:30 +0200
                                            Re: Ping as normal user Sven Hartge <sven@svenhartge.de> - 2019-05-30 17:50 +0200
                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Reco <recoverym4n@enotuniq.net> - 2019-05-30 16:30 +0200
                                    Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-30 17:10 +0200
                                      Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Curt <curty@free.fr> - 2019-05-30 18:10 +0200
                                        Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?) "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-30 18:40 +0200
                              Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Jason <electron@emypeople.net> - 2019-05-31 16:10 +0200
                                Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH  ?) Andy Smith <andy@strugglers.net> - 2019-05-31 16:40 +0200
                Re: Why /usr/sbin is not in my root $PATH ? Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-26 10:50 +0200
              Re: Why /usr/sbin is not in my root $PATH ? Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2019-02-21 17:40 +0100
          Re: Why /usr/sbin is not in my root $PATH ? Mart van de Wege <mvdwege@gmail.com> - 2019-02-23 15:50 +0100
            Re: Why /usr/sbin is not in my root $PATH ? Tixy <tixy@yxit.co.uk> - 2019-02-23 17:40 +0100
              Re: Why /usr/sbin is not in my root $PATH ? John Hasler <jhasler@newsguy.com> - 2019-02-23 18:30 +0100
                Re: Why /usr/sbin is not in my root $PATH ? Mart van de Wege <mvdwege@gmail.com> - 2019-02-24 09:50 +0100
                  Re: Why /usr/sbin is not in my root $PATH ? Curt <curty@free.fr> - 2019-02-24 10:00 +0100
                    [OT] Re: Why /usr/sbin is not in my root $PATH ? David Wright <deblis@lionunicorn.co.uk> - 2019-02-24 16:40 +0100
                      Re: [OT] Re: Why /usr/sbin is not in my root $PATH ? Martin Smith <tech@smithproductions.co.uk> - 2019-02-24 19:10 +0100
                        Re: [OT] Re: Why /usr/sbin is not in my root $PATH ? David Wright <deblis@lionunicorn.co.uk> - 2019-02-24 20:20 +0100

Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →


#209199

FromAndy Smith <andy@strugglers.net>
Date2019-05-27 04:20 +0200
Message-ID<y2doZ-7Wf-1@gated-at.bofh.it>
In reply to#209173
Hello,

On Sun, May 26, 2019 at 07:41:41AM -0600, ghe wrote:
> On 2/21/19 11:12 AM, ghe wrote:
> 
> > Another Busterism, BTW: ping now requires root privileges. It does on my
> > computer, anyway. Maybe I made a mistake when I installed -- somebody
> > sure did.
> 
> Fix: 'alias ping="sudo ping"' in .bashrc. I'm on Buster too :-)

After a normal install, /bin/ping should end up with the
capabilities such that it can do what it needs to do. These are:

$ getcap /bin/ping
/bin/ping = cap_net_raw+ep

If yours has not ended up with those capabilities, I think that is a
bug in whatever method of install you have used.

Glenn, and Andrei, do you do anything out of the ordinary to
install?

Myself I have seen this happen when untarring the operating system
as by default tar does not store or re-apply such capabilities.

Cheers,
Andy

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

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


#209204

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2019-05-27 07:20 +0200
Message-ID<y2gdb-1hA-1@gated-at.bofh.it>
In reply to#209199

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

On Lu, 27 mai 19, 02:15:49, Andy Smith wrote:
> 
> Glenn, and Andrei, do you do anything out of the ordinary to
> install?
 
https://salsa.debian.org/amp-guest/pine64/blob/master/pine64_buildimage

> Myself I have seen this happen when untarring the operating system
> as by default tar does not store or re-apply such capabilities.

While I didn't mention it in this thread, ping had indeed somehow lost 
its capabilities on my system. 'dpkg-reconfigure iputils-ping' fixed it.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


#209205

FromAndy Smith <andy@strugglers.net>
Date2019-05-27 07:30 +0200
Message-ID<y2gmR-1kV-1@gated-at.bofh.it>
In reply to#209204
Hello,

On Mon, May 27, 2019 at 08:12:32AM +0300, Andrei POPESCU wrote:
> On Lu, 27 mai 19, 02:15:49, Andy Smith wrote:
> > 
> > Glenn, and Andrei, do you do anything out of the ordinary to
> > install?
>  
> https://salsa.debian.org/amp-guest/pine64/blob/master/pine64_buildimage

Seems it does a debootstrap, so it would be interesting to know if a
plain old debootstrap results in a /bin/ping with the correct
capabilities…

Cheers,
Andy

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


#209395 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromJason <electron@emypeople.net>
Date2019-05-30 00:00 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3eM1-5zm-7@gated-at.bofh.it>
In reply to#209204
On Mon, May 27, 2019 at 08:12:32AM +0300, Andrei POPESCU wrote:
> 
> While I didn't mention it in this thread, ping had indeed somehow lost 
> its capabilities on my system. 'dpkg-reconfigure iputils-ping' fixed it.

That worked for me (I'm not the OP) with Stretch on an ARM board. Before 
running the above command, I could only ping as root or using sudo, now 
I can ping as a normal user. Thanks!

> 
> Kind regards,
> Andrei
> -- 
> http://wiki.debian.org/FAQsFromDebianUser


-- 
Jason

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


#209398 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromAndy Smith <andy@strugglers.net>
Date2019-05-30 01:50 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3gut-6Hv-1@gated-at.bofh.it>
In reply to#209395
Hi Jason,

On Wed, May 29, 2019 at 04:18:51PM -0500, Jason wrote:
> On Mon, May 27, 2019 at 08:12:32AM +0300, Andrei POPESCU wrote:
> > While I didn't mention it in this thread, ping had indeed somehow lost 
> > its capabilities on my system. 'dpkg-reconfigure iputils-ping' fixed it.
> 
> That worked for me (I'm not the OP) with Stretch on an ARM board. Before 
> running the above command, I could only ping as root or using sudo, now 
> I can ping as a normal user. Thanks!

How did you install this system? Because /bin/ping is supposed to
come with file capabilities such that the user can allow it to do
what it needs to do (this is part of what 'dpkg-reconfigure
iputils-ping' restores). So it would be interesting to know how the
system was installed in case there is a general theme for those who
never got those capabilities.

One other person in this thread said they used (a script which
ultimately uses) debootstrap.

Cheers,
Andy

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


#209402 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromCindy Sue Causey <butterflybytes@gmail.com>
Date2019-05-30 03:50 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3imB-7Si-1@gated-at.bofh.it>
In reply to#209398
On 5/29/19, Andy Smith <andy@strugglers.net> wrote:
> Hi Jason,
>
> On Wed, May 29, 2019 at 04:18:51PM -0500, Jason wrote:
>> On Mon, May 27, 2019 at 08:12:32AM +0300, Andrei POPESCU wrote:
>> > While I didn't mention it in this thread, ping had indeed somehow lost
>> > its capabilities on my system. 'dpkg-reconfigure iputils-ping' fixed
>> > it.
>>
>> That worked for me (I'm not the OP) with Stretch on an ARM board. Before
>> running the above command, I could only ping as root or using sudo, now
>> I can ping as a normal user. Thanks!
>
> How did you install this system? Because /bin/ping is supposed to
> come with file capabilities such that the user can allow it to do
> what it needs to do (this is part of what 'dpkg-reconfigure
> iputils-ping' restores). So it would be interesting to know how the
> system was installed in case there is a general theme for those who
> never got those capabilities.
>
> One other person in this thread said they used (a script which
> ultimately uses) debootstrap.


Was sitting here reading through before responding. Debootstrap. I
JUST seconds ago finished running the first step, the initial download
and install, for that again. *having to rebuild my dotDeb cache, don't
wanna talk about it, smacking my head!*

Just searched and "iputils-ping" is already installed at the absolute
bare minimum debootstrap base level. I really didn't think that
package was installed because I don't ever remember encountering that
package name. That "ping" part would stand out to me, but it never
has... until just now.

So, yeah, at least for Debootstrap. "iputils-ping" is in there at the
absolute very first start where the Developers have picked the very
first packages that get the party started before the User then picks
everything else...

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* Base system installed successfully. Works every time... as long
as... APT archives are not... cough.. symlinked instead of "mount -B".
*

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


#209403 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromAndy Smith <andy@strugglers.net>
Date2019-05-30 04:50 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3jiF-7m-3@gated-at.bofh.it>
In reply to#209402
Hi Cindy,

On Wed, May 29, 2019 at 09:48:44PM -0400, Cindy Sue Causey wrote:
> So, yeah, at least for Debootstrap. "iputils-ping" is in there at the
> absolute very first start where the Developers have picked the very
> first packages that get the party started before the User then picks
> everything else...

That's not the issue at hand. The issue is whether the file
/bin/ping retains the file capabilities. People who have a /bin/ping
that only works as root are missing these:

$ getcap /bin/ping
/bin/ping = cap_net_raw+ep

If they didn't have the package installed at all then it would be a
very different and more obvious error that was presented.

So my question is, are installs done by debootstrap somehow losing
the file capabilities? I ask because in this thread, one of the
other people reporting a /bin/ping without the correct capabilities
did their install through debootstrap.

If you've just done a debootstrap, what does getcap return for the
/bin/ping that got installed?

Cheers,
Andy

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

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


#209406 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromReco <recoverym4n@enotuniq.net>
Date2019-05-30 08:10 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3mqd-2fE-1@gated-at.bofh.it>
In reply to#209403
	Hi.

On Thu, May 30, 2019 at 02:44:58AM +0000, Andy Smith wrote:
> So my question is, are installs done by debootstrap somehow losing
> the file capabilities? I ask because in this thread, one of the
> other people reporting a /bin/ping without the correct capabilities
> did their install through debootstrap.

Easy. You run debootstrap, set some --include options (which pull
libcap2-bin by dependency), and then you tar the whole resulting
filesystem.
tar never understood file capabilities, so they are lost in the process.


> If you've just done a debootstrap, what does getcap return for the
> /bin/ping that got installed?

I'm not Cindy (obviously), but I'm not lazy, so I just run debootstrap a
couple of times.

debootstrap --variant=minbase does not install iputils-ping at all.

debootstrap (no --variant) does install iputils-ping, but does not
install libcap2-bin. Hence iputils-ping postinst script simply sets
suid bit on /bin/ping as postinst cannot locate setcap.

Reco

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


#209433 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromAndy Smith <andy@strugglers.net>
Date2019-05-30 23:30 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3AMx-2Nm-1@gated-at.bofh.it>
In reply to#209406
Hello,

On Thu, May 30, 2019 at 09:08:38AM +0300, Reco wrote:
> Easy. You run debootstrap, set some --include options (which pull
> libcap2-bin by dependency), and then you tar the whole resulting
> filesystem.
> tar never understood file capabilities, so they are lost in the process.

Sure, tar is one of the example ways I mentioned before of how I've
seen this go wrong.

> debootstrap (no --variant) does install iputils-ping, but does not
> install libcap2-bin. Hence iputils-ping postinst script simply sets
> suid bit on /bin/ping as postinst cannot locate setcap.

Oh, that's interesting. I didn't think of the case where there is no
libcap2-bin. Still, these reporters aren't getting a suid bit
either, so I guess there must be something else going wrong. Not
debootstrap.

Cheers,
Andy

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


#209438 — Re: Ping as normal user

FromStefan Monnier <monnier@iro.umontreal.ca>
Date2019-05-31 05:00 +0200
SubjectRe: Ping as normal user
Message-ID<y3FVT-5WP-1@gated-at.bofh.it>
In reply to#209403
> $ getcap /bin/ping
> /bin/ping = cap_net_raw+ep

BTW, if these caps are missing you can recover them with:

    dpkg-reconfigure iputils-ping
    

-- Stefan

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


#209450 — Re: Ping as normal user

Fromrhkramer@gmail.com
Date2019-05-31 13:20 +0200
SubjectRe: Ping as normal user
Message-ID<y3NJL-2u4-3@gated-at.bofh.it>
In reply to#209438
On Thursday, May 30, 2019 10:55:57 PM Stefan Monnier wrote:
> > $ getcap /bin/ping
> > /bin/ping = cap_net_raw+ep

I wanted to learn at least a little more about that, starting by looking back 
at the original post that mentioned that.  I looked back about 10 posts but 
couldn't find it  -- can you point me to the original post (and, in the future, 
could you include the line that mentions when and who posted it (as the first 
line in this post).

Aside: I saw some other posts in this thread that either didn't quote anything 
or didn't properly attribute the quote -- I truly appreciate appropriate 
snipping of quotes, and encourage that, but, on the other hand, I also 
encourage quoting for context and proper attribution.

> BTW, if these caps are missing you can recover them with:
> 
>     dpkg-reconfigure iputils-ping
> 
> 
> -- Stefan

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


#209452 — Re: Ping as normal user

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-05-31 13:30 +0200
SubjectRe: Ping as normal user
Message-ID<y3NTr-2xA-1@gated-at.bofh.it>
In reply to#209450
Le 31/05/2019 à 13:16, rhkramer@gmail.com a écrit :
> On Thursday, May 30, 2019 10:55:57 PM Stefan Monnier wrote:
>>> $ getcap /bin/ping
>>> /bin/ping = cap_net_raw+ep
> 
> I wanted to learn at least a little more about that, starting by looking back
> at the original post that mentioned that.  I looked back about 10 posts but
> couldn't find it  -- can you point me to the original post

3 posts back.

From: Andy Smith
Date: Thu, 30 May 2019 02:44:58 +0000
Message-ID: <20190530024458.GA4569@bitfolk.com>

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


#209458 — Gmail problems (was Re: Ping as normal user)

Fromrhkramer@gmail.com
Date2019-05-31 15:10 +0200
SubjectGmail problems (was Re: Ping as normal user)
Message-ID<y3Psd-3Bp-5@gated-at.bofh.it>
In reply to#209452
On Friday, May 31, 2019 07:26:54 AM Pascal Hambourg wrote:
> Le 31/05/2019 à 13:16, rhkramer@gmail.com a écrit :
> > I wanted to learn at least a little more about that, starting by looking
> > back at the original post that mentioned that.  I looked back about 10
> > posts but couldn't find it  -- can you point me to the original post
> 
> 3 posts back.

Thanks -- looks like google mail decided that was spam and didn't send it to 
me (via their version of pop3).  I guess I have to learn more about google 
mail, maybe either disabling their spam filter, or deciding to switch to an 
email provider (ideally free or cheap) who doesn't filter email for me.  (I 
guess when others mark something as spam, at least sometimes it affects me or 
everybody -- very annoying.)

 
> From: Andy Smith
> Date: Thu, 30 May 2019 02:44:58 +0000
> Message-ID: <20190530024458.GA4569@bitfolk.com>

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


#209462 — Re: Gmail problems (was Re: Ping as normal user)

Frommick crane <mick.crane@gmail.com>
Date2019-05-31 15:40 +0200
SubjectRe: Gmail problems (was Re: Ping as normal user)
Message-ID<y3PVf-3LF-7@gated-at.bofh.it>
In reply to#209458
On 2019-05-31 14:01, rhkramer@gmail.com wrote:
> I guess I have to learn more about google
> mail, maybe either disabling their spam filter, or deciding to switch 
> to an
> email provider (ideally free or cheap) who doesn't filter email for me. 
>  (I
> guess when others mark something as spam, at least sometimes it affects 
> me or
> everybody -- very annoying.)
> 
posteo.de has been mentioned if you don't mind using 100% green 
electricity

mick
-- 
Key ID    4BFEBB31

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


#209481 — Re: Gmail problems (was Re: Ping as normal user)

FromBrian <ad44@cityscape.co.uk>
Date2019-05-31 21:50 +0200
SubjectRe: Gmail problems (was Re: Ping as normal user)
Message-ID<y3VHj-7l7-3@gated-at.bofh.it>
In reply to#209462
On Fri 31 May 2019 at 14:33:42 +0100, mick crane wrote:

> On 2019-05-31 14:01, rhkramer@gmail.com wrote:
> > I guess I have to learn more about google
> > mail, maybe either disabling their spam filter, or deciding to switch to
> > an
> > email provider (ideally free or cheap) who doesn't filter email for me.
> > (I
> > guess when others mark something as spam, at least sometimes it affects
> > me or
> > everybody -- very annoying.)
> > 
> posteo.de has been mentioned if you don't mind using 100% green electricity

The mind boggles!

-- 
Brian.

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


#209404 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromGene Heskett <gheskett@shentel.net>
Date2019-05-30 05:30 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3jVn-Ay-1@gated-at.bofh.it>
In reply to#209398
On Wednesday 29 May 2019 07:46:50 pm Andy Smith wrote:

> Hi Jason,
>
> On Wed, May 29, 2019 at 04:18:51PM -0500, Jason wrote:
> > On Mon, May 27, 2019 at 08:12:32AM +0300, Andrei POPESCU wrote:
> > > While I didn't mention it in this thread, ping had indeed somehow
> > > lost its capabilities on my system. 'dpkg-reconfigure
> > > iputils-ping' fixed it.
> >
> > That worked for me (I'm not the OP) with Stretch on an ARM board.
> > Before running the above command, I could only ping as root or using
> > sudo, now I can ping as a normal user. Thanks!
>
> How did you install this system? Because /bin/ping is supposed to
> come with file capabilities such that the user can allow it to do
> what it needs to do (this is part of what 'dpkg-reconfigure
> iputils-ping' restores). So it would be interesting to know how the
> system was installed in case there is a general theme for those who
> never got those capabilities.
>
> One other person in this thread said they used (a script which
> ultimately uses) debootstrap.
>
> Cheers,
> Andy

the default $PATH the installer sets up for $users, apparently does not 
include any of the sbin's, only /usr/bin and /bin. I've been fixing that 
for several generations of debian installs. Probably shouldn't as there  
may be some good reason for it, but it is MY machine.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

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


#209439 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2019-05-31 08:40 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3JmO-8ad-3@gated-at.bofh.it>
In reply to#209404

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

On Mi, 29 mai 19, 23:29:21, Gene Heskett wrote:
> 
> the default $PATH the installer sets up for $users, apparently does not 
> include any of the sbin's, only /usr/bin and /bin. I've been fixing that 
> for several generations of debian installs. Probably shouldn't as there  
> may be some good reason for it, but it is MY machine.

It won't be necessary if you switch to merged /usr.
https://wiki.debian.org/MergedUsr

This will be the default for new buster installs. Older installs can be 
switched with the package usrmerge.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


#209445 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-05-31 11:50 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3MkF-1u7-3@gated-at.bofh.it>
In reply to#209439
Le 31/05/2019 à 08:38, Andrei POPESCU a écrit :
> On Mi, 29 mai 19, 23:29:21, Gene Heskett wrote:
>>
>> the default $PATH the installer sets up for $users, apparently does not
>> include any of the sbin's, only /usr/bin and /bin. I've been fixing that
>> for several generations of debian installs.
> 
> It won't be necessary if you switch to merged /usr.

AFAIK, the /usr merge does not merge sbin and bin together.

> https://wiki.debian.org/MergedUsr

The wiki says this page does not exist yet.

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


#209457 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-05-31 15:00 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y3Piy-3iy-3@gated-at.bofh.it>
In reply to#209445
On Fri, May 31, 2019 at 11:47:26AM +0200, Pascal Hambourg wrote:
> > https://wiki.debian.org/MergedUsr
> 
> The wiki says this page does not exist yet.

It's actually <https://wiki.debian.org/UsrMerge>.

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


#209487 — Re: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2019-06-01 07:50 +0200
SubjectRe: Ping as normal user (Was: Why /usr/sbin is not in my root $PATH ?)
Message-ID<y453X-4Ng-3@gated-at.bofh.it>
In reply to#209457

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

On Vi, 31 mai 19, 08:51:20, Greg Wooledge wrote:
> On Fri, May 31, 2019 at 11:47:26AM +0200, Pascal Hambourg wrote:
> > > https://wiki.debian.org/MergedUsr
> > 
> > The wiki says this page does not exist yet.
> 
> It's actually <https://wiki.debian.org/UsrMerge>.
 
Right, thanks (again) Greg for correcting my mistakes.

My current setup doesn't allow for easy copy-pasting so I wrote that by 
hand and misremembered it :(

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →

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


csiph-web