Redirect 302 redirect from GET @entry_comment_create (f79dd9)

GET https://kbin.spritesserver.nl/u/@nirogu@vivaldi.net/top

Components

22 Twig Components
113 Render Count
352 ms Render Time
12.0 MiB Memory Usage

Components

Name Metadata Render Count Render Time
settings_row_switch
"App\Twig\Components\SettingsRowSwitchComponent"
components/_settings_row_switch.html.twig
15 7.77ms
user_avatar
"App\Twig\Components\UserAvatarComponent"
components/user_avatar.html.twig
11 2.48ms
date
"App\Twig\Components\DateComponent"
components/date.html.twig
11 1.90ms
user_inline
"App\Twig\Components\UserInlineComponent"
components/user_inline.html.twig
10 1.53ms
date_edited
"App\Twig\Components\DateEditedComponent"
components/date_edited.html.twig
10 1.05ms
vote
"App\Twig\Components\VoteComponent"
components/vote.html.twig
10 3.60ms
boost
"App\Twig\Components\BoostComponent"
components/boost.html.twig
10 15.13ms
voters_inline
"App\Twig\Components\VotersInlineComponent"
components/_cached.html.twig
10 96.29ms
post_comment
"App\Twig\Components\PostCommentComponent"
components/post_comment.html.twig
9 226.20ms
user_settings_row_switch
"App\Twig\Components\UserSettingsRowSwitchComponent"
components/_user_settings_row_switch.html.twig
4 0.88ms
settings_row_enum
"App\Twig\Components\SettingsRowEnumComponent"
components/_settings_row_enum.html.twig
2 0.38ms
user_box
"App\Twig\Components\UserBoxComponent"
components/user_box.html.twig
1 31.29ms
user_actions
"App\Twig\Components\UserActionsComponent"
components/user_actions.html.twig
1 0.55ms
post
"App\Twig\Components\PostComponent"
components/_cached.html.twig
1 62.84ms
magazine_inline
"App\Twig\Components\MagazineInlineComponent"
components/magazine_inline.html.twig
1 0.22ms
related_magazines
"App\Twig\Components\RelatedMagazinesComponent"
components/_cached.html.twig
1 9.65ms
active_users
"App\Twig\Components\ActiveUsersComponent"
components/_cached.html.twig
1 3.97ms
related_categories
"App\Twig\Components\RelatedCategoriesComponent"
components/_cached.html.twig
1 3.23ms
related_posts
"App\Twig\Components\RelatedPostsComponent"
components/_cached.html.twig
1 1.70ms
related_entries
"App\Twig\Components\RelatedEntriesComponent"
components/_cached.html.twig
1 1.55ms
support_us_block
"App\Twig\Components\SupportUsBlock"
components/_cached.html.twig
1 0.22ms
featured_magazines
"App\Twig\Components\FeaturedMagazinesComponent"
components/_cached.html.twig
1 2.76ms

Render calls

user_box App\Twig\Components\UserBoxComponent 12.0 MiB 31.29 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "stretchedLink" => false
]
Attributes
[]
Component
App\Twig\Components\UserBoxComponent {#2169
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +stretchedLink: false
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.51 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 100
  "height" => 100
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#2619
  +width: 100
  +height: 100
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: false
}
user_actions App\Twig\Components\UserActionsComponent 12.0 MiB 0.55 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\UserActionsComponent {#2689
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
}
post App\Twig\Components\PostComponent 12.0 MiB 62.84 ms
Input props
[
  "post" => App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostComponent {#3237
  +post: App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  +isSingle: false
  +showMagazineName: true
  +dateAsUrl: true
  +showCommentsPreview: false
  +showExpand: true
  +canSeeTrash: false
  +newComments: 0
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#3238 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.20 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#3300
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.43 ms
Input props
[
  "date" => DateTimeImmutable @1698950671 {#1744
    date: 2023-11-02 19:44:31.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#3434
  +date: DateTimeImmutable @1698950671 {#1744
    date: 2023-11-02 19:44:31.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.15 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698950671 {#1744
    date: 2023-11-02 19:44:31.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3498
  +createdAt: DateTimeImmutable @1698950671 {#1744
    date: 2023-11-02 19:44:31.0 +01:00
  }
  +editedAt: null
}
magazine_inline App\Twig\Components\MagazineInlineComponent 12.0 MiB 0.22 ms
Input props
[
  "magazine" => Proxies\__CG__\App\Entity\Magazine {#1572
    +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
    +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 {#3355
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
    +entries: Doctrine\ORM\PersistentCollection {#3365 …}
    +posts: Doctrine\ORM\PersistentCollection {#3367 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
    +bans: Doctrine\ORM\PersistentCollection {#3375 …}
    +reports: Doctrine\ORM\PersistentCollection {#3383 …}
    +badges: Doctrine\ORM\PersistentCollection {#3396 …}
    +logs: Doctrine\ORM\PersistentCollection {#3406 …}
    +awards: Doctrine\ORM\PersistentCollection {#3388 …}
    +categories: Doctrine\ORM\PersistentCollection {#3412 …}
    -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 {#3356
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#3357
      date: 2023-11-02 13:51:08.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\MagazineInlineComponent {#3563
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
    +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
    +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 {#3355
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
    +entries: Doctrine\ORM\PersistentCollection {#3365 …}
    +posts: Doctrine\ORM\PersistentCollection {#3367 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
    +bans: Doctrine\ORM\PersistentCollection {#3375 …}
    +reports: Doctrine\ORM\PersistentCollection {#3383 …}
    +badges: Doctrine\ORM\PersistentCollection {#3396 …}
    +logs: Doctrine\ORM\PersistentCollection {#3406 …}
    +awards: Doctrine\ORM\PersistentCollection {#3388 …}
    +categories: Doctrine\ORM\PersistentCollection {#3412 …}
    -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 {#3356
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#3357
      date: 2023-11-02 13:51:08.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +showTitle: true
  +fullName: false
  +stretchedLink: false
  +showAvatar: false
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.22 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#3624
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.41 ms
Input props
[
  "subject" => App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#3718
  +subject: App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  +formDest: "post"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 2.38 ms
Input props
[
  "subject" => App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#3788
  +formDest: "post"
  +subject: App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 10.27 ms
Input props
[
  "subject" => App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/votes?type=up"
  "data-post-target" => "voters"
]
Attributes
[
  "data-post-target" => "voters"
]
Component
App\Twig\Components\VotersInlineComponent {#4090
  +subject: App\Entity\Post {#1606
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
      +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
      +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 {#3355
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
      +entries: Doctrine\ORM\PersistentCollection {#3365 …}
      +posts: Doctrine\ORM\PersistentCollection {#3367 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
      +bans: Doctrine\ORM\PersistentCollection {#3375 …}
      +reports: Doctrine\ORM\PersistentCollection {#3383 …}
      +badges: Doctrine\ORM\PersistentCollection {#3396 …}
      +logs: Doctrine\ORM\PersistentCollection {#3406 …}
      +awards: Doctrine\ORM\PersistentCollection {#3388 …}
      +categories: Doctrine\ORM\PersistentCollection {#3412 …}
      -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 {#3356
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#3357
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
    +body: """
      Run command as not-root\n
      \n
      Hi everyone\n
      \n
      At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
      \n
      Does anyone know how to do it? Thanks in advance!\n
      \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +commentCount: 30
    +favouriteCount: 36
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1699069034 {#1647
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#1588 …}
    +votes: Doctrine\ORM\PersistentCollection {#1584 …}
    +reports: Doctrine\ORM\PersistentCollection {#1580 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    +children: [
      7 => App\Entity\PostComment {#1720
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
        +root: App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        +image: null
        +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698954358 {#1617
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2370 …}
        +nested: Doctrine\ORM\PersistentCollection {#2471 …}
        +votes: Doctrine\ORM\PersistentCollection {#2469 …}
        +reports: Doctrine\ORM\PersistentCollection {#2468 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
        -id: 612
        -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954358 {#1718
          date: 2023-11-02 20:45:58.0 +01:00
        }
        +"title": 612
      }
      8 => App\Entity\PostComment {#1525}
      5 => App\Entity\PostComment {#1716
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698953702 {#1739
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Rustmilian@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2360 …}
        +nested: Doctrine\ORM\PersistentCollection {#2361 …}
        +votes: Doctrine\ORM\PersistentCollection {#2372 …}
        +reports: Doctrine\ORM\PersistentCollection {#2386 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
        -id: 618
        -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698953702 {#1717
          date: 2023-11-02 20:35:02.0 +01:00
        }
        +"title": 618
      }
      6 => App\Entity\PostComment {#2456
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
        +image: null
        +body: """
          @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
          If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1698954643 {#2453
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astraeus@programming.dev"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2458 …}
        +nested: Doctrine\ORM\PersistentCollection {#2422 …}
        +votes: Doctrine\ORM\PersistentCollection {#2411 …}
        +reports: Doctrine\ORM\PersistentCollection {#2463 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
        -id: 616
        -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698954643 {#2460
          date: 2023-11-02 20:50:43.0 +01:00
        }
        +"title": 616
      }
      4 => App\Entity\PostComment {#2394
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
        +lang: "en"
        +favouriteCount: 5
        +score: 0
        +lastActive: DateTime @1698951415 {#2387
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2393 …}
        +nested: Doctrine\ORM\PersistentCollection {#1381 …}
        +votes: Doctrine\ORM\PersistentCollection {#1402 …}
        +reports: Doctrine\ORM\PersistentCollection {#1385 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
        -id: 623
        -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698951415 {#2392
          date: 2023-11-02 19:56:55.0 +01:00
        }
        +"title": 623
      }
      3 => App\Entity\PostComment {#1910
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
        +root: App\Entity\PostComment {#1525}
        +image: null
        +body: """
          @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
          Thanks for the help!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698958797 {#2381
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@Oisteink@feddit.nl"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1909 …}
        +nested: Doctrine\ORM\PersistentCollection {#1926 …}
        +votes: Doctrine\ORM\PersistentCollection {#1874 …}
        +reports: Doctrine\ORM\PersistentCollection {#1908 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
        -id: 620
        -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698958797 {#2383
          date: 2023-11-02 21:59:57.0 +01:00
        }
        +"title": 620
      }
      2 => App\Entity\PostComment {#2013
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#2012
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2035 …}
        +nested: Doctrine\ORM\PersistentCollection {#2036 …}
        +votes: Doctrine\ORM\PersistentCollection {#2144 …}
        +reports: Doctrine\ORM\PersistentCollection {#2061 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#2020
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
      1 => App\Entity\PostComment {#2019
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1362
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2030 …}
        +nested: Doctrine\ORM\PersistentCollection {#2026 …}
        +votes: Doctrine\ORM\PersistentCollection {#2022 …}
        +reports: Doctrine\ORM\PersistentCollection {#2025 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1403
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#2085
        +user: App\Entity\User {#264}
        +post: App\Entity\Post {#1606}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#2083
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#2062 …}
        +nested: Doctrine\ORM\PersistentCollection {#2077 …}
        +votes: Doctrine\ORM\PersistentCollection {#2063 …}
        +reports: Doctrine\ORM\PersistentCollection {#2064 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#2082
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
    ]
    -id: 286
    -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699037071
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698950671 {#1744
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +"title": 286
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/votes?type=up"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 26.04 ms
Input props
[
  "comment" => App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#4179
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.13 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#4232
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698954358 {#1718
    date: 2023-11-02 20:45:58.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#4288
  +date: DateTimeImmutable @1698954358 {#1718
    date: 2023-11-02 20:45:58.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698954358 {#1718
    date: 2023-11-02 20:45:58.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#4342
  +createdAt: DateTimeImmutable @1698954358 {#1718
    date: 2023-11-02 20:45:58.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.17 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#4396
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.39 ms
Input props
[
  "subject" => App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#4476
  +subject: App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 3.04 ms
Input props
[
  "subject" => App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#4533
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 14.77 ms
Input props
[
  "subject" => App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/612/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#4777
  +subject: App\Entity\PostComment {#1720
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720}
        8 => App\Entity\PostComment {#1525
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: null
          +root: null
          +image: null
          +body: """
            Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
            @linux@lemmy.ml
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698951882 {#1554
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1620 …}
          +nested: Doctrine\ORM\PersistentCollection {#1604 …}
          +votes: Doctrine\ORM\PersistentCollection {#1619 …}
          +reports: Doctrine\ORM\PersistentCollection {#1701 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
          -id: 608
          -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951882 {#1566
            date: 2023-11-02 20:04:42.0 +01:00
          }
          +"title": 608
        }
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698954358 {#1617
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2370 …}
    +nested: Doctrine\ORM\PersistentCollection {#2471 …}
    +votes: Doctrine\ORM\PersistentCollection {#2469 …}
    +reports: Doctrine\ORM\PersistentCollection {#2468 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
    -id: 612
    -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954358 {#1718
      date: 2023-11-02 20:45:58.0 +01:00
    }
    +"title": 612
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/612/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 19.84 ms
Input props
[
  "comment" => App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#4854
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.19 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#4899
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.18 ms
Input props
[
  "date" => DateTimeImmutable @1698951882 {#1566
    date: 2023-11-02 20:04:42.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#4955
  +date: DateTimeImmutable @1698951882 {#1566
    date: 2023-11-02 20:04:42.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.10 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698951882 {#1566
    date: 2023-11-02 20:04:42.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#5009
  +createdAt: DateTimeImmutable @1698951882 {#1566
    date: 2023-11-02 20:04:42.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#5063
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.40 ms
Input props
[
  "subject" => App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#5139
  +subject: App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 2.63 ms
Input props
[
  "subject" => App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#5196
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 6.90 ms
Input props
[
  "subject" => App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/608/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#5437
  +subject: App\Entity\PostComment {#1525
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: null
    +root: null
    +image: null
    +body: """
      Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
      @linux@lemmy.ml
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698951882 {#1554
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1620 …}
    +nested: Doctrine\ORM\PersistentCollection {#1604 …}
    +votes: Doctrine\ORM\PersistentCollection {#1619 …}
    +reports: Doctrine\ORM\PersistentCollection {#1701 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
    -id: 608
    -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951882 {#1566
      date: 2023-11-02 20:04:42.0 +01:00
    }
    +"title": 608
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/608/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 13.10 ms
Input props
[
  "comment" => App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#5508
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.15 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#5553
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698953702 {#1717
    date: 2023-11-02 20:35:02.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#5609
  +date: DateTimeImmutable @1698953702 {#1717
    date: 2023-11-02 20:35:02.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698953702 {#1717
    date: 2023-11-02 20:35:02.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#5663
  +createdAt: DateTimeImmutable @1698953702 {#1717
    date: 2023-11-02 20:35:02.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#5717
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.36 ms
Input props
[
  "subject" => App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#5791
  +subject: App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.69 ms
Input props
[
  "subject" => App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#5848
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 1.60 ms
Input props
[
  "subject" => App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/618/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#6089
  +subject: App\Entity\PostComment {#1716
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716}
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698953702 {#1739
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Rustmilian@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2360 …}
    +nested: Doctrine\ORM\PersistentCollection {#2361 …}
    +votes: Doctrine\ORM\PersistentCollection {#2372 …}
    +reports: Doctrine\ORM\PersistentCollection {#2386 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
    -id: 618
    -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698953702 {#1717
      date: 2023-11-02 20:35:02.0 +01:00
    }
    +"title": 618
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/618/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 18.10 ms
Input props
[
  "comment" => App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#6160
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.13 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#6205
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1698954643 {#2460
    date: 2023-11-02 20:50:43.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#6261
  +date: DateTimeImmutable @1698954643 {#2460
    date: 2023-11-02 20:50:43.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698954643 {#2460
    date: 2023-11-02 20:50:43.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#6315
  +createdAt: DateTimeImmutable @1698954643 {#2460
    date: 2023-11-02 20:50:43.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.21 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#6369
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.39 ms
Input props
[
  "subject" => App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#6447
  +subject: App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 2.60 ms
Input props
[
  "subject" => App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#6504
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 1.46 ms
Input props
[
  "subject" => App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/616/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#6745
  +subject: App\Entity\PostComment {#2456
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456}
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
    +image: null
    +body: """
      @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
      If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1698954643 {#2453
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astraeus@programming.dev"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2458 …}
    +nested: Doctrine\ORM\PersistentCollection {#2422 …}
    +votes: Doctrine\ORM\PersistentCollection {#2411 …}
    +reports: Doctrine\ORM\PersistentCollection {#2463 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
    -id: 616
    -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698954643 {#2460
      date: 2023-11-02 20:50:43.0 +01:00
    }
    +"title": 616
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/616/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 35.95 ms
Input props
[
  "comment" => App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#6816
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.13 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#6861
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1698951415 {#2392
    date: 2023-11-02 19:56:55.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#6917
  +date: DateTimeImmutable @1698951415 {#2392
    date: 2023-11-02 19:56:55.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698951415 {#2392
    date: 2023-11-02 19:56:55.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#6971
  +createdAt: DateTimeImmutable @1698951415 {#2392
    date: 2023-11-02 19:56:55.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#7025
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.29 ms
Input props
[
  "subject" => App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#7099
  +subject: App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.67 ms
Input props
[
  "subject" => App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#7156
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 28.06 ms
Input props
[
  "subject" => App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/623/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#5776
  +subject: App\Entity\PostComment {#2394
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394}
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
    +lang: "en"
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1698951415 {#2387
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2393 …}
    +nested: Doctrine\ORM\PersistentCollection {#1381 …}
    +votes: Doctrine\ORM\PersistentCollection {#1402 …}
    +reports: Doctrine\ORM\PersistentCollection {#1385 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
    -id: 623
    -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698951415 {#2392
      date: 2023-11-02 19:56:55.0 +01:00
    }
    +"title": 623
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/623/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 34.25 ms
Input props
[
  "comment" => App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#2855
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.14 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#5184
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698958797 {#2383
    date: 2023-11-02 21:59:57.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#7343
  +date: DateTimeImmutable @1698958797 {#2383
    date: 2023-11-02 21:59:57.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698958797 {#2383
    date: 2023-11-02 21:59:57.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#7397
  +createdAt: DateTimeImmutable @1698958797 {#2383
    date: 2023-11-02 21:59:57.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#7451
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.32 ms
Input props
[
  "subject" => App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#7529
  +subject: App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.67 ms
Input props
[
  "subject" => App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#7586
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 5.47 ms
Input props
[
  "subject" => App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/620/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#7827
  +subject: App\Entity\PostComment {#1910
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910}
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
    +root: App\Entity\PostComment {#1525}
    +image: null
    +body: """
      @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
      Thanks for the help!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698958797 {#2381
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@Oisteink@feddit.nl"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1909 …}
    +nested: Doctrine\ORM\PersistentCollection {#1926 …}
    +votes: Doctrine\ORM\PersistentCollection {#1874 …}
    +reports: Doctrine\ORM\PersistentCollection {#1908 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
    -id: 620
    -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698958797 {#2383
      date: 2023-11-02 21:59:57.0 +01:00
    }
    +"title": 620
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/620/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 40.09 ms
Input props
[
  "comment" => App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#7898
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.14 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#7943
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1699021862 {#2020
    date: 2023-11-03 15:31:02.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#7999
  +date: DateTimeImmutable @1699021862 {#2020
    date: 2023-11-03 15:31:02.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.12 ms
Input props
[
  "createdAt" => DateTimeImmutable @1699021862 {#2020
    date: 2023-11-03 15:31:02.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#8053
  +createdAt: DateTimeImmutable @1699021862 {#2020
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#8107
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.41 ms
Input props
[
  "subject" => App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#8181
  +subject: App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 1.02 ms
Input props
[
  "subject" => App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#8238
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 1.50 ms
Input props
[
  "subject" => App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/633/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#8479
  +subject: App\Entity\PostComment {#2013
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013}
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1699021862 {#2012
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2035 …}
    +nested: Doctrine\ORM\PersistentCollection {#2036 …}
    +votes: Doctrine\ORM\PersistentCollection {#2144 …}
    +reports: Doctrine\ORM\PersistentCollection {#2061 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
    -id: 633
    -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699021862 {#2020
      date: 2023-11-03 15:31:02.0 +01:00
    }
    +"title": 633
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/633/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 26.05 ms
Input props
[
  "comment" => App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#8550
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.16 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#8595
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698980683 {#1403
    date: 2023-11-03 04:04:43.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#8651
  +date: DateTimeImmutable @1698980683 {#1403
    date: 2023-11-03 04:04:43.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.11 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698980683 {#1403
    date: 2023-11-03 04:04:43.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#8705
  +createdAt: DateTimeImmutable @1698980683 {#1403
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.28 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#8759
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.30 ms
Input props
[
  "subject" => App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#8833
  +subject: App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.75 ms
Input props
[
  "subject" => App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#8890
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 19.69 ms
Input props
[
  "subject" => App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/629/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#9131
  +subject: App\Entity\PostComment {#2019
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019}
        0 => App\Entity\PostComment {#2085
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: """
            @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
            My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1699022526 {#2083
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
            "@elscallr@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2062 …}
          +nested: Doctrine\ORM\PersistentCollection {#2077 …}
          +votes: Doctrine\ORM\PersistentCollection {#2063 …}
          +reports: Doctrine\ORM\PersistentCollection {#2064 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
          -id: 635
          -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699022526 {#2082
            date: 2023-11-03 15:42:06.0 +01:00
          }
          +"title": 635
        }
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
    +image: null
    +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
    +lang: "en"
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1698980683 {#1362
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@ursakhiin@beehaw.org"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2030 …}
    +nested: Doctrine\ORM\PersistentCollection {#2026 …}
    +votes: Doctrine\ORM\PersistentCollection {#2022 …}
    +reports: Doctrine\ORM\PersistentCollection {#2025 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
    -id: 629
    -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698980683 {#1403
      date: 2023-11-03 04:04:43.0 +01:00
    }
    +"title": 629
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/629/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 12.78 ms
Input props
[
  "comment" => App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  "dateAsUrl" => true
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#9202
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  +dateAsUrl: true
  +showNested: false
  +withPost: false
  +level: 1
  +canSeeTrash: false
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.14 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#9247
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.17 ms
Input props
[
  "date" => DateTimeImmutable @1699022526 {#2082
    date: 2023-11-03 15:42:06.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#9303
  +date: DateTimeImmutable @1699022526 {#2082
    date: 2023-11-03 15:42:06.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.12 ms
Input props
[
  "createdAt" => DateTimeImmutable @1699022526 {#2082
    date: 2023-11-03 15:42:06.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#9357
  +createdAt: DateTimeImmutable @1699022526 {#2082
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.19 ms
Input props
[
  "user" => App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#9411
  +width: 40
  +height: 40
  +user: App\Entity\User {#264
    +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
    +cover: Proxies\__CG__\App\Entity\Image {#246 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#272
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
    +entries: Doctrine\ORM\PersistentCollection {#178 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
    +posts: Doctrine\ORM\PersistentCollection {#66 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
    +follows: Doctrine\ORM\PersistentCollection {#1790 …}
    +followers: Doctrine\ORM\PersistentCollection {#2404 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
    +reports: Doctrine\ORM\PersistentCollection {#2425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
    +violations: Doctrine\ORM\PersistentCollection {#2480 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
    +awards: Doctrine\ORM\PersistentCollection {#1879 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
    +categories: Doctrine\ORM\PersistentCollection {#1950 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
    +apId: "nirogu@vivaldi.net"
    +apProfileId: "https://social.vivaldi.net/users/nirogu"
    +apPublicUrl: "https://social.vivaldi.net/@nirogu"
    +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
    +apInboxUrl: "https://social.vivaldi.net/inbox"
    +apDomain: "social.vivaldi.net"
    +apPreferredUsername: "nirogu"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1699068917 {#273
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#267
      date: 2023-11-02 19:44:34.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.33 ms
Input props
[
  "subject" => App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#9489
  +subject: App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.68 ms
Input props
[
  "subject" => App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#9546
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 6.55 ms
Input props
[
  "subject" => App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/635/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#9787
  +subject: App\Entity\PostComment {#2085
    +user: App\Entity\User {#264
      +avatar: Proxies\__CG__\App\Entity\Image {#245 …}
      +cover: Proxies\__CG__\App\Entity\Image {#246 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#272
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#235 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
      +entries: Doctrine\ORM\PersistentCollection {#178 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#150 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#123 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#93 …}
      +posts: Doctrine\ORM\PersistentCollection {#66 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#81 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2430 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1601 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1917 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1602 …}
      +follows: Doctrine\ORM\PersistentCollection {#1790 …}
      +followers: Doctrine\ORM\PersistentCollection {#2404 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2415 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1855 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1803 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2421 …}
      +reports: Doctrine\ORM\PersistentCollection {#2425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1951 …}
      +violations: Doctrine\ORM\PersistentCollection {#2480 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1688 …}
      +awards: Doctrine\ORM\PersistentCollection {#1879 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1924 …}
      +categories: Doctrine\ORM\PersistentCollection {#1950 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1937 …}
      +apId: "nirogu@vivaldi.net"
      +apProfileId: "https://social.vivaldi.net/users/nirogu"
      +apPublicUrl: "https://social.vivaldi.net/@nirogu"
      +apFollowersUrl: "https://social.vivaldi.net/users/nirogu/followers"
      +apInboxUrl: "https://social.vivaldi.net/inbox"
      +apDomain: "social.vivaldi.net"
      +apPreferredUsername: "nirogu"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1699068917 {#273
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#267
        date: 2023-11-02 19:44:34.0 +01:00
      }
    }
    +post: App\Entity\Post {#1606
      +user: App\Entity\User {#264}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1572
        +icon: Proxies\__CG__\App\Entity\Image {#3358 …}
        +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 {#3355
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#3359 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#3361 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3363 …}
        +entries: Doctrine\ORM\PersistentCollection {#3365 …}
        +posts: Doctrine\ORM\PersistentCollection {#3367 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3369 …}
        +bans: Doctrine\ORM\PersistentCollection {#3375 …}
        +reports: Doctrine\ORM\PersistentCollection {#3383 …}
        +badges: Doctrine\ORM\PersistentCollection {#3396 …}
        +logs: Doctrine\ORM\PersistentCollection {#3406 …}
        +awards: Doctrine\ORM\PersistentCollection {#3388 …}
        +categories: Doctrine\ORM\PersistentCollection {#3412 …}
        -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 {#3356
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#3357
          date: 2023-11-02 13:51:08.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +slug: "Run-command-as-not-root-Hi-everyone-At-work-I-have"
      +body: """
        Run command as not-root\n
        \n
        Hi everyone\n
        \n
        At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.\n
        \n
        Does anyone know how to do it? Thanks in advance!\n
        \n
        @linux@lemmy.ml
        """
      +lang: "en"
      +commentCount: 30
      +favouriteCount: 36
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1699069034 {#1647
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#1588 …}
      +votes: Doctrine\ORM\PersistentCollection {#1584 …}
      +reports: Doctrine\ORM\PersistentCollection {#1580 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1677 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
      +children: [
        7 => App\Entity\PostComment {#1720
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2377 …}
          +root: App\Entity\PostComment {#1525
            +user: App\Entity\User {#264}
            +post: App\Entity\Post {#1606}
            +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
            +parent: null
            +root: null
            +image: null
            +body: """
              Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option)   \n
              @linux@lemmy.ml
              """
            +lang: "en"
            +favouriteCount: 4
            +score: 0
            +lastActive: DateTime @1698951882 {#1554
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +ip: null
            +tags: null
            +mentions: [
              "@linux@lemmy.ml"
              "@nirogu@vivaldi.net"
            ]
            +isAdult: false
            +updateMark: false
            +children: Doctrine\ORM\PersistentCollection {#1620 …}
            +nested: Doctrine\ORM\PersistentCollection {#1604 …}
            +votes: Doctrine\ORM\PersistentCollection {#1619 …}
            +reports: Doctrine\ORM\PersistentCollection {#1701 …}
            +favourites: Doctrine\ORM\PersistentCollection {#1737 …}
            +notifications: Doctrine\ORM\PersistentCollection {#1726 …}
            -id: 608
            -bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
            +ranking: 0
            +commentCount: 0
            +upVotes: 0
            +downVotes: 0
            +visibility: "visible             "
            +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
            +editedAt: null
            +createdAt: DateTimeImmutable @1698951882 {#1566
              date: 2023-11-02 20:04:42.0 +01:00
            }
            +"title": 608
          }
          +image: null
          +body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698954358 {#1617
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2370 …}
          +nested: Doctrine\ORM\PersistentCollection {#2471 …}
          +votes: Doctrine\ORM\PersistentCollection {#2469 …}
          +reports: Doctrine\ORM\PersistentCollection {#2468 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2455 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2457 …}
          -id: 612
          -bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954358 {#1718
            date: 2023-11-02 20:45:58.0 +01:00
          }
          +"title": 612
        }
        8 => App\Entity\PostComment {#1525}
        5 => App\Entity\PostComment {#1716
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2363 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698953702 {#1739
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Rustmilian@lemmy.world"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2360 …}
          +nested: Doctrine\ORM\PersistentCollection {#2361 …}
          +votes: Doctrine\ORM\PersistentCollection {#2372 …}
          +reports: Doctrine\ORM\PersistentCollection {#2386 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2385 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2378 …}
          -id: 618
          -bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698953702 {#1717
            date: 2023-11-02 20:35:02.0 +01:00
          }
          +"title": 618
        }
        6 => App\Entity\PostComment {#2456
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2461 …}
          +image: null
          +body: """
            @astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found)  \n
            If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
            """
          +lang: "en"
          +favouriteCount: 1
          +score: 0
          +lastActive: DateTime @1698954643 {#2453
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astraeus@programming.dev"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2458 …}
          +nested: Doctrine\ORM\PersistentCollection {#2422 …}
          +votes: Doctrine\ORM\PersistentCollection {#2411 …}
          +reports: Doctrine\ORM\PersistentCollection {#2463 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2465 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1740 …}
          -id: 616
          -bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698954643 {#2460
            date: 2023-11-02 20:50:43.0 +01:00
          }
          +"title": 616
        }
        4 => App\Entity\PostComment {#2394
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
          +image: null
          +body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
          +lang: "en"
          +favouriteCount: 5
          +score: 0
          +lastActive: DateTime @1698951415 {#2387
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@astray@lemm.ee"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2393 …}
          +nested: Doctrine\ORM\PersistentCollection {#1381 …}
          +votes: Doctrine\ORM\PersistentCollection {#1402 …}
          +reports: Doctrine\ORM\PersistentCollection {#1385 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1401 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1363 …}
          -id: 623
          -bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698951415 {#2392
            date: 2023-11-02 19:56:55.0 +01:00
          }
          +"title": 623
        }
        3 => App\Entity\PostComment {#1910
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1906 …}
          +root: App\Entity\PostComment {#1525}
          +image: null
          +body: """
            @Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol  \n
            Thanks for the help!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698958797 {#2381
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@Oisteink@feddit.nl"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1909 …}
          +nested: Doctrine\ORM\PersistentCollection {#1926 …}
          +votes: Doctrine\ORM\PersistentCollection {#1874 …}
          +reports: Doctrine\ORM\PersistentCollection {#1908 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1883 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2389 …}
          -id: 620
          -bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698958797 {#2383
            date: 2023-11-02 21:59:57.0 +01:00
          }
          +"title": 620
        }
        2 => App\Entity\PostComment {#2013
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2027 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1699021862 {#2012
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2035 …}
          +nested: Doctrine\ORM\PersistentCollection {#2036 …}
          +votes: Doctrine\ORM\PersistentCollection {#2144 …}
          +reports: Doctrine\ORM\PersistentCollection {#2061 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2084 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2076 …}
          -id: 633
          -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
          +editedAt: null
          +createdAt: DateTimeImmutable @1699021862 {#2020
            date: 2023-11-03 15:31:02.0 +01:00
          }
          +"title": 633
        }
        1 => App\Entity\PostComment {#2019
          +user: App\Entity\User {#264}
          +post: App\Entity\Post {#1606}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#2023 …}
          +image: null
          +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
          +lang: "en"
          +favouriteCount: 0
          +score: 0
          +lastActive: DateTime @1698980683 {#1362
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
            "@ursakhiin@beehaw.org"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#2030 …}
          +nested: Doctrine\ORM\PersistentCollection {#2026 …}
          +votes: Doctrine\ORM\PersistentCollection {#2022 …}
          +reports: Doctrine\ORM\PersistentCollection {#2025 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2033 …}
          +notifications: Doctrine\ORM\PersistentCollection {#2028 …}
          -id: 629
          -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698980683 {#1403
            date: 2023-11-03 04:04:43.0 +01:00
          }
          +"title": 629
        }
        0 => App\Entity\PostComment {#2085}
      ]
      -id: 286
      -bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
      +upVotes: 0
      +downVotes: 0
      +ranking: 1699037071
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698950671 {#1744
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +"title": 286
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1572 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#2096 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#2395 …}
    +image: null
    +body: """
      @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
      My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
      """
    +lang: "en"
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699022526 {#2083
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
      "@astray@lemm.ee"
      "@elscallr@lemmy.world"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#2062 …}
    +nested: Doctrine\ORM\PersistentCollection {#2077 …}
    +votes: Doctrine\ORM\PersistentCollection {#2063 …}
    +reports: Doctrine\ORM\PersistentCollection {#2064 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2088 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2087 …}
    -id: 635
    -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699022526 {#2082
      date: 2023-11-03 15:42:06.0 +01:00
    }
    +"title": 635
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/635/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#4089 …}
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 12.0 MiB 0.23 ms
Input props
[
  "label" => "Sidebar position"
  "settingsKey" => "KBIN_GENERAL_SIDEBAR_POSITION"
  "values" => [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  "defaultValue" => "RIGHT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#9985
  +label: "Sidebar position"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SIDEBAR_POSITION"
  +values: [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  +defaultValue: "RIGHT"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.31 ms
Input props
[
  "label" => "Dynamic lists"
  "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10057
  +label: "Dynamic lists"
  +help: ""
  +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.27 ms
Input props
[
  "label" => "Rounded edges"
  "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10120
  +label: "Rounded edges"
  +help: ""
  +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.29 ms
Input props
[
  "label" => "Infinite scrolling"
  "help" => "Automatically load more content when you reach the bottom of the page."
  "settingsKey" => "KBIN_GENERAL_INFINITE_SCROLL"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10176
  +label: "Infinite scrolling"
  +help: "Automatically load more content when you reach the bottom of the page."
  +settingsKey: "KBIN_GENERAL_INFINITE_SCROLL"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.22 ms
Input props
[
  "label" => "Sticky navbar"
  "help" => "The navbar will stick to the top of the page when you scroll down."
  "settingsKey" => "KBIN_GENERAL_FIXED_NAVBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10235
  +label: "Sticky navbar"
  +help: "The navbar will stick to the top of the page when you scroll down."
  +settingsKey: "KBIN_GENERAL_FIXED_NAVBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.25 ms
Input props
[
  "label" => "Show top bar"
  "settingsKey" => "KBIN_GENERAL_TOPBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10291
  +label: "Show top bar"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TOPBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.17 ms
Input props
[
  "label" => "Turbo mode (experimental)"
  "settingsKey" => "KBIN_GENERAL_TURBO"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10347
  +label: "Turbo mode (experimental)"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TURBO"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.35 ms
Input props
[
  "label" => "Mark new comments"
  "settingsKey" => "KBIN_MARK_NEW_COMMENTS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#10405
  +label: "Mark new comments"
  +help: ""
  +settingsKey: "KBIN_MARK_NEW_COMMENTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.15 ms
Input props
[
  "label" => "Show "Support Us" block"
  "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10468
  +label: "Show "Support Us" block"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SUPPORT_US_BLOCK"
  +defaultValue: true
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.16 ms
Input props
[
  "label" => "Show subscribed users"
  "settingsKey" => "KBIN_SUB_CHANNEL_USERS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#10526
  +label: "Show subscribed users"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_USERS"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.19 ms
Input props
[
  "label" => "Show subscribed magazines"
  "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#10582
  +label: "Show subscribed magazines"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_MAGAZINES"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.17 ms
Input props
[
  "label" => "Show subscribed domains"
  "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#10638
  +label: "Show subscribed domains"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.20 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10694
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_ENTRIES_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.18 ms
Input props
[
  "label" => "Compact view"
  "settingsKey" => "KBIN_ENTRIES_COMPACT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10750
  +label: "Compact view"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_COMPACT"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.15 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10806
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_USERS_AVATARS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 4.97 ms
Input props
[
  "label" => "Show magazines’ icons"
  "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10862
  +label: "Show magazines’ icons"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.14 ms
Input props
[
  "label" => "Show thumbnails"
  "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10918
  +label: "Show thumbnails"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.18 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#10974
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_POSTS_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.13 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#11030
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_POSTS_SHOW_USERS_AVATARS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 12.0 MiB 0.16 ms
Input props
[
  "label" => "Comment reply position"
  "help" => "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  "settingsKey" => "KBIN_COMMENTS_REPLY_POSITION"
  "values" => [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  "defaultValue" => "TOP"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#11086
  +label: "Comment reply position"
  +help: "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  +settingsKey: "KBIN_COMMENTS_REPLY_POSITION"
  +values: [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  +defaultValue: "TOP"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.15 ms
Input props
[
  "label" => "Show Comment Avatars"
  "help" => "Display/hide user avatars when viewing comments on a single thread or post."
  "settingsKey" => "KBIN_COMMENTS_SHOW_USER_AVATAR"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#11144
  +label: "Show Comment Avatars"
  +help: "Display/hide user avatars when viewing comments on a single thread or post."
  +settingsKey: "KBIN_COMMENTS_SHOW_USER_AVATAR"
  +defaultValue: true
  +reloadRequired: true
}
date App\Twig\Components\DateComponent 12.0 MiB 0.16 ms
Input props
[
  "date" => DateTimeImmutable @1698950674 {#267
    date: 2023-11-02 19:44:34.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#11217
  +date: DateTimeImmutable @1698950674 {#267
    date: 2023-11-02 19:44:34.0 +01:00
  }
}
related_magazines App\Twig\Components\RelatedMagazinesComponent 12.0 MiB 9.65 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedMagazinesComponent {#11304
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_magazines"
  +refreshedRandom: false
  -repository: App\Repository\MagazineRepository {#2428 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
active_users App\Twig\Components\ActiveUsersComponent 12.0 MiB 3.97 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\ActiveUsersComponent {#11369
  +magazine: null
  -userRepository: App\Repository\UserRepository {#603 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
related_categories App\Twig\Components\RelatedCategoriesComponent 12.0 MiB 3.23 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedCategoriesComponent {#11428
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_categories"
  +refreshedRandom: false
  -repository: App\Repository\CategoryRepository {#11429 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
related_posts App\Twig\Components\RelatedPostsComponent 12.0 MiB 1.70 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedPostsComponent {#11498
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +post: null
  +title: "random_posts"
  +refreshedRandom: false
  -repository: App\Repository\PostRepository {#1624 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1515 …}
}
related_entries App\Twig\Components\RelatedEntriesComponent 12.0 MiB 1.55 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedEntriesComponent {#11567
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +entry: null
  +title: "random_entries"
  +refreshedRandom: false
  -repository: App\Repository\EntryRepository {#1783 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1515 …}
}
support_us_block App\Twig\Components\SupportUsBlock 12.0 MiB 0.22 ms
Input props
[]
Attributes
[]
Component
App\Twig\Components\SupportUsBlock {#11636
  +subject: ? App\Entity\Contracts\VotableInterface
  +url: ? string
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -partnerBlockRepository: App\Repository\PartnerBlockRepository {#11637 …}
}
featured_magazines App\Twig\Components\FeaturedMagazinesComponent 12.0 MiB 2.76 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\FeaturedMagazinesComponent {#11729
  +magazine: null
  -twig: Twig\Environment {#1252 …}
  -repository: App\Repository\MagazineRepository {#2428 …}
}