LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-22-2024, 04:14 PM   #1
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 611

Rep: Reputation: Disabled
Angry Microsoft employee turns smart-alec when systemd wipes part of someones /home folder


This bug appears to have been fixed in the end but Luca Boccassi of Microsoft just demonstrates why it's not good to let Microsoft take over the *nix world.
That is the same guy that appears to have boasted "42% less Unix philosophy"

https://github.com/systemd/systemd/issues/33349
https://www.theregister.com/2024/06/...data_wipe_fix/
 
Old 06-22-2024, 07:33 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,510
Blog Entries: 7

Rep: Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594Reputation: 2594
Yeah. When is the Debian project going to wake up and stop entertaining this excreta tauri?
 
3 members found this post helpful.
Old 06-22-2024, 09:25 PM   #3
Mechanikx
Member
 
Registered: Jul 2018
Posts: 371

Rep: Reputation: 265Reputation: 265Reputation: 265
Luca Boccassi definitely puts the "micro" in Microshaft.

This makes me appreciate even more the hardwork that maintainers put in to keep their distribution systemd free.
 
4 members found this post helpful.
Old 06-23-2024, 06:21 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,933

Rep: Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054Reputation: 5054
Quote:
Among the issues fixed in version 256.1 are that even as long as five years ago, systemd-tmpfiles had moved on past managing only temporary files – as its name might suggest to the unwary. Now it manages all sorts of files created on the fly … such as things like users' home directories.
Well, that's just stupid.
 
1 members found this post helpful.
Old 06-24-2024, 12:53 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,730
Blog Entries: 19

Rep: Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515
When I was first starting to learn programming, back in the 1990's, a lot was made of choosing sensible default behaviour. You applied the Hippocratic principle: First of all do no harm. Deletion was often cited as the classic potentially harmful action, so nothing should be deleted by default, and even an explicit delete command should affect only what was actually named or flagged.
 
1 members found this post helpful.
Old 06-24-2024, 08:07 PM   #6
Mechanikx
Member
 
Registered: Jul 2018
Posts: 371

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by hazel View Post
When I was first starting to learn programming, back in the 1990's, a lot was made of choosing sensible default behaviour. You applied the Hippocratic principle: First of all do no harm. Deletion was often cited as the classic potentially harmful action, so nothing should be deleted by default, and even an explicit delete command should affect only what was actually named or flagged.
Exactly. What if the 'rm' command functioned this way?

No flags? No pathnames? No problem. I'll just delete your home directory.
 
Old 06-25-2024, 12:10 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,730
Blog Entries: 19

Rep: Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515Reputation: 4515
Quote:
Originally Posted by Mechanikx View Post
Exactly. What if the 'rm' command functioned this way?

No flags? No pathnames? No problem. I'll just delete your home directory.
You'll laugh! I actually did that once when I decided to bulk-delete some hidden files by using
Code:
rm .*
I forgot that "." and ".." would be included in that. Fortunately I realised what was happening and pressed ctrl-C before too much of my home directory tree was gone.
 
Old 06-25-2024, 03:24 AM   #8
Mechanikx
Member
 
Registered: Jul 2018
Posts: 371

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by hazel View Post
You'll laugh! I actually did that once when I decided to bulk-delete some hidden files by using
Code:
rm .*
I forgot that "." and ".." would be included in that. Fortunately I realised what was happening and pressed ctrl-C before too much of my home directory tree was gone.
I've shot myself in the foot with a bulk removal too...once...twice....

There are tools you can use to perform a dry run like ls or find but it would be neat if rm had a dry run option.

Code:
rm --dry-run ...
Then once you're satisfied you could just go up one in your history, and remove that option.
 
Old Today, 06:13 PM   #9
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 611

Original Poster
Rep: Reputation: Disabled
And it doesn't get better... saw this on one of the workstations today.
That smartalec has a debian account... best way for M$ to go full EEE is to have a mole onboard.

systemd (256~rc3-3) unstable; urgency=medium

- /tmp/ is now by default a tmpfs, via the tmp.mount unit provided upstream.
The old default setup can be retained simply by masking the unit locally
with (do not do this if you are defining /tmp/ manually in /etc/fstab):

systemctl mask tmp.mount

or:

touch /etc/systemd/system/tmp.mount

It is recommended to check /tmp/ for any leftover files before rebooting
after installing this update and manually cleaning up, as the directory
will longer be cleaned up automatically on boot, as it is overmounted. It
is always possible to remount the root filesystem in a local directory
and remove leftovers manually after rebooting, but this will not be done
automatically to avoid unintential removals. This situation can be easily
detected by checking the journal after a reboot, as there will be a log
message that says:

tmp.mount: Directory /tmp to mount over is not empty, mounting anyway

- /run/lock/ is no longer created with a patch before units start, but by
a standard early-boot run-lock.mount unit that is ordered before
local-fs.target. Any service needing to use /run/lock/ and running before
sysinit.target (ie, they likely define DefaultDependencies=no) will need
to be explicitly ordered with After=run-lock.mount. The two known cases
where this happens in the archive have a bug+MR filed already.

- On new installations, tmpfiles.d will now cleanup by default files
that have not been changed or accessed on /tmp/ for 10 days, and /var/tmp/
for 30 days. The legacy behaviour can be configured with a local override
if needed:

echo 'D /tmp 1777' > /etc/tmpfiles.d/tmp.conf

This override will be automatically provided for upgrades of existing
systems from previous releases to Trixie. As a reminder, individual
files and directories can be marked for exclusion from cleanups with
the 'x' type configuration line as described in the tmpfiles.d manpage,
for example:

echo 'x /tmp/my-precious' > /etc/tmpfiles.d/precious.conf

- coredumps are now disabled by default via configuration files rather than
an out-of-tree patch (installing the optional systemd-coredump package
will enable them as before). As always, overriding via local drop-ins is
possible if desired. The configuration files that respectively affect
the system systemd instance, the user systemd instances and PAM sessions
are:

/usr/lib/systemd/system.conf.d/10-coredump-debian.conf
/usr/lib/systemd/user.conf.d/10-coredump-debian.conf
/usr/lib/sysctl.d/10-coredump-debian.conf
/etc/security/limits.d/10-coredump-debian.conf

-- Luca Boccassi <bluca@debian.org> Tue, 28 May 2024 00:07:57 +0100
 
  


Reply

Tags
bug, microsoft, systemd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft wipes out Norton&Symantec hilbert General 10 12-28-2005 10:58 PM
Someones logged in as root, and its not me joose Linux - Security 7 10-14-2005 05:35 AM
what can be done with someones router access cartman12345 General 2 04-21-2005 11:09 PM
Someones in my WLAN i wanna have some fun with them zetsui Linux - Wireless Networking 7 02-14-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration