mirror of
https://github.com/konstruktoid/hardening.git
synced 2026-04-26 01:05:56 +03:00
[GH-ISSUE #200] [BUG] fstab gets replaced with only a few lines #64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beepboop1234 on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/200
Originally assigned to: @konstruktoid on GitHub.
Describe the bug
Probably user error on my part. New 22.04 minimal install in proxmox. Set up partitions according to documentation (image attached). After running the ubuntu.sh script my fstab only contains:
Prior to script it contained:
First time this happened I assumed it was because I hadn't modified fstab to replace the "defaults" with nosuid, etc so I updated fstab to (I think) mirror your directions and still have the same error.
To Reproduce
Ubuntu Server 22.04 on proxmox and run ubuntu.sh
Expected behavior
Not to have all partitions removed from fstab
System (lsb_release -a):
Additional context
Changes to ubuntu.cfg were only adding the IP of my main machine, new ssh port, verbose to 'Y', and entering an admin email, along with the CHANGEME change. I saw the same login loop as issue 157 when attempting to login via console in proxmox but was able to ssh in and swap the fstab back.
Again, I don't have a lot of experience with Ubuntu servers so this is probably user error but opening this in case it's not.
Here's a screenshot of the partitions when I set them up following your screenshots from issue 118.
Here's the log file it generated:
hardening-ubuntuserver-221123.log
If there's something I'm doing wrong or there's other info I can provide please let me know. Thanks!
@konstruktoid commented on GitHub (Nov 24, 2022):
Thanks for creating this issue @beepboop1234, I'll have a look.
@konstruktoid commented on GitHub (Nov 29, 2022):
So sorry for the late reply @beepboop1234 and you are correct.
The curtin installation sets
defaults 0 1on all partitions which makes the script ignore it.I've merged https://github.com/konstruktoid/hardening/pull/202, so can you try again?
@beepboop1234 commented on GitHub (Dec 16, 2022):
And sorry I'm just seeing and replying to this @konstruktoid. Just setup another vm and tested it and I'm no longer seeing the previous problem behavior. Thanks for getting that updated so quickly! I've only used github once or twice before and don't know how to mark this as closed or solved or similar. If this post doesn't do it, feel free to close this out.
Thanks again!