Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Friday May 01 2020, @11:04AM   Printer-friendly
from the resistance-is-futile.-/home-will-be-assimilated dept.

Good News:

Linux home directory management is about to undergo major change:

With systemd 245 comes systemd-homed. Along with that, Linux admins will have to change the way they manage users and users' home directories.

[...] Prior to systemd every system and resource was managed by its own tool, which was clumsy and inefficient. Now? Controlling and managing systems on Linux is incredibly easy.

But one of the creators, Leannart Poettering, has always considered systemd to be incomplete. With the upcoming release of systemd 245, Poettering will take his system one step closer to completion. That step is by way of homed.

[...] let's take a look at the /home directory. This is a crucial directory in the Linux filesystem hierarchy, as it contains all user data and configurations. For some admins, this directory is so important, it is often placed on a separate partition or drive than the operating system. By doing this, user data is safe, even if the operating system were to implode.

However, the way /home is handled within the operating system makes migrating the /home directory not nearly as easy as it should be. Why? With the current iteration of systemd, user information (such as ID, full name, home directory, and shell) is stored in /etc/passwd and the password associated with that user is stored in /etc/shadow. The /etc/passwd file can be viewed by anyone, whereas /etc/shadow can only be viewed by those with admin or sudo privileges.

[...] Poettering has decided to make a drastic change. That change is homed. With homed, all information will be placed in a cryptographically signed JSON record for each user. That record will contain all user information such as username, group membership, and password hashes.

Each user home directory will be linked as LUKS-encrypted containers, with the encryption directly coupled to user login. Once systemd-homed detects a user has logged in, the associated home directory is decrypted. Once that user logs out, the home directory is automatically encrypted.

[...] Of course, such a major change doesn't come without its share of caveats. In the case of systemd-homed, that caveat comes by way of SSH. If a systemd-homed home directory is encrypted until a user successfully logs in, how will users be able to log in to a remote machine with SSH?

The big problem with that is the .ssh directory (where SSH stores known_hosts and authorized_keys) would be inaccessible while the user's home directory is encrypted. Of course Poettering knows of this shortcoming. To date, all of the work done with systemd-homed has been with the standard authentication process. You can be sure that Poettering will come up with a solution that takes SSH into consideration.

Older articles:

Will systemd be considered complete once the kernel and boot loader have been absorbed into systemd?


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Friday May 01 2020, @06:44PM (8 children)

    by Anonymous Coward on Friday May 01 2020, @06:44PM (#989098)

    different anon here. i don't give a shit about this "encroachment". i use systemd for almost everything and i like it too. use a non-systemd distro if you don't like it.

  • (Score: 2) by gtomorrow on Friday May 01 2020, @09:31PM (7 children)

    by gtomorrow (2230) on Friday May 01 2020, @09:31PM (#989207)

    Hey, anon coward. Thanks for taking the time out of your busy day to enlighten us all on the subject at hand.

    Oh, wait...you didn't.

    • (Score: 2) by janrinok on Saturday May 02 2020, @07:22AM (6 children)

      by janrinok (52) Subscriber Badge on Saturday May 02 2020, @07:22AM (#989368) Journal

      Well you might not like people disagreeing with you, but not everybody has has a problem adapting to systemd, and some people actually like it. I assume that you don't use a systemd distro? So what is you problem with other people using it?

      This is an OPTIONAL facility that will only affect those using systemd and who chose to activate it. By all means criticise it from a technological point of view but you shouldn't expect everyone to have your opinion too. Just because it is TWO different ACs making their views known doesn't devalue their opinion - or have you missed all the efforts that we have taken to make this place AC-Friendly?

      • (Score: 5, Insightful) by gtomorrow on Saturday May 02 2020, @08:47AM (5 children)

        by gtomorrow (2230) on Saturday May 02 2020, @08:47AM (#989386)

        Do you have a problem with me? Did you not read my comments regarding my personal opinion on systemd or are you getting up the sphincter of anybody that doesn't agree with you (me just being a lucky target)?

        Regarding the two poor little Anonymous COWARDS, they were replying to me and not you. I asked two different and simple questions. One genius points me to the Heart of Darkness and the other responds, "works for me, you stink na na na-naaa na." I'll responding accordingly, thank you. Anonymous-Coward-friendly my hairy ass. Gee, I hope they're all right, poor things.

        A largesse for your non-existent short-term memory and to avoid any confusion in the future, I'll repeat and even elaborate:

        I don't (actually now, didn't) care one way or another regarding systemd (Ubuntu user since...8.04?). It, up until now, didn't affect my computers, my output or my wonderful life. I had no skin in the game beyond having to learn a few new commands and un-learning others. I'm pretty adaptable in regards.

        I stood aside listening as the eggheads here (and elsewhere) debated and disputed the benefits and improvements of this no-longer-new init system, the admittedly strange inclusion (read: "surrender") to it by most of the distros, and this self-appointed (benevolent?) "dictator"'s method of handling the "community" of users and programmers that were in no way a minor part of making Linux as an operating system what it is today (my take:"my way or the highway.").

        Now I, mere Ubuntu (systemd) end-user, learn that systemd wants control, yes, control of my /home folder and it wants it today, with the distinct possibility that things will go pear-shaped if using an encrypted /home folder (which, look at that, I do!), with even its creator says it's not working as advertised and so magnanimously makes it an "option"...for now. And you're advocating this?!

        There are reasons I use Linux, one being a modicum of privacy not afforded by the commercial OSes available. If Linux, for whatever conspiratorial reasons that can be named, is ultimately being groomed to become Windows with its arcane registry, security nightmares, constant user spying and whatever other joys that come with being Windows, I have a more-than-slight problem with that, sir. Linux used to be an island away from that nonsense. I don't need some script-kid to open my DVD-drive via HTTP.

        And you're fine with all this? Wait...don't answer that. I don't think I want to hear from you again for at least today and at least regarding this article as you have shown your true colors proudly. This is a big, big virtual forum...go sit somewhere else.

        • (Score: 2) by janrinok on Saturday May 02 2020, @12:43PM (3 children)

          by janrinok (52) Subscriber Badge on Saturday May 02 2020, @12:43PM (#989437) Journal

          You seem to have taken offence to something in the comment that I made - I can assure you that no offence was intended and I apologise if my comment has been misconstrued. You have made comments elsewhere that have positively contributed to the discussion and I was merely surprised.

          As for my 'true colours', I can only point out the claimed advantages [linuxreviews.org] including enhanced security of a user's data:

          Encrypted folders are not new, most Linux distributions have had support for full disk encryption using LUKS for quite some time. It works. It's fine. But it does have some slight problems. Full disk encryption means that the encryption password, the only important password when it comes to protecting your data, has to be known by everyone who is using a computer on a regular basis. Encrypting each user's home directory with a personal key is a fundamentally far better and more logical approach.

          Suspending computers to RAM is also an issue when full disk encryption is used since the encryption keys are kept in RAM while the machine is sleeping. Suspending to disk (hibernating) instead of RAM does solve that one. Most do not use that solution either because both suspending and restoring the system takes longer or because they are unaware that cold-boot attacks are a very real threat to cryptographic security. systemd-homed solves the suspend to RAM case by unmounting home directories before the machine suspends to RAM.

          The ability to easily move home directories around is another clear advantage. This is not just handy if you want your /home/you on a USB stick, it is also very handy when you buy a new computer.

          There's also support for remote CIFS mounted directories built right into systemd-homed. Those who administer a large number of computers within an organization will likely find those aspects of it to be very appealing.

          As someone who does encrypt all of his data the security benefits are of interest to me but, of course, these may not be of interest to everybody. And the use of homed is entirely optional by using 'systemctl mask homed' which prevents it from ever being started even if another service depends upon it.

          Again, I apologise if I have inadvertently caused you any offence.

          • (Score: 2) by gtomorrow on Saturday May 02 2020, @01:26PM (2 children)

            by gtomorrow (2230) on Saturday May 02 2020, @01:26PM (#989448)

            1...2...3...4...5...6...7..8...9...

            This is a big, big virtual forum...go sit somewhere else.

            ...and yet, here you are again. Non-comment-reading-yet-still-replying, thread-losing, obtuse janrinok. The same janrinok who I explained in my last reply that my /home folder is encrypted, hence my concern about homed.

            I'm no more "offended" by you than by anyone else who butts into my conversation with someone else and then has the nerve to reprimand me. I think "annoyed" is more the word. Thanks for nothing for your "I feel I have to apologize but I'm not sure why" apology. You could have saved yourself the trouble by just not responding.

            Don't go away mad...

            • (Score: 0) by Anonymous Coward on Saturday May 02 2020, @01:55PM

              by Anonymous Coward on Saturday May 02 2020, @01:55PM (#989459)

              lol we can tell who is mad in this thread. But I don't blame you for raging, I blame Poettering.

            • (Score: 2) by janrinok on Saturday May 02 2020, @02:05PM

              by janrinok (52) Subscriber Badge on Saturday May 02 2020, @02:05PM (#989466) Journal
              I won't.
        • (Score: 0) by Anonymous Coward on Saturday May 02 2020, @07:03PM

          by Anonymous Coward on Saturday May 02 2020, @07:03PM (#989557)

          You think if you post your name all over the internet like a good little slave you're going to get to sit closer to the master at the dinner table? You're the fucking coward who doesn't have the guts to stand up for your own privacy. You probably send your own kids to be raised by the state and fund the IRS too. You probably suck up to pigs too.