Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Thufir's a Harkonnen now.


computers / alt.os.linux.slackware / Re: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]

SubjectAuthor
* Slackware 15 stucksMilky
+- Re: Slackware 15 stucksMilky
+* Re: Slackware 15 stucksgreymaus
|+* Re: Slackware 15 stucksMilky
||`- Re: Slackware 15 stucksJohn McCue
|`* Re: Slackware 15 stuckseho
| +* Re: Slackware 15 stucksMilky
| |`- Re: Slackware 15 stucksJohn Forkosh
| `* Re: Slackware 15 stucksMilky
|  `* Re: Slackware 15 stucksMilky
|   `* Slackware 15 still stuck ?Milky
|    `- Re: Slackware 15 still stuck ?Milky
+- Re: Slackware 15 stucksJohn McCue
`* Installing slackware from System Rescue CD [was: Slackware 15 stucks]Javier
 `* Re: Installing slackware from System Rescue CD [was: Slackware 15Henrik Carlqvist
  +- Re: Installing slackware from System Rescue CD [was: Slackware 15Jimmy Johnson
  `* historical errors [was: Installing slackware from System Rescue CD [was: SlackwaJavier
   +- Re: historical errors [was: Installing slackware from System RescueLew Pitcher
   `* Re: historical errors [was: Installing slackware from System Rescue CD [was: Sla#Paul
    `* Re: historical errors [was: Installing slackware from System RescueHenrik Carlqvist
     `* Re: drive by comments about the scriptGrant Taylor
      +* Re: drive by comments about the scriptLew Pitcher
      |+* Re: drive by comments about the scriptRich
      ||`- Re: drive by comments about the scriptGrant Taylor
      |`* Re: drive by comments about the scriptHenrik Carlqvist
      | `* Re: drive by comments about the scriptGrant Taylor
      |  `- Re: drive by comments about the scriptHenrik Carlqvist
      `* Re: drive by comments about the scriptRichard Kettlewell
       +* Re: drive by comments about the scriptGrant Taylor
       |`- Re: drive by comments about the scriptRichard Kettlewell
       `- Re: drive by comments about the scriptEli the Bearded

Pages:12
Re: drive by comments about the script

<s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=383&group=alt.os.linux.slackware#383

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 09:07:08 -0600
Organization: TNet Consulting
Message-ID: <s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Jun 2021 15:07:11 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="29336"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
Content-Language: en-US
 by: Grant Taylor - Wed, 9 Jun 2021 15:07 UTC

On 6/9/21 2:55 AM, Richard Kettlewell wrote:
> That’s not how shell quoting or find -exec work.

Please elaborate.

> The real problem with these commands is that they contain a well-known
> vulnerability. For details see:

I completely agree that there is a timing component (race condition)
that can be a problem. But that's not the component I was speaking to.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<87lf7jt1kl.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=384&group=alt.os.linux.slackware#384

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 09 Jun 2021 18:00:58 +0100
Organization: terraraq NNTP server
Message-ID: <87lf7jt1kl.fsf@LkoBDZeT.terraraq.uk>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
<s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="26197"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:Ig0eQtp3WvBlBhFFWKjVT4kU3Xw=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 9 Jun 2021 17:00 UTC

Grant Taylor <gtaylor@tnetconsulting.net> writes:
> On 6/9/21 2:55 AM, Richard Kettlewell wrote:
>> That’s not how shell quoting or find -exec work.
>
> Please elaborate.

I have too much RSI to repeat shell-quoting rules and the semantics of
find -exec. You will have to look them up.

--
https://www.greenend.org.uk/rjk/

Re: drive by comments about the script

<eli$2106091443@qaz.wtf>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=385&group=alt.os.linux.slackware#385

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 18:44:01 +0000 (UTC)
Organization: Some absurd concept
Lines: 29
Message-ID: <eli$2106091443@qaz.wtf>
References: <s70oge$khf$1@gioia.aioe.org> <s9ltn5$qd6$1@dont-email.me> <s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1623264241 10296 166.84.1.5 (9 Jun 2021 18:44:01 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 9 Jun 2021 18:44:01 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
 by: Eli the Bearded - Wed, 9 Jun 2021 18:44 UTC

In alt.os.linux.slackware, Richard Kettlewell <invalid@invalid.invalid> wrote:
> Grant Taylor <gtaylor@tnetconsulting.net> writes:
>> Drive by comment: Be careful with filenames with spaces in them. I'd
>> suggest putting double quotes around the {} in the find -exec
>> statements.
> That's not how shell quoting or find -exec work.

Agreed. Note that I'm using ksh and have PS2 set to <TAB> here:

$ cd /var/tmp
$ mkdir 'I
U+2665
trouble' && cd I*trouble
$ mkdir '`echo nana`'
$ touch '`echo nana`'/'
yikes
'
$ cd ..
$ find . -size 0 -type f -exec ls -ld {} +
-rw-rw-r-- 1 username username 0 Jun 9 11:35 './I'$'\n''U+2665'$'\n''trouble/`echo nana`/'$'\n''yikes'$'\n'
$

Since I'm using ksh, {} is not special to shell, and does not need
quoting. Since {} is safely replaced by find, whitespace and shell
metas in names is not an issue.

Elijah
------
did not actually include the unicode, just the U+codepoint

Re: drive by comments about the script

<s9r9n7$s5e$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=386&group=alt.os.linux.slackware#386

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 20:52:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <s9r9n7$s5e$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<s9ot51$pph$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Jun 2021 20:52:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dae27748346b312124f06fe0c6bfb69a";
logging-data="28846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4NK3OPlmaB3IrM9PrVcrn"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:TV3IzaOUDk/5fiAhAknHyXFgkng=
 by: Henrik Carlqvist - Wed, 9 Jun 2021 20:52 UTC

On Tue, 08 Jun 2021 23:06:09 +0000, Lew Pitcher wrote:

> On Tue, 08 Jun 2021 16:37:35 -0600, Grant Taylor wrote:
>
>> On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
>>> -8<---------------------------------
>>> #!/bin/sh
>>> # Cleanup /tmp however, do not remove sockets for X
>>>
>>> # No lost+found with reiserfs, but ext* has it...
>>> find /tmp/lost+found -exec /bin/touch {} \;
>>> find /tmp -type s -exec /bin/touch {} \;
>>> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
>>> find /tmp -atime +37 -exec /bin/rm {} \;
>>> -8<---------------------------------

> For added security, I would rephrase the command to:
> find /tmp -atime +37 -print -delete
> to keep a record of files and directories deleted.

Thanks for all comments!

I will try:

find /tmp/lost+found -exec /bin/touch {} \;
find /tmp -type s -exec /bin/touch {} \;
find /tmp -type d -empty -mtime +37 -print -delete
find /tmp -atime +37 -print -delete

The record of deleted files will end up in emails to me. As this cron job
is being run on 50+ machines it will probably mean 50+ emails every
night. I might remove the -print if it gets too much to read...

regards Henrik

Re: drive by comments about the script

<s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=388&group=alt.os.linux.slackware#388

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 18:19:37 -0600
Organization: TNet Consulting
Message-ID: <s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <s9ot51$pph$1@dont-email.me>
<s9r9n7$s5e$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Jun 2021 00:19:41 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="14313"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <s9r9n7$s5e$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Thu, 10 Jun 2021 00:19 UTC

On 6/9/21 2:52 PM, Henrik Carlqvist wrote:
> The record of deleted files will end up in emails to me. As this cron
> job is being run on 50+ machines it will probably mean 50+ emails
> every night. I might remove the -print if it gets too much to read...

(Pro)Tip: Have one string of text for success and another string of
text for failure. Then configure email client filtering to mark success
messages as read (and file them away). That way you can easily look at
the folder and see that the cron job is running like it should be. If
there ever is a failure, it will remain unread (maybe filed away, maybe
not) so that it will garner your attention to investigate the failure.

I've learned that it's really difficult to tell from afar if a
completely silent script is always succeeding or simply not running. I
dislike that.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<s9s7bn$gbv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=389&group=alt.os.linux.slackware#389

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Thu, 10 Jun 2021 05:18:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <s9s7bn$gbv$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<s9ot51$pph$1@dont-email.me> <s9r9n7$s5e$1@dont-email.me>
<s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 10 Jun 2021 05:18:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f65c3233784fae6edae19b48b5bebe44";
logging-data="16767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NEyGxFaZwBqQzqz1BMRig"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:p54QleAyxbW/e6cd5eE6pLhpkBU=
 by: Henrik Carlqvist - Thu, 10 Jun 2021 05:18 UTC

On Wed, 09 Jun 2021 18:19:37 -0600, Grant Taylor wrote:
> I've learned that it's really difficult to tell from afar if a
> completely silent script is always succeeding or simply not running. I
> dislike that.

Thanks, yes, I share that experience. During the years it has happened
that the crond daemon has died completely. Fortunately all those machines
are also monitored by software which will tell if some important deamon
has died and/or if some partition is getting more than 90% full. I have
/tmp on a separate partition.

regards Henrik

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor