Timeline for Entries in /etc/passwd are all duplicated (and entries in /etc/shadow are also all duplicated)
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 10, 2023 at 19:22 | comment | added | Glendalough | OK, many thanks for this additional info. So, I don't know how that could have happened then - as I haven't tried any coding experiments :). but will do the steps you suggested. Many thanks again for your help! | |
| Apr 10, 2023 at 17:18 | comment | added | Chris Davies | I've never seen this except when editing the file "by hand" and accidentally read in (another instance of) the file while still editing it. You could conceivably get it with poor custom coding; I would guess it would be a grep searching for a username and then copying through the remainder, but forgetting that certain patterns match everywhere (. for example, or even something as silly as matching a username om wrongly against all users' /home/... directories) | |
| Apr 10, 2023 at 16:46 | vote | accept | Glendalough | ||
| Apr 10, 2023 at 16:45 | comment | added | Glendalough | Many thanks, that's very clear and thanks for confirming that this is unexpected: it was my gutfeel but I couldn't find out if there weren't cases when this can be a 'legitimate' situation. I have actually used sort to check if it was just a few of those entries that were duplicated, but actually, this showed that all entries were duplicated, in both configuration files. Could I still ask please if you would have any idea as to the cause of such situation, or seen any kind of events that may trigger that ? And again, many thanks for your response. | |
| Apr 10, 2023 at 14:49 | history | answered | Chris Davies | CC BY-SA 4.0 |