Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
0.64 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.03 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
  +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
  +url: null
  +body: """
    Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 38
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1702197100 {#2410
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 21174
  -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
  -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1702115144
  +visibility: "visible             "
  +apId: "https://lemmy.ml/post/9032262"
  +editedAt: DateTimeImmutable @1703484244 {#1850
    date: 2023-12-25 07:04:04.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702028744 {#2420
    date: 2023-12-08 10:45:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
  +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
  +url: null
  +body: """
    Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 38
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1702197100 {#2410
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 21174
  -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
  -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1702115144
  +visibility: "visible             "
  +apId: "https://lemmy.ml/post/9032262"
  +editedAt: DateTimeImmutable @1703484244 {#1850
    date: 2023-12-25 07:04:04.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702028744 {#2420
    date: 2023-12-08 10:45:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
  +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
  +url: null
  +body: """
    Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 38
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1702197100 {#2410
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 21174
  -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
  -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1702115144
  +visibility: "visible             "
  +apId: "https://lemmy.ml/post/9032262"
  +editedAt: DateTimeImmutable @1703484244 {#1850
    date: 2023-12-25 07:04:04.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702028744 {#2420
    date: 2023-12-08 10:45:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#4017
  +user: App\Entity\User {#3965 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Normally its better practice to have the server configuration stored in a declarative way like ansible or similar and only store the userdata in the backup.\n
    \n
    So you can fast and easy reinstall your server including all of its config files and then clone the usage data like dbs or files into the new machine. This is more reliable and also faster than just do a full dump of the system.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702197100 {#4027
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4015 …}
  +nested: Doctrine\ORM\PersistentCollection {#4013 …}
  +votes: Doctrine\ORM\PersistentCollection {#4011 …}
  +reports: Doctrine\ORM\PersistentCollection {#4009 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3977 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3981 …}
  -id: 216126
  -bodyTs: "'also':61 'ansibl':16 'backup':26 'better':3 'clone':44 'config':40 'configur':9 'data':47 'dbs':49 'declar':13 'dump':68 'easi':32 'fast':30 'faster':62 'file':41,51 'full':67 'includ':36 'like':15,48 'machin':55 'new':54 'normal':1 'practic':4 'reinstal':33 'reliabl':59 'server':8,35 'similar':18 'store':10,21 'system':71 'usag':46 'userdata':23 'way':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/5590342"
  +editedAt: DateTimeImmutable @1703670626 {#3963
    date: 2023-12-27 10:50:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702197100 {#4026
    date: 2023-12-10 09:31:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#4017
  +user: App\Entity\User {#3965 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Normally its better practice to have the server configuration stored in a declarative way like ansible or similar and only store the userdata in the backup.\n
    \n
    So you can fast and easy reinstall your server including all of its config files and then clone the usage data like dbs or files into the new machine. This is more reliable and also faster than just do a full dump of the system.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702197100 {#4027
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4015 …}
  +nested: Doctrine\ORM\PersistentCollection {#4013 …}
  +votes: Doctrine\ORM\PersistentCollection {#4011 …}
  +reports: Doctrine\ORM\PersistentCollection {#4009 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3977 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3981 …}
  -id: 216126
  -bodyTs: "'also':61 'ansibl':16 'backup':26 'better':3 'clone':44 'config':40 'configur':9 'data':47 'dbs':49 'declar':13 'dump':68 'easi':32 'fast':30 'faster':62 'file':41,51 'full':67 'includ':36 'like':15,48 'machin':55 'new':54 'normal':1 'practic':4 'reinstal':33 'reliabl':59 'server':8,35 'similar':18 'store':10,21 'system':71 'usag':46 'userdata':23 'way':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/5590342"
  +editedAt: DateTimeImmutable @1703670626 {#3963
    date: 2023-12-27 10:50:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702197100 {#4026
    date: 2023-12-10 09:31:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#4017
  +user: App\Entity\User {#3965 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Normally its better practice to have the server configuration stored in a declarative way like ansible or similar and only store the userdata in the backup.\n
    \n
    So you can fast and easy reinstall your server including all of its config files and then clone the usage data like dbs or files into the new machine. This is more reliable and also faster than just do a full dump of the system.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702197100 {#4027
    date: 2023-12-10 09:31:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4015 …}
  +nested: Doctrine\ORM\PersistentCollection {#4013 …}
  +votes: Doctrine\ORM\PersistentCollection {#4011 …}
  +reports: Doctrine\ORM\PersistentCollection {#4009 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3977 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3981 …}
  -id: 216126
  -bodyTs: "'also':61 'ansibl':16 'backup':26 'better':3 'clone':44 'config':40 'configur':9 'data':47 'dbs':49 'declar':13 'dump':68 'easi':32 'fast':30 'faster':62 'file':41,51 'full':67 'includ':36 'like':15,48 'machin':55 'new':54 'normal':1 'practic':4 'reinstal':33 'reliabl':59 'server':8,35 'similar':18 'store':10,21 'system':71 'usag':46 'userdata':23 'way':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/5590342"
  +editedAt: DateTimeImmutable @1703670626 {#3963
    date: 2023-12-27 10:50:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702197100 {#4026
    date: 2023-12-10 09:31:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4038 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Yes but it’s hard work.\n
    \n
    I did it from the other side of the planet. I accidentally ran an `rm -rf …` command on a running system. Luckily I had an identical system running that I could use to copy over the files, devices, etc.\n
    \n
    Learning about inodes and `/proc/xxx/fd` works, I was able to recover enough files to then copy over the rest from the other system.\n
    \n
    Doing it over SSH from the other side of the world was a tough 14 hours.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702167467 {#4061
    date: 2023-12-10 01:17:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4046 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4042 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 215373
  -bodyTs: "'/proc/xxx/fd':50 '14':83 'abl':54 'accident':18 'command':23 'copi':40,61 'could':37 'devic':44 'enough':57 'etc':45 'file':43,58 'hard':5 'hour':84 'ident':32 'inod':48 'learn':46 'luckili':28 'planet':16 'ran':19 'recov':56 'rest':64 'rf':22 'rm':21 'run':26,34 'side':13,76 'ssh':72 'system':27,33,68 'tough':82 'use':38 'work':6,51 'world':79 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lem.free.as/comment/843224"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702167467 {#4059
    date: 2023-12-10 01:17:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4038 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Yes but it’s hard work.\n
    \n
    I did it from the other side of the planet. I accidentally ran an `rm -rf …` command on a running system. Luckily I had an identical system running that I could use to copy over the files, devices, etc.\n
    \n
    Learning about inodes and `/proc/xxx/fd` works, I was able to recover enough files to then copy over the rest from the other system.\n
    \n
    Doing it over SSH from the other side of the world was a tough 14 hours.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702167467 {#4061
    date: 2023-12-10 01:17:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4046 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4042 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 215373
  -bodyTs: "'/proc/xxx/fd':50 '14':83 'abl':54 'accident':18 'command':23 'copi':40,61 'could':37 'devic':44 'enough':57 'etc':45 'file':43,58 'hard':5 'hour':84 'ident':32 'inod':48 'learn':46 'luckili':28 'planet':16 'ran':19 'recov':56 'rest':64 'rf':22 'rm':21 'run':26,34 'side':13,76 'ssh':72 'system':27,33,68 'tough':82 'use':38 'work':6,51 'world':79 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lem.free.as/comment/843224"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702167467 {#4059
    date: 2023-12-10 01:17:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4038 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Yes but it’s hard work.\n
    \n
    I did it from the other side of the planet. I accidentally ran an `rm -rf …` command on a running system. Luckily I had an identical system running that I could use to copy over the files, devices, etc.\n
    \n
    Learning about inodes and `/proc/xxx/fd` works, I was able to recover enough files to then copy over the rest from the other system.\n
    \n
    Doing it over SSH from the other side of the world was a tough 14 hours.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702167467 {#4061
    date: 2023-12-10 01:17:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4046 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4042 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 215373
  -bodyTs: "'/proc/xxx/fd':50 '14':83 'abl':54 'accident':18 'command':23 'copi':40,61 'could':37 'devic':44 'enough':57 'etc':45 'file':43,58 'hard':5 'hour':84 'ident':32 'inod':48 'learn':46 'luckili':28 'planet':16 'ran':19 'recov':56 'rest':64 'rf':22 'rm':21 'run':26,34 'side':13,76 'ssh':72 'system':27,33,68 'tough':82 'use':38 'work':6,51 'world':79 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lem.free.as/comment/843224"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702167467 {#4059
    date: 2023-12-10 01:17:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\EntryComment {#4138
  +user: App\Entity\User {#4151 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    > Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Not everything will be owned by root, and some of the binaries will be setuid or setgid, some might even have extended attributes (e.g. ping will usually have a security.capability attribute). `/var` will also have a lot of different owners.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702125520 {#4133
    date: 2023-12-09 13:38:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4139 …}
  +nested: Doctrine\ORM\PersistentCollection {#4141 …}
  +votes: Doctrine\ORM\PersistentCollection {#4143 …}
  +reports: Doctrine\ORM\PersistentCollection {#4145 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4147 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4149 …}
  -id: 213502
  -bodyTs: "'/var':78 'also':34,80 'assum':17 'attribut':69,77 'back':45 'belong':11,23 'binari':58 'chown':31 'differ':85 'directori':21 'e.g':70 'even':66 'everyth':18,48 'extend':68 'issu':2 'know':37 'lot':83 'might':65 'own':51 'owner':86 'permiss':43 'ping':71 're':5 'retain':40 'root':25,53 'security.capability':76 'server':9,14 'setgid':63 'setuid':61 'store':6 'use':30 'user':15 'usual':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/5571301"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702125520 {#4134
    date: 2023-12-09 13:38:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\EntryComment {#4138
  +user: App\Entity\User {#4151 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    > Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Not everything will be owned by root, and some of the binaries will be setuid or setgid, some might even have extended attributes (e.g. ping will usually have a security.capability attribute). `/var` will also have a lot of different owners.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702125520 {#4133
    date: 2023-12-09 13:38:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4139 …}
  +nested: Doctrine\ORM\PersistentCollection {#4141 …}
  +votes: Doctrine\ORM\PersistentCollection {#4143 …}
  +reports: Doctrine\ORM\PersistentCollection {#4145 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4147 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4149 …}
  -id: 213502
  -bodyTs: "'/var':78 'also':34,80 'assum':17 'attribut':69,77 'back':45 'belong':11,23 'binari':58 'chown':31 'differ':85 'directori':21 'e.g':70 'even':66 'everyth':18,48 'extend':68 'issu':2 'know':37 'lot':83 'might':65 'own':51 'owner':86 'permiss':43 'ping':71 're':5 'retain':40 'root':25,53 'security.capability':76 'server':9,14 'setgid':63 'setuid':61 'store':6 'use':30 'user':15 'usual':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/5571301"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702125520 {#4134
    date: 2023-12-09 13:38:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\EntryComment {#4138
  +user: App\Entity\User {#4151 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    > Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
    \n
    Not everything will be owned by root, and some of the binaries will be setuid or setgid, some might even have extended attributes (e.g. ping will usually have a security.capability attribute). `/var` will also have a lot of different owners.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702125520 {#4133
    date: 2023-12-09 13:38:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4139 …}
  +nested: Doctrine\ORM\PersistentCollection {#4141 …}
  +votes: Doctrine\ORM\PersistentCollection {#4143 …}
  +reports: Doctrine\ORM\PersistentCollection {#4145 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4147 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4149 …}
  -id: 213502
  -bodyTs: "'/var':78 'also':34,80 'assum':17 'attribut':69,77 'back':45 'belong':11,23 'binari':58 'chown':31 'differ':85 'directori':21 'e.g':70 'even':66 'everyth':18,48 'extend':68 'issu':2 'know':37 'lot':83 'might':65 'own':51 'owner':86 'permiss':43 'ping':71 're':5 'retain':40 'root':25,53 'security.capability':76 'server':9,14 'setgid':63 'setuid':61 'store':6 'use':30 'user':15 'usual':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/5571301"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702125520 {#4134
    date: 2023-12-09 13:38:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED moderate
App\Entity\EntryComment {#4211
  +user: App\Entity\User {#4224 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did a similar fucky-wucky before and honestly i just cut my losses and backed up the user data before reinstalling the OS from scratch. Took a few days of tinkering to get my system back to where it was but there’s no telling what kind of system you’ll be left with when you merge a known good image with a broken system."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 7
  +score: 0
  +lastActive: DateTime @1702124492 {#4206
    date: 2023-12-09 13:21:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4212 …}
  +nested: Doctrine\ORM\PersistentCollection {#4214 …}
  +votes: Doctrine\ORM\PersistentCollection {#4216 …}
  +reports: Doctrine\ORM\PersistentCollection {#4218 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4220 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4222 …}
  -id: 213466
  -bodyTs: "'back':17,38 'broken':66 'cut':13 'data':21 'day':31 'fucki':6 'fucky-wucki':5 'get':35 'good':62 'honest':10 'imag':63 'kind':49 'known':61 'left':55 'll':53 'loss':15 'merg':59 'os':25 'reinstal':23 'scratch':27 'similar':4 'system':37,51,67 'tell':47 'tinker':33 'took':28 'user':20 'wucki':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5917890"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702124492 {#4207
    date: 2023-12-09 13:21:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
19 DENIED edit
App\Entity\EntryComment {#4211
  +user: App\Entity\User {#4224 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did a similar fucky-wucky before and honestly i just cut my losses and backed up the user data before reinstalling the OS from scratch. Took a few days of tinkering to get my system back to where it was but there’s no telling what kind of system you’ll be left with when you merge a known good image with a broken system."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 7
  +score: 0
  +lastActive: DateTime @1702124492 {#4206
    date: 2023-12-09 13:21:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4212 …}
  +nested: Doctrine\ORM\PersistentCollection {#4214 …}
  +votes: Doctrine\ORM\PersistentCollection {#4216 …}
  +reports: Doctrine\ORM\PersistentCollection {#4218 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4220 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4222 …}
  -id: 213466
  -bodyTs: "'back':17,38 'broken':66 'cut':13 'data':21 'day':31 'fucki':6 'fucky-wucki':5 'get':35 'good':62 'honest':10 'imag':63 'kind':49 'known':61 'left':55 'll':53 'loss':15 'merg':59 'os':25 'reinstal':23 'scratch':27 'similar':4 'system':37,51,67 'tell':47 'tinker':33 'took':28 'user':20 'wucki':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5917890"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702124492 {#4207
    date: 2023-12-09 13:21:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
20 DENIED moderate
App\Entity\EntryComment {#4211
  +user: App\Entity\User {#4224 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did a similar fucky-wucky before and honestly i just cut my losses and backed up the user data before reinstalling the OS from scratch. Took a few days of tinkering to get my system back to where it was but there’s no telling what kind of system you’ll be left with when you merge a known good image with a broken system."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 7
  +score: 0
  +lastActive: DateTime @1702124492 {#4206
    date: 2023-12-09 13:21:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4212 …}
  +nested: Doctrine\ORM\PersistentCollection {#4214 …}
  +votes: Doctrine\ORM\PersistentCollection {#4216 …}
  +reports: Doctrine\ORM\PersistentCollection {#4218 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4220 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4222 …}
  -id: 213466
  -bodyTs: "'back':17,38 'broken':66 'cut':13 'data':21 'day':31 'fucki':6 'fucky-wucki':5 'get':35 'good':62 'honest':10 'imag':63 'kind':49 'known':61 'left':55 'll':53 'loss':15 'merg':59 'os':25 'reinstal':23 'scratch':27 'similar':4 'system':37,51,67 'tell':47 'tinker':33 'took':28 'user':20 'wucki':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5917890"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702124492 {#4207
    date: 2023-12-09 13:21:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
21 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
22 DENIED moderate
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Use dd next. Go for a trash your install speedrun! Hey, it’s the quickest way to learn 🤷\u{200D}♂️"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702109511 {#4279
    date: 2023-12-09 09:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 213100
  -bodyTs: "'dd':2 'go':4 'hey':11 'instal':9 'learn':18 'next':3 'quickest':15 'speedrun':10 'trash':7 'use':1 'way':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5526848"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702109511 {#4280
    date: 2023-12-09 09:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
23 DENIED edit
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Use dd next. Go for a trash your install speedrun! Hey, it’s the quickest way to learn 🤷\u{200D}♂️"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702109511 {#4279
    date: 2023-12-09 09:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 213100
  -bodyTs: "'dd':2 'go':4 'hey':11 'instal':9 'learn':18 'next':3 'quickest':15 'speedrun':10 'trash':7 'use':1 'way':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5526848"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702109511 {#4280
    date: 2023-12-09 09:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
24 DENIED moderate
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Use dd next. Go for a trash your install speedrun! Hey, it’s the quickest way to learn 🤷\u{200D}♂️"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702109511 {#4279
    date: 2023-12-09 09:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 213100
  -bodyTs: "'dd':2 'go':4 'hey':11 'instal':9 'learn':18 'next':3 'quickest':15 'speedrun':10 'trash':7 'use':1 'way':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5526848"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702109511 {#4280
    date: 2023-12-09 09:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
25 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
26 DENIED moderate
App\Entity\EntryComment {#4357
  +user: App\Entity\User {#4370 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Give it a try! System is broken anyway. Also fix your backup to include file metadata, maybe disk images?\n
    \n
    Heck I would try using testdisk to undelete the files onto another filesystem then copy them back if the permissions look okay.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1702094824 {#4352
    date: 2023-12-09 05:07:04.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4358 …}
  +nested: Doctrine\ORM\PersistentCollection {#4360 …}
  +votes: Doctrine\ORM\PersistentCollection {#4362 …}
  +reports: Doctrine\ORM\PersistentCollection {#4364 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4366 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4368 …}
  -id: 212748
  -bodyTs: "'also':9 'anoth':31 'anyway':8 'back':36 'backup':12 'broken':7 'copi':34 'disk':18 'file':15,29 'filesystem':32 'fix':10 'give':1 'heck':20 'imag':19 'includ':14 'look':40 'mayb':17 'metadata':16 'okay':41 'onto':30 'permiss':39 'system':5 'testdisk':25 'tri':4,23 'undelet':27 'use':24 'would':22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5912718"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702094824 {#4353
    date: 2023-12-09 05:07:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
27 DENIED edit
App\Entity\EntryComment {#4357
  +user: App\Entity\User {#4370 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Give it a try! System is broken anyway. Also fix your backup to include file metadata, maybe disk images?\n
    \n
    Heck I would try using testdisk to undelete the files onto another filesystem then copy them back if the permissions look okay.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1702094824 {#4352
    date: 2023-12-09 05:07:04.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4358 …}
  +nested: Doctrine\ORM\PersistentCollection {#4360 …}
  +votes: Doctrine\ORM\PersistentCollection {#4362 …}
  +reports: Doctrine\ORM\PersistentCollection {#4364 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4366 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4368 …}
  -id: 212748
  -bodyTs: "'also':9 'anoth':31 'anyway':8 'back':36 'backup':12 'broken':7 'copi':34 'disk':18 'file':15,29 'filesystem':32 'fix':10 'give':1 'heck':20 'imag':19 'includ':14 'look':40 'mayb':17 'metadata':16 'okay':41 'onto':30 'permiss':39 'system':5 'testdisk':25 'tri':4,23 'undelet':27 'use':24 'would':22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5912718"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702094824 {#4353
    date: 2023-12-09 05:07:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
28 DENIED moderate
App\Entity\EntryComment {#4357
  +user: App\Entity\User {#4370 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Give it a try! System is broken anyway. Also fix your backup to include file metadata, maybe disk images?\n
    \n
    Heck I would try using testdisk to undelete the files onto another filesystem then copy them back if the permissions look okay.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1702094824 {#4352
    date: 2023-12-09 05:07:04.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4358 …}
  +nested: Doctrine\ORM\PersistentCollection {#4360 …}
  +votes: Doctrine\ORM\PersistentCollection {#4362 …}
  +reports: Doctrine\ORM\PersistentCollection {#4364 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4366 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4368 …}
  -id: 212748
  -bodyTs: "'also':9 'anoth':31 'anyway':8 'back':36 'backup':12 'broken':7 'copi':34 'disk':18 'file':15,29 'filesystem':32 'fix':10 'give':1 'heck':20 'imag':19 'includ':14 'look':40 'mayb':17 'metadata':16 'okay':41 'onto':30 'permiss':39 'system':5 'testdisk':25 'tri':4,23 'undelet':27 'use':24 'would':22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5912718"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702094824 {#4353
    date: 2023-12-09 05:07:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
29 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
30 DENIED moderate
App\Entity\EntryComment {#4430
  +user: App\Entity\User {#4443 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did this way back in the day on my Mandrake installation with a 1.44" floppy. Only tricky part was that I had to run cp from the floppy instead of from normal $PATH as I’d wiped out /bin."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702088487 {#4425
    date: 2023-12-09 03:21:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4431 …}
  +nested: Doctrine\ORM\PersistentCollection {#4433 …}
  +votes: Doctrine\ORM\PersistentCollection {#4435 …}
  +reports: Doctrine\ORM\PersistentCollection {#4437 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4439 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4441 …}
  -id: 212562
  -bodyTs: "'/bin':40 '1.44':15 'back':5 'cp':26 'd':37 'day':8 'floppi':16,29 'instal':12 'instead':30 'mandrak':11 'normal':33 'part':19 'path':34 'run':25 'tricki':18 'way':4 'wipe':38"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://slrpnk.net/comment/4588756"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702088487 {#4426
    date: 2023-12-09 03:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
31 DENIED edit
App\Entity\EntryComment {#4430
  +user: App\Entity\User {#4443 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did this way back in the day on my Mandrake installation with a 1.44" floppy. Only tricky part was that I had to run cp from the floppy instead of from normal $PATH as I’d wiped out /bin."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702088487 {#4425
    date: 2023-12-09 03:21:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4431 …}
  +nested: Doctrine\ORM\PersistentCollection {#4433 …}
  +votes: Doctrine\ORM\PersistentCollection {#4435 …}
  +reports: Doctrine\ORM\PersistentCollection {#4437 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4439 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4441 …}
  -id: 212562
  -bodyTs: "'/bin':40 '1.44':15 'back':5 'cp':26 'd':37 'day':8 'floppi':16,29 'instal':12 'instead':30 'mandrak':11 'normal':33 'part':19 'path':34 'run':25 'tricki':18 'way':4 'wipe':38"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://slrpnk.net/comment/4588756"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702088487 {#4426
    date: 2023-12-09 03:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
32 DENIED moderate
App\Entity\EntryComment {#4430
  +user: App\Entity\User {#4443 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "I did this way back in the day on my Mandrake installation with a 1.44" floppy. Only tricky part was that I had to run cp from the floppy instead of from normal $PATH as I’d wiped out /bin."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702088487 {#4425
    date: 2023-12-09 03:21:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4431 …}
  +nested: Doctrine\ORM\PersistentCollection {#4433 …}
  +votes: Doctrine\ORM\PersistentCollection {#4435 …}
  +reports: Doctrine\ORM\PersistentCollection {#4437 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4439 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4441 …}
  -id: 212562
  -bodyTs: "'/bin':40 '1.44':15 'back':5 'cp':26 'd':37 'day':8 'floppi':16,29 'instal':12 'instead':30 'mandrak':11 'normal':33 'part':19 'path':34 'run':25 'tricki':18 'way':4 'wipe':38"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://slrpnk.net/comment/4588756"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702088487 {#4426
    date: 2023-12-09 03:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
33 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
34 DENIED moderate
App\Entity\EntryComment {#4504
  +user: App\Entity\User {#4517 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    What system are we talking about here? The `–no-preserve-root` option is part of every modern release of `rm`.\n
    \n
    Edit: Never mind, I didn’t read the post properly.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702085397 {#4498
    date: 2023-12-09 02:29:57.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4505 …}
  +nested: Doctrine\ORM\PersistentCollection {#4507 …}
  +votes: Doctrine\ORM\PersistentCollection {#4509 …}
  +reports: Doctrine\ORM\PersistentCollection {#4511 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4513 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4515 …}
  -id: 212422
  -bodyTs: "'didn':26 'edit':22 'everi':17 'mind':24 'modern':18 'never':23 'no-preserve-root':9 'option':13 'part':15 'post':30 'preserv':11 'proper':31 'read':28 'releas':19 'rm':21 'root':12 'system':2 'talk':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5521597"
  +editedAt: DateTimeImmutable @1703681943 {#4499
    date: 2023-12-27 13:59:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702085397 {#4500
    date: 2023-12-09 02:29:57.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
35 DENIED edit
App\Entity\EntryComment {#4504
  +user: App\Entity\User {#4517 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    What system are we talking about here? The `–no-preserve-root` option is part of every modern release of `rm`.\n
    \n
    Edit: Never mind, I didn’t read the post properly.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702085397 {#4498
    date: 2023-12-09 02:29:57.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4505 …}
  +nested: Doctrine\ORM\PersistentCollection {#4507 …}
  +votes: Doctrine\ORM\PersistentCollection {#4509 …}
  +reports: Doctrine\ORM\PersistentCollection {#4511 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4513 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4515 …}
  -id: 212422
  -bodyTs: "'didn':26 'edit':22 'everi':17 'mind':24 'modern':18 'never':23 'no-preserve-root':9 'option':13 'part':15 'post':30 'preserv':11 'proper':31 'read':28 'releas':19 'rm':21 'root':12 'system':2 'talk':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5521597"
  +editedAt: DateTimeImmutable @1703681943 {#4499
    date: 2023-12-27 13:59:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702085397 {#4500
    date: 2023-12-09 02:29:57.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
36 DENIED moderate
App\Entity\EntryComment {#4504
  +user: App\Entity\User {#4517 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    What system are we talking about here? The `–no-preserve-root` option is part of every modern release of `rm`.\n
    \n
    Edit: Never mind, I didn’t read the post properly.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702085397 {#4498
    date: 2023-12-09 02:29:57.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4505 …}
  +nested: Doctrine\ORM\PersistentCollection {#4507 …}
  +votes: Doctrine\ORM\PersistentCollection {#4509 …}
  +reports: Doctrine\ORM\PersistentCollection {#4511 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4513 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4515 …}
  -id: 212422
  -bodyTs: "'didn':26 'edit':22 'everi':17 'mind':24 'modern':18 'never':23 'no-preserve-root':9 'option':13 'part':15 'post':30 'preserv':11 'proper':31 'read':28 'releas':19 'rm':21 'root':12 'system':2 'talk':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5521597"
  +editedAt: DateTimeImmutable @1703681943 {#4499
    date: 2023-12-27 13:59:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702085397 {#4500
    date: 2023-12-09 02:29:57.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
37 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
38 DENIED moderate
App\Entity\EntryComment {#4577
  +user: App\Entity\User {#4590 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sure. Just restore my proxmox vm backup. I got it running again in to time if needed."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1702063586 {#4572
    date: 2023-12-08 20:26:26.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4580 …}
  +votes: Doctrine\ORM\PersistentCollection {#4582 …}
  +reports: Doctrine\ORM\PersistentCollection {#4584 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4586 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4588 …}
  -id: 211393
  -bodyTs: "'backup':7 'got':9 'need':17 'proxmox':5 'restor':3 'run':11 'sure':1 'time':15 'vm':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.melroy.org/m/linux@lemmy.ml/t/77101/-/comment/638650"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702063586 {#4573
    date: 2023-12-08 20:26:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
39 DENIED edit
App\Entity\EntryComment {#4577
  +user: App\Entity\User {#4590 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sure. Just restore my proxmox vm backup. I got it running again in to time if needed."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1702063586 {#4572
    date: 2023-12-08 20:26:26.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4580 …}
  +votes: Doctrine\ORM\PersistentCollection {#4582 …}
  +reports: Doctrine\ORM\PersistentCollection {#4584 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4586 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4588 …}
  -id: 211393
  -bodyTs: "'backup':7 'got':9 'need':17 'proxmox':5 'restor':3 'run':11 'sure':1 'time':15 'vm':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.melroy.org/m/linux@lemmy.ml/t/77101/-/comment/638650"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702063586 {#4573
    date: 2023-12-08 20:26:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
40 DENIED moderate
App\Entity\EntryComment {#4577
  +user: App\Entity\User {#4590 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sure. Just restore my proxmox vm backup. I got it running again in to time if needed."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1702063586 {#4572
    date: 2023-12-08 20:26:26.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4580 …}
  +votes: Doctrine\ORM\PersistentCollection {#4582 …}
  +reports: Doctrine\ORM\PersistentCollection {#4584 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4586 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4588 …}
  -id: 211393
  -bodyTs: "'backup':7 'got':9 'need':17 'proxmox':5 'restor':3 'run':11 'sure':1 'time':15 'vm':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.melroy.org/m/linux@lemmy.ml/t/77101/-/comment/638650"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702063586 {#4573
    date: 2023-12-08 20:26:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
41 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
42 DENIED moderate
App\Entity\EntryComment {#4651
  +user: App\Entity\User {#4664 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Depends on specific machine setup and how good the backup is.\n
    \n
    Backup requirements for /usr there are sticky bits set on some binaries. That needs to be preserved. In all cases soft links likely need to be preserved for things to work correctly on future package installs. Hard links can be problematic, but if you have a large enough drive or not that many it wont matter. Running package verification can be help after restore to make sure everything looks right. If running a Linux system with SELinux in enforcing mode (RHEL on many derivatives), then the security context will also need to be preserved BUT running a relabel will probably work if the security context was not included in backups. Sometimes running the relabel process wont work if there are files that needs a specific security context but are not listed in the security context database. Can’t provide more details because most of my experience with that is on systems we just replace (LSPP custom labeling resulted in systems that if you booted into permissive would then be unbootable, so they were just reinstalled once any debugging was done).\n
    \n
    For /boot things can get tricky depending on the distribution, what boot manager is used, and /boot was a separate partition or not. Basically the boot manager (probably grub) needs to know how to find the files in boot so it can load the kernel. In most cases if you restore /boot and rerun the tools to update the boot manger everything will be fine. BUT some distributions, hardware setups, or dual boot configurations are more complicated, so extra work might be needed.\n
    \n
    You didn’t mention /dev, which is all special files. These don’t need to be restored, just make sure the right processes recreate them. There are tools to do this, hopefully the packages are installed. Or boot from a rescue disk and fix it. Look up instruction for your specific distro.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1702061320 {#4646
    date: 2023-12-08 19:48:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4652 …}
  +nested: Doctrine\ORM\PersistentCollection {#4654 …}
  +votes: Doctrine\ORM\PersistentCollection {#4656 …}
  +reports: Doctrine\ORM\PersistentCollection {#4658 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4660 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4662 …}
  -id: 211279
  -bodyTs: "'/boot':193,208,243 '/dev':279 '/usr':15 'also':101 'backup':10,12,121 'basic':215 'binari':23 'bit':19 'boot':175,203,217,230,251,264,312 'case':31,239 'complic':268 'configur':265 'context':99,116,138,146 'correct':43 'custom':167 'databas':147 'debug':189 'depend':1,198 'deriv':95 'detail':152 'didn':276 'disk':316 'distribut':201,259 'distro':326 'done':191 'drive':60 'dual':263 'enforc':90 'enough':59 'everyth':79,253 'experi':157 'extra':270 'file':132,228,284 'find':226 'fine':256 'fix':318 'futur':45 'get':196 'good':8 'grub':220 'hard':48 'hardwar':260 'help':73 'hope':306 'includ':119 'instal':47,310 'instruct':322 'kernel':236 'know':223 'label':168 'larg':58 'like':34 'link':33,49 'linux':85 'list':142 'load':234 'look':80,320 'lspp':166 'machin':4 'make':77,293 'manag':204,218 'manger':252 'mani':64,94 'matter':67 'mention':278 'might':272 'mode':91 'need':25,35,102,134,221,274,288 'packag':46,69,308 'partit':212 'permiss':177 'preserv':28,38,105 'probabl':111,219 'problemat':52 'process':126,297 'provid':150 'recreat':298 'reinstal':186 'relabel':109,125 'replac':165 'requir':13 'rerun':245 'rescu':315 'restor':75,242,291 'result':169 'rhel':92 'right':81,296 'run':68,83,107,123 'secur':98,115,137,145 'selinux':88 'separ':211 'set':20 'setup':5,261 'soft':32 'sometim':122 'special':283 'specif':3,136,325 'sticki':18 'sure':78,294 'system':86,162,171 'thing':40,194 'tool':247,302 'tricki':197 'unboot':181 'updat':249 'use':206 'verif':70 'wont':66,127 'work':42,112,128,271 'would':178"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5902557"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702061320 {#4647
    date: 2023-12-08 19:48:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
43 DENIED edit
App\Entity\EntryComment {#4651
  +user: App\Entity\User {#4664 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Depends on specific machine setup and how good the backup is.\n
    \n
    Backup requirements for /usr there are sticky bits set on some binaries. That needs to be preserved. In all cases soft links likely need to be preserved for things to work correctly on future package installs. Hard links can be problematic, but if you have a large enough drive or not that many it wont matter. Running package verification can be help after restore to make sure everything looks right. If running a Linux system with SELinux in enforcing mode (RHEL on many derivatives), then the security context will also need to be preserved BUT running a relabel will probably work if the security context was not included in backups. Sometimes running the relabel process wont work if there are files that needs a specific security context but are not listed in the security context database. Can’t provide more details because most of my experience with that is on systems we just replace (LSPP custom labeling resulted in systems that if you booted into permissive would then be unbootable, so they were just reinstalled once any debugging was done).\n
    \n
    For /boot things can get tricky depending on the distribution, what boot manager is used, and /boot was a separate partition or not. Basically the boot manager (probably grub) needs to know how to find the files in boot so it can load the kernel. In most cases if you restore /boot and rerun the tools to update the boot manger everything will be fine. BUT some distributions, hardware setups, or dual boot configurations are more complicated, so extra work might be needed.\n
    \n
    You didn’t mention /dev, which is all special files. These don’t need to be restored, just make sure the right processes recreate them. There are tools to do this, hopefully the packages are installed. Or boot from a rescue disk and fix it. Look up instruction for your specific distro.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1702061320 {#4646
    date: 2023-12-08 19:48:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4652 …}
  +nested: Doctrine\ORM\PersistentCollection {#4654 …}
  +votes: Doctrine\ORM\PersistentCollection {#4656 …}
  +reports: Doctrine\ORM\PersistentCollection {#4658 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4660 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4662 …}
  -id: 211279
  -bodyTs: "'/boot':193,208,243 '/dev':279 '/usr':15 'also':101 'backup':10,12,121 'basic':215 'binari':23 'bit':19 'boot':175,203,217,230,251,264,312 'case':31,239 'complic':268 'configur':265 'context':99,116,138,146 'correct':43 'custom':167 'databas':147 'debug':189 'depend':1,198 'deriv':95 'detail':152 'didn':276 'disk':316 'distribut':201,259 'distro':326 'done':191 'drive':60 'dual':263 'enforc':90 'enough':59 'everyth':79,253 'experi':157 'extra':270 'file':132,228,284 'find':226 'fine':256 'fix':318 'futur':45 'get':196 'good':8 'grub':220 'hard':48 'hardwar':260 'help':73 'hope':306 'includ':119 'instal':47,310 'instruct':322 'kernel':236 'know':223 'label':168 'larg':58 'like':34 'link':33,49 'linux':85 'list':142 'load':234 'look':80,320 'lspp':166 'machin':4 'make':77,293 'manag':204,218 'manger':252 'mani':64,94 'matter':67 'mention':278 'might':272 'mode':91 'need':25,35,102,134,221,274,288 'packag':46,69,308 'partit':212 'permiss':177 'preserv':28,38,105 'probabl':111,219 'problemat':52 'process':126,297 'provid':150 'recreat':298 'reinstal':186 'relabel':109,125 'replac':165 'requir':13 'rerun':245 'rescu':315 'restor':75,242,291 'result':169 'rhel':92 'right':81,296 'run':68,83,107,123 'secur':98,115,137,145 'selinux':88 'separ':211 'set':20 'setup':5,261 'soft':32 'sometim':122 'special':283 'specif':3,136,325 'sticki':18 'sure':78,294 'system':86,162,171 'thing':40,194 'tool':247,302 'tricki':197 'unboot':181 'updat':249 'use':206 'verif':70 'wont':66,127 'work':42,112,128,271 'would':178"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5902557"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702061320 {#4647
    date: 2023-12-08 19:48:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
44 DENIED moderate
App\Entity\EntryComment {#4651
  +user: App\Entity\User {#4664 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Depends on specific machine setup and how good the backup is.\n
    \n
    Backup requirements for /usr there are sticky bits set on some binaries. That needs to be preserved. In all cases soft links likely need to be preserved for things to work correctly on future package installs. Hard links can be problematic, but if you have a large enough drive or not that many it wont matter. Running package verification can be help after restore to make sure everything looks right. If running a Linux system with SELinux in enforcing mode (RHEL on many derivatives), then the security context will also need to be preserved BUT running a relabel will probably work if the security context was not included in backups. Sometimes running the relabel process wont work if there are files that needs a specific security context but are not listed in the security context database. Can’t provide more details because most of my experience with that is on systems we just replace (LSPP custom labeling resulted in systems that if you booted into permissive would then be unbootable, so they were just reinstalled once any debugging was done).\n
    \n
    For /boot things can get tricky depending on the distribution, what boot manager is used, and /boot was a separate partition or not. Basically the boot manager (probably grub) needs to know how to find the files in boot so it can load the kernel. In most cases if you restore /boot and rerun the tools to update the boot manger everything will be fine. BUT some distributions, hardware setups, or dual boot configurations are more complicated, so extra work might be needed.\n
    \n
    You didn’t mention /dev, which is all special files. These don’t need to be restored, just make sure the right processes recreate them. There are tools to do this, hopefully the packages are installed. Or boot from a rescue disk and fix it. Look up instruction for your specific distro.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1702061320 {#4646
    date: 2023-12-08 19:48:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4652 …}
  +nested: Doctrine\ORM\PersistentCollection {#4654 …}
  +votes: Doctrine\ORM\PersistentCollection {#4656 …}
  +reports: Doctrine\ORM\PersistentCollection {#4658 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4660 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4662 …}
  -id: 211279
  -bodyTs: "'/boot':193,208,243 '/dev':279 '/usr':15 'also':101 'backup':10,12,121 'basic':215 'binari':23 'bit':19 'boot':175,203,217,230,251,264,312 'case':31,239 'complic':268 'configur':265 'context':99,116,138,146 'correct':43 'custom':167 'databas':147 'debug':189 'depend':1,198 'deriv':95 'detail':152 'didn':276 'disk':316 'distribut':201,259 'distro':326 'done':191 'drive':60 'dual':263 'enforc':90 'enough':59 'everyth':79,253 'experi':157 'extra':270 'file':132,228,284 'find':226 'fine':256 'fix':318 'futur':45 'get':196 'good':8 'grub':220 'hard':48 'hardwar':260 'help':73 'hope':306 'includ':119 'instal':47,310 'instruct':322 'kernel':236 'know':223 'label':168 'larg':58 'like':34 'link':33,49 'linux':85 'list':142 'load':234 'look':80,320 'lspp':166 'machin':4 'make':77,293 'manag':204,218 'manger':252 'mani':64,94 'matter':67 'mention':278 'might':272 'mode':91 'need':25,35,102,134,221,274,288 'packag':46,69,308 'partit':212 'permiss':177 'preserv':28,38,105 'probabl':111,219 'problemat':52 'process':126,297 'provid':150 'recreat':298 'reinstal':186 'relabel':109,125 'replac':165 'requir':13 'rerun':245 'rescu':315 'restor':75,242,291 'result':169 'rhel':92 'right':81,296 'run':68,83,107,123 'secur':98,115,137,145 'selinux':88 'separ':211 'set':20 'setup':5,261 'soft':32 'sometim':122 'special':283 'specif':3,136,325 'sticki':18 'sure':78,294 'system':86,162,171 'thing':40,194 'tool':247,302 'tricki':197 'unboot':181 'updat':249 'use':206 'verif':70 'wont':66,127 'work':42,112,128,271 'would':178"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5902557"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702061320 {#4647
    date: 2023-12-08 19:48:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
45 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
46 DENIED moderate
App\Entity\EntryComment {#4724
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
    \n
    As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
    \n
    What distro are you running? That’ll help figure it out.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1703492977 {#4719
    date: 2023-12-25 09:29:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4725 …}
  +nested: Doctrine\ORM\PersistentCollection {#4727 …}
  +votes: Doctrine\ORM\PersistentCollection {#4729 …}
  +reports: Doctrine\ORM\PersistentCollection {#4731 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
  -id: 211135
  -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836231"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702056326 {#4720
    date: 2023-12-08 18:25:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
47 DENIED edit
App\Entity\EntryComment {#4724
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
    \n
    As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
    \n
    What distro are you running? That’ll help figure it out.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1703492977 {#4719
    date: 2023-12-25 09:29:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4725 …}
  +nested: Doctrine\ORM\PersistentCollection {#4727 …}
  +votes: Doctrine\ORM\PersistentCollection {#4729 …}
  +reports: Doctrine\ORM\PersistentCollection {#4731 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
  -id: 211135
  -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836231"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702056326 {#4720
    date: 2023-12-08 18:25:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
48 DENIED moderate
App\Entity\EntryComment {#4724
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
    \n
    As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
    \n
    What distro are you running? That’ll help figure it out.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1703492977 {#4719
    date: 2023-12-25 09:29:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4725 …}
  +nested: Doctrine\ORM\PersistentCollection {#4727 …}
  +votes: Doctrine\ORM\PersistentCollection {#4729 …}
  +reports: Doctrine\ORM\PersistentCollection {#4731 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
  -id: 211135
  -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836231"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702056326 {#4720
    date: 2023-12-08 18:25:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
49 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
50 DENIED moderate
App\Entity\EntryComment {#5097
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4724
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
      \n
      As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
      \n
      What distro are you running? That’ll help figure it out.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1703492977 {#4719
      date: 2023-12-25 09:29:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4725 …}
    +nested: Doctrine\ORM\PersistentCollection {#4727 …}
    +votes: Doctrine\ORM\PersistentCollection {#4729 …}
    +reports: Doctrine\ORM\PersistentCollection {#4731 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
    -id: 211135
    -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836231"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702056326 {#4720
      date: 2023-12-08 18:25:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702058633 {#5101
    date: 2023-12-08 19:03:53.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5094 …}
  +nested: Doctrine\ORM\PersistentCollection {#5092 …}
  +votes: Doctrine\ORM\PersistentCollection {#5096 …}
  +reports: Doctrine\ORM\PersistentCollection {#5107 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
  -id: 211157
  -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6488813"
  +editedAt: DateTimeImmutable @1703487944 {#5104
    date: 2023-12-25 08:05:44.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702058633 {#5100
    date: 2023-12-08 19:03:53.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
51 DENIED edit
App\Entity\EntryComment {#5097
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4724
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
      \n
      As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
      \n
      What distro are you running? That’ll help figure it out.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1703492977 {#4719
      date: 2023-12-25 09:29:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4725 …}
    +nested: Doctrine\ORM\PersistentCollection {#4727 …}
    +votes: Doctrine\ORM\PersistentCollection {#4729 …}
    +reports: Doctrine\ORM\PersistentCollection {#4731 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
    -id: 211135
    -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836231"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702056326 {#4720
      date: 2023-12-08 18:25:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702058633 {#5101
    date: 2023-12-08 19:03:53.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5094 …}
  +nested: Doctrine\ORM\PersistentCollection {#5092 …}
  +votes: Doctrine\ORM\PersistentCollection {#5096 …}
  +reports: Doctrine\ORM\PersistentCollection {#5107 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
  -id: 211157
  -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6488813"
  +editedAt: DateTimeImmutable @1703487944 {#5104
    date: 2023-12-25 08:05:44.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702058633 {#5100
    date: 2023-12-08 19:03:53.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
52 DENIED moderate
App\Entity\EntryComment {#5097
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4724
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
      \n
      As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
      \n
      What distro are you running? That’ll help figure it out.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1703492977 {#4719
      date: 2023-12-25 09:29:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4725 …}
    +nested: Doctrine\ORM\PersistentCollection {#4727 …}
    +votes: Doctrine\ORM\PersistentCollection {#4729 …}
    +reports: Doctrine\ORM\PersistentCollection {#4731 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
    -id: 211135
    -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836231"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702056326 {#4720
      date: 2023-12-08 18:25:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1702058633 {#5101
    date: 2023-12-08 19:03:53.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5094 …}
  +nested: Doctrine\ORM\PersistentCollection {#5092 …}
  +votes: Doctrine\ORM\PersistentCollection {#5096 …}
  +reports: Doctrine\ORM\PersistentCollection {#5107 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
  -id: 211157
  -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6488813"
  +editedAt: DateTimeImmutable @1703487944 {#5104
    date: 2023-12-25 08:05:44.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702058633 {#5100
    date: 2023-12-08 19:03:53.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
53 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
54 DENIED moderate
App\Entity\EntryComment {#5128
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5097
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4724
      +user: App\Entity\User {#4737 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
        \n
        As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
        \n
        What distro are you running? That’ll help figure it out.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1703492977 {#4719
        date: 2023-12-25 09:29:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4725 …}
      +nested: Doctrine\ORM\PersistentCollection {#4727 …}
      +votes: Doctrine\ORM\PersistentCollection {#4729 …}
      +reports: Doctrine\ORM\PersistentCollection {#4731 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
      -id: 211135
      -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://beehaw.org/comment/1836231"
      +editedAt: null
      +createdAt: DateTimeImmutable @1702056326 {#4720
        date: 2023-12-08 18:25:26.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1702058633 {#5101
      date: 2023-12-08 19:03:53.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5094 …}
    +nested: Doctrine\ORM\PersistentCollection {#5092 …}
    +votes: Doctrine\ORM\PersistentCollection {#5096 …}
    +reports: Doctrine\ORM\PersistentCollection {#5107 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
    -id: 211157
    -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6488813"
    +editedAt: DateTimeImmutable @1703487944 {#5104
      date: 2023-12-25 08:05:44.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702058633 {#5100
      date: 2023-12-08 19:03:53.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "That’s entirely valid. Good luck."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062040 {#5123
    date: 2023-12-08 20:00:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5120 …}
  +nested: Doctrine\ORM\PersistentCollection {#5117 …}
  +votes: Doctrine\ORM\PersistentCollection {#5115 …}
  +reports: Doctrine\ORM\PersistentCollection {#5129 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
  -id: 211308
  -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836525"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702062040 {#5126
    date: 2023-12-08 20:00:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
55 DENIED edit
App\Entity\EntryComment {#5128
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5097
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4724
      +user: App\Entity\User {#4737 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
        \n
        As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
        \n
        What distro are you running? That’ll help figure it out.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1703492977 {#4719
        date: 2023-12-25 09:29:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4725 …}
      +nested: Doctrine\ORM\PersistentCollection {#4727 …}
      +votes: Doctrine\ORM\PersistentCollection {#4729 …}
      +reports: Doctrine\ORM\PersistentCollection {#4731 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
      -id: 211135
      -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://beehaw.org/comment/1836231"
      +editedAt: null
      +createdAt: DateTimeImmutable @1702056326 {#4720
        date: 2023-12-08 18:25:26.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1702058633 {#5101
      date: 2023-12-08 19:03:53.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5094 …}
    +nested: Doctrine\ORM\PersistentCollection {#5092 …}
    +votes: Doctrine\ORM\PersistentCollection {#5096 …}
    +reports: Doctrine\ORM\PersistentCollection {#5107 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
    -id: 211157
    -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6488813"
    +editedAt: DateTimeImmutable @1703487944 {#5104
      date: 2023-12-25 08:05:44.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702058633 {#5100
      date: 2023-12-08 19:03:53.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "That’s entirely valid. Good luck."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062040 {#5123
    date: 2023-12-08 20:00:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5120 …}
  +nested: Doctrine\ORM\PersistentCollection {#5117 …}
  +votes: Doctrine\ORM\PersistentCollection {#5115 …}
  +reports: Doctrine\ORM\PersistentCollection {#5129 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
  -id: 211308
  -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836525"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702062040 {#5126
    date: 2023-12-08 20:00:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
56 DENIED moderate
App\Entity\EntryComment {#5128
  +user: App\Entity\User {#4737 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5097
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4724
      +user: App\Entity\User {#4737 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
        \n
        As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
        \n
        What distro are you running? That’ll help figure it out.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1703492977 {#4719
        date: 2023-12-25 09:29:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4725 …}
      +nested: Doctrine\ORM\PersistentCollection {#4727 …}
      +votes: Doctrine\ORM\PersistentCollection {#4729 …}
      +reports: Doctrine\ORM\PersistentCollection {#4731 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
      -id: 211135
      -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://beehaw.org/comment/1836231"
      +editedAt: null
      +createdAt: DateTimeImmutable @1702056326 {#4720
        date: 2023-12-08 18:25:26.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1702058633 {#5101
      date: 2023-12-08 19:03:53.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5094 …}
    +nested: Doctrine\ORM\PersistentCollection {#5092 …}
    +votes: Doctrine\ORM\PersistentCollection {#5096 …}
    +reports: Doctrine\ORM\PersistentCollection {#5107 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
    -id: 211157
    -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6488813"
    +editedAt: DateTimeImmutable @1703487944 {#5104
      date: 2023-12-25 08:05:44.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702058633 {#5100
      date: 2023-12-08 19:03:53.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "That’s entirely valid. Good luck."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062040 {#5123
    date: 2023-12-08 20:00:40.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5120 …}
  +nested: Doctrine\ORM\PersistentCollection {#5117 …}
  +votes: Doctrine\ORM\PersistentCollection {#5115 …}
  +reports: Doctrine\ORM\PersistentCollection {#5129 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
  -id: 211308
  -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://beehaw.org/comment/1836525"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702062040 {#5126
    date: 2023-12-08 20:00:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
57 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
58 DENIED moderate
App\Entity\EntryComment {#5142
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5128
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#5097
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4724
        +user: App\Entity\User {#4737 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: """
          Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
          \n
          As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
          \n
          What distro are you running? That’ll help figure it out.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 6
        +score: 0
        +lastActive: DateTime @1703492977 {#4719
          date: 2023-12-25 09:29:37.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@HiddenLayer5@lemmy.ml"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4725 …}
        +nested: Doctrine\ORM\PersistentCollection {#4727 …}
        +votes: Doctrine\ORM\PersistentCollection {#4729 …}
        +reports: Doctrine\ORM\PersistentCollection {#4731 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
        -id: 211135
        -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://beehaw.org/comment/1836231"
        +editedAt: null
        +createdAt: DateTimeImmutable @1702056326 {#4720
          date: 2023-12-08 18:25:26.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4724}
      +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1702058633 {#5101
        date: 2023-12-08 19:03:53.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
        "@drwho@beehaw.org"
      ]
      +children: Doctrine\ORM\PersistentCollection {#5094 …}
      +nested: Doctrine\ORM\PersistentCollection {#5092 …}
      +votes: Doctrine\ORM\PersistentCollection {#5096 …}
      +reports: Doctrine\ORM\PersistentCollection {#5107 …}
      +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
      +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
      -id: 211157
      -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/6488813"
      +editedAt: DateTimeImmutable @1703487944 {#5104
        date: 2023-12-25 08:05:44.0 +01:00
      }
      +createdAt: DateTimeImmutable @1702058633 {#5100
        date: 2023-12-08 19:03:53.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "That’s entirely valid. Good luck."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702062040 {#5123
      date: 2023-12-08 20:00:40.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5120 …}
    +nested: Doctrine\ORM\PersistentCollection {#5117 …}
    +votes: Doctrine\ORM\PersistentCollection {#5115 …}
    +reports: Doctrine\ORM\PersistentCollection {#5129 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
    -id: 211308
    -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836525"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702062040 {#5126
      date: 2023-12-08 20:00:40.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "Thank you! Regardless of the outcome I will update the main post with my findings in hopes giving anyone else in the same position some more info."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062222 {#5145
    date: 2023-12-08 20:03:42.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5140 …}
  +nested: Doctrine\ORM\PersistentCollection {#5138 …}
  +votes: Doctrine\ORM\PersistentCollection {#5136 …}
  +reports: Doctrine\ORM\PersistentCollection {#5152 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5154 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5156 …}
  -id: 211323
  -bodyTs: "'anyon':19 'els':20 'find':15 'give':18 'hope':17 'info':27 'main':11 'outcom':6 'posit':24 'post':12 'regardless':3 'thank':1 'updat':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6490081"
  +editedAt: DateTimeImmutable @1703493041 {#5148
    date: 2023-12-25 09:30:41.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702062222 {#5150
    date: 2023-12-08 20:03:42.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
59 DENIED edit
App\Entity\EntryComment {#5142
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5128
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#5097
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4724
        +user: App\Entity\User {#4737 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: """
          Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
          \n
          As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
          \n
          What distro are you running? That’ll help figure it out.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 6
        +score: 0
        +lastActive: DateTime @1703492977 {#4719
          date: 2023-12-25 09:29:37.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@HiddenLayer5@lemmy.ml"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4725 …}
        +nested: Doctrine\ORM\PersistentCollection {#4727 …}
        +votes: Doctrine\ORM\PersistentCollection {#4729 …}
        +reports: Doctrine\ORM\PersistentCollection {#4731 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
        -id: 211135
        -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://beehaw.org/comment/1836231"
        +editedAt: null
        +createdAt: DateTimeImmutable @1702056326 {#4720
          date: 2023-12-08 18:25:26.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4724}
      +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1702058633 {#5101
        date: 2023-12-08 19:03:53.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
        "@drwho@beehaw.org"
      ]
      +children: Doctrine\ORM\PersistentCollection {#5094 …}
      +nested: Doctrine\ORM\PersistentCollection {#5092 …}
      +votes: Doctrine\ORM\PersistentCollection {#5096 …}
      +reports: Doctrine\ORM\PersistentCollection {#5107 …}
      +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
      +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
      -id: 211157
      -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/6488813"
      +editedAt: DateTimeImmutable @1703487944 {#5104
        date: 2023-12-25 08:05:44.0 +01:00
      }
      +createdAt: DateTimeImmutable @1702058633 {#5100
        date: 2023-12-08 19:03:53.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "That’s entirely valid. Good luck."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702062040 {#5123
      date: 2023-12-08 20:00:40.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5120 …}
    +nested: Doctrine\ORM\PersistentCollection {#5117 …}
    +votes: Doctrine\ORM\PersistentCollection {#5115 …}
    +reports: Doctrine\ORM\PersistentCollection {#5129 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
    -id: 211308
    -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836525"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702062040 {#5126
      date: 2023-12-08 20:00:40.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "Thank you! Regardless of the outcome I will update the main post with my findings in hopes giving anyone else in the same position some more info."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062222 {#5145
    date: 2023-12-08 20:03:42.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5140 …}
  +nested: Doctrine\ORM\PersistentCollection {#5138 …}
  +votes: Doctrine\ORM\PersistentCollection {#5136 …}
  +reports: Doctrine\ORM\PersistentCollection {#5152 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5154 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5156 …}
  -id: 211323
  -bodyTs: "'anyon':19 'els':20 'find':15 'give':18 'hope':17 'info':27 'main':11 'outcom':6 'posit':24 'post':12 'regardless':3 'thank':1 'updat':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6490081"
  +editedAt: DateTimeImmutable @1703493041 {#5148
    date: 2023-12-25 09:30:41.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702062222 {#5150
    date: 2023-12-08 20:03:42.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
60 DENIED moderate
App\Entity\EntryComment {#5142
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#5128
    +user: App\Entity\User {#4737 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#5097
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4724
        +user: App\Entity\User {#4737 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: """
          Your chances are pretty good if you copy them back - ultimately, that’s what the restoration function of backup software does.\n
          \n
          As for ownership of the directories and files, that’s a bit trickier and might involve some trial and error. root:root is a safe bet for most of it, but there is a lot of stuff in /var that is owned by system accounts.\n
          \n
          What distro are you running? That’ll help figure it out.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 6
        +score: 0
        +lastActive: DateTime @1703492977 {#4719
          date: 2023-12-25 09:29:37.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@HiddenLayer5@lemmy.ml"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4725 …}
        +nested: Doctrine\ORM\PersistentCollection {#4727 …}
        +votes: Doctrine\ORM\PersistentCollection {#4729 …}
        +reports: Doctrine\ORM\PersistentCollection {#4731 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4733 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4735 …}
        -id: 211135
        -bodyTs: "'/var':60 'account':66 'back':10 'backup':19 'bet':47 'bit':33 'chanc':2 'copi':8 'directori':27 'distro':68 'error':41 'figur':75 'file':29 'function':17 'good':5 'help':74 'involv':37 'll':73 'lot':56 'might':36 'own':63 'ownership':24 'pretti':4 'restor':16 'root':42,43 'run':71 'safe':46 'softwar':20 'stuff':58 'system':65 'trial':39 'trickier':34 'ultim':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://beehaw.org/comment/1836231"
        +editedAt: null
        +createdAt: DateTimeImmutable @1702056326 {#4720
          date: 2023-12-08 18:25:26.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4724}
      +body: "I’m running Fedora 39 KDE. I think I’m going to see what the file metadata of my other Fedora systems look like and try to replicate that. Worst case I just reinstall. At this point I’m a little curious how the system will react."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1702058633 {#5101
        date: 2023-12-08 19:03:53.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@HiddenLayer5@lemmy.ml"
        "@drwho@beehaw.org"
      ]
      +children: Doctrine\ORM\PersistentCollection {#5094 …}
      +nested: Doctrine\ORM\PersistentCollection {#5092 …}
      +votes: Doctrine\ORM\PersistentCollection {#5096 …}
      +reports: Doctrine\ORM\PersistentCollection {#5107 …}
      +favourites: Doctrine\ORM\PersistentCollection {#5109 …}
      +notifications: Doctrine\ORM\PersistentCollection {#5111 …}
      -id: 211157
      -bodyTs: "'39':5 'case':31 'curious':42 'fedora':4,21 'file':16 'go':11 'kde':6 'like':24 'littl':41 'look':23 'm':2,10,39 'metadata':17 'point':37 'react':47 'reinstal':34 'replic':28 'run':3 'see':13 'system':22,45 'think':8 'tri':26 'worst':30"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/6488813"
      +editedAt: DateTimeImmutable @1703487944 {#5104
        date: 2023-12-25 08:05:44.0 +01:00
      }
      +createdAt: DateTimeImmutable @1702058633 {#5100
        date: 2023-12-08 19:03:53.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4724}
    +body: "That’s entirely valid. Good luck."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702062040 {#5123
      date: 2023-12-08 20:00:40.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@HiddenLayer5@lemmy.ml"
      "@drwho@beehaw.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#5120 …}
    +nested: Doctrine\ORM\PersistentCollection {#5117 …}
    +votes: Doctrine\ORM\PersistentCollection {#5115 …}
    +reports: Doctrine\ORM\PersistentCollection {#5129 …}
    +favourites: Doctrine\ORM\PersistentCollection {#5131 …}
    +notifications: Doctrine\ORM\PersistentCollection {#5133 …}
    -id: 211308
    -bodyTs: "'entir':3 'good':5 'luck':6 'valid':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://beehaw.org/comment/1836525"
    +editedAt: null
    +createdAt: DateTimeImmutable @1702062040 {#5126
      date: 2023-12-08 20:00:40.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4724}
  +body: "Thank you! Regardless of the outcome I will update the main post with my findings in hopes giving anyone else in the same position some more info."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702062222 {#5145
    date: 2023-12-08 20:03:42.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
    "@drwho@beehaw.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5140 …}
  +nested: Doctrine\ORM\PersistentCollection {#5138 …}
  +votes: Doctrine\ORM\PersistentCollection {#5136 …}
  +reports: Doctrine\ORM\PersistentCollection {#5152 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5154 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5156 …}
  -id: 211323
  -bodyTs: "'anyon':19 'els':20 'find':15 'give':18 'hope':17 'info':27 'main':11 'outcom':6 'posit':24 'post':12 'regardless':3 'thank':1 'updat':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6490081"
  +editedAt: DateTimeImmutable @1703493041 {#5148
    date: 2023-12-25 09:30:41.0 +01:00
  }
  +createdAt: DateTimeImmutable @1702062222 {#5150
    date: 2023-12-08 20:03:42.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
61 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
62 DENIED moderate
App\Entity\EntryComment {#4797
  +user: App\Entity\User {#4810 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Is anything keeping you from just reinstalling the system and mounting your home into it again (maybe the majority of your customisations live in /home too)? I feel that is a lot less of a hassle than copying files around.\n
    \n
    In principle you should be able to restore your system by just copying all of the relevant files from the backup to their correct partitions - it can’t really get any worse if it doesn’t work.\n
    \n
    For the future: A backup is only any good if you know how to restore it and tested that that actually works.\n
    \n
    Regarding the permissions: If you do a `cp fileA.txt fileB.txt` `fileB.txt` will normally be owned by the creating user. So a `sudo cp …` will create the files as root.\n
    \n
    I would personally use `rsync` with a few additional options, archive among them. This way the fs is restored exactly as it was. But that doesn’t make a whole lot of sense if the files weren’t copied that way too.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 18
  +score: 0
  +lastActive: DateTime @1702048636 {#4792
    date: 2023-12-08 16:17:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4798 …}
  +nested: Doctrine\ORM\PersistentCollection {#4800 …}
  +votes: Doctrine\ORM\PersistentCollection {#4802 …}
  +reports: Doctrine\ORM\PersistentCollection {#4804 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4806 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4808 …}
  -id: 211080
  -bodyTs: "'/home':25 'abl':46 'actual':98 'addit':137 'among':140 'anyth':2 'archiv':139 'around':40 'backup':61,82 'copi':38,53,167 'correct':64 'cp':107,122 'creat':117,124 'customis':22 'doesn':75,154 'exact':148 'feel':28 'file':39,58,126,164 'filea.txt':108 'fileb.txt':109,110 'fs':145 'futur':80 'get':70 'good':86 'hassl':36 'home':13 'keep':3 'know':89 'less':33 'live':23 'lot':32,159 'major':19 'make':156 'mayb':17 'mount':11 'normal':112 'option':138 'own':114 'partit':65 'permiss':102 'person':131 'principl':42 'realli':69 'regard':100 'reinstal':7 'relev':57 'restor':48,92,147 'root':128 'rsync':133 'sens':161 'sudo':121 'system':9,50 'test':95 'use':132 'user':118 'way':143,169 'weren':165 'whole':158 'work':77,99 'wors':72 'would':130"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5508226"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702048636 {#4793
    date: 2023-12-08 16:17:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
63 DENIED edit
App\Entity\EntryComment {#4797
  +user: App\Entity\User {#4810 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Is anything keeping you from just reinstalling the system and mounting your home into it again (maybe the majority of your customisations live in /home too)? I feel that is a lot less of a hassle than copying files around.\n
    \n
    In principle you should be able to restore your system by just copying all of the relevant files from the backup to their correct partitions - it can’t really get any worse if it doesn’t work.\n
    \n
    For the future: A backup is only any good if you know how to restore it and tested that that actually works.\n
    \n
    Regarding the permissions: If you do a `cp fileA.txt fileB.txt` `fileB.txt` will normally be owned by the creating user. So a `sudo cp …` will create the files as root.\n
    \n
    I would personally use `rsync` with a few additional options, archive among them. This way the fs is restored exactly as it was. But that doesn’t make a whole lot of sense if the files weren’t copied that way too.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 18
  +score: 0
  +lastActive: DateTime @1702048636 {#4792
    date: 2023-12-08 16:17:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4798 …}
  +nested: Doctrine\ORM\PersistentCollection {#4800 …}
  +votes: Doctrine\ORM\PersistentCollection {#4802 …}
  +reports: Doctrine\ORM\PersistentCollection {#4804 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4806 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4808 …}
  -id: 211080
  -bodyTs: "'/home':25 'abl':46 'actual':98 'addit':137 'among':140 'anyth':2 'archiv':139 'around':40 'backup':61,82 'copi':38,53,167 'correct':64 'cp':107,122 'creat':117,124 'customis':22 'doesn':75,154 'exact':148 'feel':28 'file':39,58,126,164 'filea.txt':108 'fileb.txt':109,110 'fs':145 'futur':80 'get':70 'good':86 'hassl':36 'home':13 'keep':3 'know':89 'less':33 'live':23 'lot':32,159 'major':19 'make':156 'mayb':17 'mount':11 'normal':112 'option':138 'own':114 'partit':65 'permiss':102 'person':131 'principl':42 'realli':69 'regard':100 'reinstal':7 'relev':57 'restor':48,92,147 'root':128 'rsync':133 'sens':161 'sudo':121 'system':9,50 'test':95 'use':132 'user':118 'way':143,169 'weren':165 'whole':158 'work':77,99 'wors':72 'would':130"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5508226"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702048636 {#4793
    date: 2023-12-08 16:17:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
64 DENIED moderate
App\Entity\EntryComment {#4797
  +user: App\Entity\User {#4810 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Is anything keeping you from just reinstalling the system and mounting your home into it again (maybe the majority of your customisations live in /home too)? I feel that is a lot less of a hassle than copying files around.\n
    \n
    In principle you should be able to restore your system by just copying all of the relevant files from the backup to their correct partitions - it can’t really get any worse if it doesn’t work.\n
    \n
    For the future: A backup is only any good if you know how to restore it and tested that that actually works.\n
    \n
    Regarding the permissions: If you do a `cp fileA.txt fileB.txt` `fileB.txt` will normally be owned by the creating user. So a `sudo cp …` will create the files as root.\n
    \n
    I would personally use `rsync` with a few additional options, archive among them. This way the fs is restored exactly as it was. But that doesn’t make a whole lot of sense if the files weren’t copied that way too.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 18
  +score: 0
  +lastActive: DateTime @1702048636 {#4792
    date: 2023-12-08 16:17:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4798 …}
  +nested: Doctrine\ORM\PersistentCollection {#4800 …}
  +votes: Doctrine\ORM\PersistentCollection {#4802 …}
  +reports: Doctrine\ORM\PersistentCollection {#4804 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4806 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4808 …}
  -id: 211080
  -bodyTs: "'/home':25 'abl':46 'actual':98 'addit':137 'among':140 'anyth':2 'archiv':139 'around':40 'backup':61,82 'copi':38,53,167 'correct':64 'cp':107,122 'creat':117,124 'customis':22 'doesn':75,154 'exact':148 'feel':28 'file':39,58,126,164 'filea.txt':108 'fileb.txt':109,110 'fs':145 'futur':80 'get':70 'good':86 'hassl':36 'home':13 'keep':3 'know':89 'less':33 'live':23 'lot':32,159 'major':19 'make':156 'mayb':17 'mount':11 'normal':112 'option':138 'own':114 'partit':65 'permiss':102 'person':131 'principl':42 'realli':69 'regard':100 'reinstal':7 'relev':57 'restor':48,92,147 'root':128 'rsync':133 'sens':161 'sudo':121 'system':9,50 'test':95 'use':132 'user':118 'way':143,169 'weren':165 'whole':158 'work':77,99 'wors':72 'would':130"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/5508226"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702048636 {#4793
    date: 2023-12-08 16:17:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
65 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
66 DENIED moderate
App\Entity\EntryComment {#4870
  +user: App\Entity\User {#4883 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "That can be done, but as others mentioned, if you don’t have permissions/other attributes for the files it’s going to be a real PITA to get everything working. If I had to do that I’d just copy over the files, chown everything to root and then use package manager to reinstall everything, but even that will most likely need manual fixes and figuring out what to change and to what value will take quite a bit of time and complexity of it depends heavily on what you had running on the host, specially things under /var."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702041093 {#4865
    date: 2023-12-08 14:11:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4871 …}
  +nested: Doctrine\ORM\PersistentCollection {#4873 …}
  +votes: Doctrine\ORM\PersistentCollection {#4875 …}
  +reports: Doctrine\ORM\PersistentCollection {#4877 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4879 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4881 …}
  -id: 211029
  -bodyTs: "'/var':99 'attribut':15 'bit':79 'chang':70 'chown':44 'complex':83 'copi':40 'd':38 'depend':86 'done':4 'even':57 'everyth':29,45,55 'figur':66 'file':18,43 'fix':64 'get':28 'go':21 'heavili':87 'host':95 'like':61 'manag':52 'manual':63 'mention':8 'need':62 'other':7 'packag':51 'permissions/other':14 'pita':26 'quit':77 'real':25 'reinstal':54 'root':47 'run':92 'special':96 'take':76 'thing':97 'time':81 'use':50 'valu':74 'work':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sopuli.xyz/comment/5252339"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702041093 {#4866
    date: 2023-12-08 14:11:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
67 DENIED edit
App\Entity\EntryComment {#4870
  +user: App\Entity\User {#4883 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "That can be done, but as others mentioned, if you don’t have permissions/other attributes for the files it’s going to be a real PITA to get everything working. If I had to do that I’d just copy over the files, chown everything to root and then use package manager to reinstall everything, but even that will most likely need manual fixes and figuring out what to change and to what value will take quite a bit of time and complexity of it depends heavily on what you had running on the host, specially things under /var."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702041093 {#4865
    date: 2023-12-08 14:11:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4871 …}
  +nested: Doctrine\ORM\PersistentCollection {#4873 …}
  +votes: Doctrine\ORM\PersistentCollection {#4875 …}
  +reports: Doctrine\ORM\PersistentCollection {#4877 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4879 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4881 …}
  -id: 211029
  -bodyTs: "'/var':99 'attribut':15 'bit':79 'chang':70 'chown':44 'complex':83 'copi':40 'd':38 'depend':86 'done':4 'even':57 'everyth':29,45,55 'figur':66 'file':18,43 'fix':64 'get':28 'go':21 'heavili':87 'host':95 'like':61 'manag':52 'manual':63 'mention':8 'need':62 'other':7 'packag':51 'permissions/other':14 'pita':26 'quit':77 'real':25 'reinstal':54 'root':47 'run':92 'special':96 'take':76 'thing':97 'time':81 'use':50 'valu':74 'work':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sopuli.xyz/comment/5252339"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702041093 {#4866
    date: 2023-12-08 14:11:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
68 DENIED moderate
App\Entity\EntryComment {#4870
  +user: App\Entity\User {#4883 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "That can be done, but as others mentioned, if you don’t have permissions/other attributes for the files it’s going to be a real PITA to get everything working. If I had to do that I’d just copy over the files, chown everything to root and then use package manager to reinstall everything, but even that will most likely need manual fixes and figuring out what to change and to what value will take quite a bit of time and complexity of it depends heavily on what you had running on the host, specially things under /var."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702041093 {#4865
    date: 2023-12-08 14:11:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4871 …}
  +nested: Doctrine\ORM\PersistentCollection {#4873 …}
  +votes: Doctrine\ORM\PersistentCollection {#4875 …}
  +reports: Doctrine\ORM\PersistentCollection {#4877 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4879 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4881 …}
  -id: 211029
  -bodyTs: "'/var':99 'attribut':15 'bit':79 'chang':70 'chown':44 'complex':83 'copi':40 'd':38 'depend':86 'done':4 'even':57 'everyth':29,45,55 'figur':66 'file':18,43 'fix':64 'get':28 'go':21 'heavili':87 'host':95 'like':61 'manag':52 'manual':63 'mention':8 'need':62 'other':7 'packag':51 'permissions/other':14 'pita':26 'quit':77 'real':25 'reinstal':54 'root':47 'run':92 'special':96 'take':76 'thing':97 'time':81 'use':50 'valu':74 'work':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sopuli.xyz/comment/5252339"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702041093 {#4866
    date: 2023-12-08 14:11:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
69 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
70 DENIED moderate
App\Entity\EntryComment {#4943
  +user: App\Entity\User {#4956 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    No way, reinstall.\n
    \n
    If even file owner is not preserved (it is not always root, espetially in /var), you likely lost files’ extanded attributes an, maybe, also permissions. Without them your system won’t work normally.\n
    \n
    Then, contents of these directories must be consistent with other ones. E. g. /var contains a package manager data about packages you installed. If you installed/removed anything after creating a backup, information about this will be lost.\n
    \n
    If you created the backup while system was working, some files (espetially under /var, again) could be changed during that process, and this also makes such backup unusable. Every sysadmin knows that to create a database backup by copying files, dbms must be stopped.\n
    \n
    In future, think about restoration before planning a backup and test if this possible immediately after it is done.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702038168 {#4938
    date: 2023-12-08 13:22:48.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4944 …}
  +nested: Doctrine\ORM\PersistentCollection {#4946 …}
  +votes: Doctrine\ORM\PersistentCollection {#4948 …}
  +reports: Doctrine\ORM\PersistentCollection {#4950 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4952 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4954 …}
  -id: 211017
  -bodyTs: "'/var':18,50,87 'also':27,97 'alway':14 'anyth':63 'attribut':24 'backup':67,78,100,110,126 'chang':91 'consist':44 'contain':51 'content':38 'copi':112 'could':89 'creat':65,76,107 'data':55 'databas':109 'dbms':114 'directori':41 'done':136 'e':48 'espeti':16,85 'even':5 'everi':102 'extand':23 'file':6,22,84,113 'futur':119 'g':49 'immedi':132 'inform':68 'instal':59 'installed/removed':62 'know':104 'like':20 'lost':21,73 'make':98 'manag':54 'mayb':26 'must':42,115 'normal':36 'one':47 'owner':7 'packag':53,57 'permiss':28 'plan':124 'possibl':131 'preserv':10 'process':94 'reinstal':3 'restor':122 'root':15 'stop':117 'sysadmin':103 'system':32,80 'test':128 'think':120 'unus':101 'way':2 'without':29 'won':33 'work':35,82"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6481816"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702038168 {#4939
    date: 2023-12-08 13:22:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
71 DENIED edit
App\Entity\EntryComment {#4943
  +user: App\Entity\User {#4956 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    No way, reinstall.\n
    \n
    If even file owner is not preserved (it is not always root, espetially in /var), you likely lost files’ extanded attributes an, maybe, also permissions. Without them your system won’t work normally.\n
    \n
    Then, contents of these directories must be consistent with other ones. E. g. /var contains a package manager data about packages you installed. If you installed/removed anything after creating a backup, information about this will be lost.\n
    \n
    If you created the backup while system was working, some files (espetially under /var, again) could be changed during that process, and this also makes such backup unusable. Every sysadmin knows that to create a database backup by copying files, dbms must be stopped.\n
    \n
    In future, think about restoration before planning a backup and test if this possible immediately after it is done.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702038168 {#4938
    date: 2023-12-08 13:22:48.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4944 …}
  +nested: Doctrine\ORM\PersistentCollection {#4946 …}
  +votes: Doctrine\ORM\PersistentCollection {#4948 …}
  +reports: Doctrine\ORM\PersistentCollection {#4950 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4952 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4954 …}
  -id: 211017
  -bodyTs: "'/var':18,50,87 'also':27,97 'alway':14 'anyth':63 'attribut':24 'backup':67,78,100,110,126 'chang':91 'consist':44 'contain':51 'content':38 'copi':112 'could':89 'creat':65,76,107 'data':55 'databas':109 'dbms':114 'directori':41 'done':136 'e':48 'espeti':16,85 'even':5 'everi':102 'extand':23 'file':6,22,84,113 'futur':119 'g':49 'immedi':132 'inform':68 'instal':59 'installed/removed':62 'know':104 'like':20 'lost':21,73 'make':98 'manag':54 'mayb':26 'must':42,115 'normal':36 'one':47 'owner':7 'packag':53,57 'permiss':28 'plan':124 'possibl':131 'preserv':10 'process':94 'reinstal':3 'restor':122 'root':15 'stop':117 'sysadmin':103 'system':32,80 'test':128 'think':120 'unus':101 'way':2 'without':29 'won':33 'work':35,82"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6481816"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702038168 {#4939
    date: 2023-12-08 13:22:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
72 DENIED moderate
App\Entity\EntryComment {#4943
  +user: App\Entity\User {#4956 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    No way, reinstall.\n
    \n
    If even file owner is not preserved (it is not always root, espetially in /var), you likely lost files’ extanded attributes an, maybe, also permissions. Without them your system won’t work normally.\n
    \n
    Then, contents of these directories must be consistent with other ones. E. g. /var contains a package manager data about packages you installed. If you installed/removed anything after creating a backup, information about this will be lost.\n
    \n
    If you created the backup while system was working, some files (espetially under /var, again) could be changed during that process, and this also makes such backup unusable. Every sysadmin knows that to create a database backup by copying files, dbms must be stopped.\n
    \n
    In future, think about restoration before planning a backup and test if this possible immediately after it is done.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702038168 {#4938
    date: 2023-12-08 13:22:48.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4944 …}
  +nested: Doctrine\ORM\PersistentCollection {#4946 …}
  +votes: Doctrine\ORM\PersistentCollection {#4948 …}
  +reports: Doctrine\ORM\PersistentCollection {#4950 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4952 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4954 …}
  -id: 211017
  -bodyTs: "'/var':18,50,87 'also':27,97 'alway':14 'anyth':63 'attribut':24 'backup':67,78,100,110,126 'chang':91 'consist':44 'contain':51 'content':38 'copi':112 'could':89 'creat':65,76,107 'data':55 'databas':109 'dbms':114 'directori':41 'done':136 'e':48 'espeti':16,85 'even':5 'everi':102 'extand':23 'file':6,22,84,113 'futur':119 'g':49 'immedi':132 'inform':68 'instal':59 'installed/removed':62 'know':104 'like':20 'lost':21,73 'make':98 'manag':54 'mayb':26 'must':42,115 'normal':36 'one':47 'owner':7 'packag':53,57 'permiss':28 'plan':124 'possibl':131 'preserv':10 'process':94 'reinstal':3 'restor':122 'root':15 'stop':117 'sysadmin':103 'system':32,80 'test':128 'think':120 'unus':101 'way':2 'without':29 'won':33 'work':35,82"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6481816"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702038168 {#4939
    date: 2023-12-08 13:22:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
73 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
74 DENIED moderate
App\Entity\EntryComment {#5016
  +user: App\Entity\User {#5029 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "you dont say the o/s but if the pkg manager works, or you can add a statically compiled version, you could force reinstall all pkgs"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1702037631 {#5011
    date: 2023-12-08 13:13:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5017 …}
  +nested: Doctrine\ORM\PersistentCollection {#5019 …}
  +votes: Doctrine\ORM\PersistentCollection {#5021 …}
  +reports: Doctrine\ORM\PersistentCollection {#5023 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5025 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5027 …}
  -id: 211015
  -bodyTs: "'add':15 'compil':18 'could':21 'dont':2 'forc':22 'manag':10 'o/s':5 'pkg':9 'pkgs':25 'reinstal':23 'say':3 'static':17 'version':19 'work':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/7122837"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702037631 {#5012
    date: 2023-12-08 13:13:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
75 DENIED edit
App\Entity\EntryComment {#5016
  +user: App\Entity\User {#5029 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "you dont say the o/s but if the pkg manager works, or you can add a statically compiled version, you could force reinstall all pkgs"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1702037631 {#5011
    date: 2023-12-08 13:13:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5017 …}
  +nested: Doctrine\ORM\PersistentCollection {#5019 …}
  +votes: Doctrine\ORM\PersistentCollection {#5021 …}
  +reports: Doctrine\ORM\PersistentCollection {#5023 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5025 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5027 …}
  -id: 211015
  -bodyTs: "'add':15 'compil':18 'could':21 'dont':2 'forc':22 'manag':10 'o/s':5 'pkg':9 'pkgs':25 'reinstal':23 'say':3 'static':17 'version':19 'work':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/7122837"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702037631 {#5012
    date: 2023-12-08 13:13:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
76 DENIED moderate
App\Entity\EntryComment {#5016
  +user: App\Entity\User {#5029 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Can-one-recover-from-an-accidental-rm-rf-of-system"
    +title: "Can one recover from an accidental rm -rf of system directories by copying those files back in from a backup?"
    +url: null
    +body: """
      Well I’ve joined the “accidentally trashing your system with rm -rf” club! Luckily I didn’t delete my home directory with all the things I care about, but I did delete /boot and /usr, and maybe /var (long story, boils down to me trying to delete non-system directories named those but reflexively adding the slash in front when I should not have). I have backups of those as well, so what are my prospects of recovering from this by just copying them back in using a live USB? Only issue is they’re stored in my server as belonging to the server user (I assume everything in those directories should belong to root and I can just use chown?) But I also don’t know if they retain the same permissions when backed up.\n
      \n
      Has anyone had any luck recovering a system in this way? I’m hoping not to have to reinstall everything because I had gotten pretty cozy with the current installation.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 38
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1702197100 {#2410
      date: 2023-12-10 09:31:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 21174
    -titleTs: "'accident':6 'back':16 'backup':20 'copi':13 'directori':11 'file':15 'one':2 'recov':3 'rf':8 'rm':7 'system':10"
    -bodyTs: "'/boot':33 '/usr':35 '/var':38 'accident':6 'ad':56 'also':125 'anyon':139 'assum':108 'back':86,136 'backup':68 'belong':102,114 'boil':41 'care':27 'chown':122 'club':13 'copi':84 'cozi':163 'current':166 'delet':18,32,47 'didn':16 'directori':21,51,112 'everyth':109,157 'front':60 'gotten':161 'home':20 'hope':151 'instal':167 'issu':93 'join':4 'know':128 'live':90 'long':39 'luck':142 'luckili':14 'm':150 'mayb':37 'name':52 'non':49 'non-system':48 'permiss':134 'pretti':162 'prospect':77 're':96 'recov':79,143 'reflex':55 'reinstal':156 'retain':131 'rf':12 'rm':11 'root':116 'server':100,105 'slash':58 'store':97 'stori':40 'system':9,50,145 'thing':25 'trash':7 'tri':45 'usb':91 'use':88,121 'user':106 've':3 'way':148 'well':1,72"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1702115144
    +visibility: "visible             "
    +apId: "https://lemmy.ml/post/9032262"
    +editedAt: DateTimeImmutable @1703484244 {#1850
      date: 2023-12-25 07:04:04.0 +01:00
    }
    +createdAt: DateTimeImmutable @1702028744 {#2420
      date: 2023-12-08 10:45:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "you dont say the o/s but if the pkg manager works, or you can add a statically compiled version, you could force reinstall all pkgs"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1702037631 {#5011
    date: 2023-12-08 13:13:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@HiddenLayer5@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#5017 …}
  +nested: Doctrine\ORM\PersistentCollection {#5019 …}
  +votes: Doctrine\ORM\PersistentCollection {#5021 …}
  +reports: Doctrine\ORM\PersistentCollection {#5023 …}
  +favourites: Doctrine\ORM\PersistentCollection {#5025 …}
  +notifications: Doctrine\ORM\PersistentCollection {#5027 …}
  -id: 211015
  -bodyTs: "'add':15 'compil':18 'could':21 'dont':2 'forc':22 'manag':10 'o/s':5 'pkg':9 'pkgs':25 'reinstal':23 'say':3 'static':17 'version':19 'work':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/7122837"
  +editedAt: null
  +createdAt: DateTimeImmutable @1702037631 {#5012
    date: 2023-12-08 13:13:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
77 DENIED edit
App\Entity\Magazine {#266
  +icon: Proxies\__CG__\App\Entity\Image {#247 …}
  +name: "linux@lemmy.ml"
  +title: "linux"
  +description: """
    From Wikipedia, the free encyclopedia\n
    \n
    Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
    \n
    Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
    \n
    ### Rules\n
    \n
    - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
    - No misinformation\n
    - No NSFW content\n
    - No hate speech, bigotry, etc\n
    \n
    ### Related Communities\n
    \n
    - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
    - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
    - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
    - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
    \n
    Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 1406
  +entryCommentCount: 28632
  +postCount: 6
  +postCommentCount: 214
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1729583542 {#276
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#238 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
  +entries: Doctrine\ORM\PersistentCollection {#181 …}
  +posts: Doctrine\ORM\PersistentCollection {#139 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
  +bans: Doctrine\ORM\PersistentCollection {#118 …}
  +reports: Doctrine\ORM\PersistentCollection {#104 …}
  +badges: Doctrine\ORM\PersistentCollection {#82 …}
  +logs: Doctrine\ORM\PersistentCollection {#72 …}
  +awards: Doctrine\ORM\PersistentCollection {#61 …}
  +categories: Doctrine\ORM\PersistentCollection {#1820 …}
  -id: 73
  +apId: "linux@lemmy.ml"
  +apProfileId: "https://lemmy.ml/c/linux"
  +apPublicUrl: "https://lemmy.ml/c/linux"
  +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
  +apInboxUrl: "https://lemmy.ml/inbox"
  +apDomain: "lemmy.ml"
  +apPreferredUsername: "linux"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1729583596 {#270
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#272
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details