GET https://kbin.spritesserver.nl/u/@Oisteink@feddit.nl/replies

Components

21 Twig Components
71 Render Count
132 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 16.74ms
date
"App\Twig\Components\DateComponent"
components/date.html.twig
6 0.93ms
user_inline
"App\Twig\Components\UserInlineComponent"
components/user_inline.html.twig
5 2.42ms
date_edited
"App\Twig\Components\DateEditedComponent"
components/date_edited.html.twig
5 0.53ms
user_avatar
"App\Twig\Components\UserAvatarComponent"
components/user_avatar.html.twig
5 1.26ms
vote
"App\Twig\Components\VoteComponent"
components/vote.html.twig
5 1.88ms
boost
"App\Twig\Components\BoostComponent"
components/boost.html.twig
5 3.69ms
voters_inline
"App\Twig\Components\VotersInlineComponent"
components/_cached.html.twig
5 35.15ms
post_comment
"App\Twig\Components\PostCommentComponent"
components/post_comment.html.twig
4 70.33ms
user_settings_row_switch
"App\Twig\Components\UserSettingsRowSwitchComponent"
components/_user_settings_row_switch.html.twig
4 0.69ms
settings_row_enum
"App\Twig\Components\SettingsRowEnumComponent"
components/_settings_row_enum.html.twig
2 1.30ms
post
"App\Twig\Components\PostComponent"
components/_cached.html.twig
1 34.41ms
magazine_inline
"App\Twig\Components\MagazineInlineComponent"
components/magazine_inline.html.twig
1 0.18ms
user_actions
"App\Twig\Components\UserActionsComponent"
components/user_actions.html.twig
1 0.43ms
related_magazines
"App\Twig\Components\RelatedMagazinesComponent"
components/_cached.html.twig
1 1.67ms
active_users
"App\Twig\Components\ActiveUsersComponent"
components/_cached.html.twig
1 0.27ms
related_categories
"App\Twig\Components\RelatedCategoriesComponent"
components/_cached.html.twig
1 1.26ms
related_posts
"App\Twig\Components\RelatedPostsComponent"
components/_cached.html.twig
1 3.23ms
related_entries
"App\Twig\Components\RelatedEntriesComponent"
components/_cached.html.twig
1 1.53ms
support_us_block
"App\Twig\Components\SupportUsBlock"
components/_cached.html.twig
1 0.20ms
featured_magazines
"App\Twig\Components\FeaturedMagazinesComponent"
components/_cached.html.twig
1 0.78ms

Render calls

post App\Twig\Components\PostComponent 12.0 MiB 34.41 ms
Input props
[
  "post" => Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\PostComponent {#2567
  +post: Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +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 {#2568 …}
  -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 1.83 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#2471
    +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
    +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#2784
      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 {#2803 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
    +entries: Doctrine\ORM\PersistentCollection {#2809 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
    +posts: Doctrine\ORM\PersistentCollection {#2818 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
    +follows: Doctrine\ORM\PersistentCollection {#2830 …}
    +followers: Doctrine\ORM\PersistentCollection {#2832 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
    +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
    +reports: Doctrine\ORM\PersistentCollection {#2842 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
    +violations: Doctrine\ORM\PersistentCollection {#2846 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
    +awards: Doctrine\ORM\PersistentCollection {#2850 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
    +categories: Doctrine\ORM\PersistentCollection {#2854 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
    +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 {#2785
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#2786
      date: 2023-11-02 19:44:34.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#2738
  +user: Proxies\__CG__\App\Entity\User {#2471
    +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
    +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#2784
      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 {#2803 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
    +entries: Doctrine\ORM\PersistentCollection {#2809 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
    +posts: Doctrine\ORM\PersistentCollection {#2818 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
    +follows: Doctrine\ORM\PersistentCollection {#2830 …}
    +followers: Doctrine\ORM\PersistentCollection {#2832 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
    +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
    +reports: Doctrine\ORM\PersistentCollection {#2842 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
    +violations: Doctrine\ORM\PersistentCollection {#2846 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
    +awards: Doctrine\ORM\PersistentCollection {#2850 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
    +categories: Doctrine\ORM\PersistentCollection {#2854 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
    +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 {#2785
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#2786
      date: 2023-11-02 19:44:34.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.26 ms
Input props
[
  "date" => DateTimeImmutable @1698950671 {#2652
    date: 2023-11-02 19:44:31.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#2950
  +date: DateTimeImmutable @1698950671 {#2652
    date: 2023-11-02 19:44:31.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.17 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698950671 {#2652
    date: 2023-11-02 19:44:31.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3014
  +createdAt: DateTimeImmutable @1698950671 {#2652
    date: 2023-11-02 19:44:31.0 +01:00
  }
  +editedAt: null
}
magazine_inline App\Twig\Components\MagazineInlineComponent 12.0 MiB 0.18 ms
Input props
[
  "magazine" => Proxies\__CG__\App\Entity\Magazine {#1439
    +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
    +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 {#2871
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
    +entries: Doctrine\ORM\PersistentCollection {#2881 …}
    +posts: Doctrine\ORM\PersistentCollection {#2883 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
    +bans: Doctrine\ORM\PersistentCollection {#2891 …}
    +reports: Doctrine\ORM\PersistentCollection {#2899 …}
    +badges: Doctrine\ORM\PersistentCollection {#2912 …}
    +logs: Doctrine\ORM\PersistentCollection {#2922 …}
    +awards: Doctrine\ORM\PersistentCollection {#2904 …}
    +categories: Doctrine\ORM\PersistentCollection {#2928 …}
    -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 {#2872
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#2873
      date: 2023-11-02 13:51:08.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\MagazineInlineComponent {#3079
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
    +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
    +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 {#2871
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
    +entries: Doctrine\ORM\PersistentCollection {#2881 …}
    +posts: Doctrine\ORM\PersistentCollection {#2883 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
    +bans: Doctrine\ORM\PersistentCollection {#2891 …}
    +reports: Doctrine\ORM\PersistentCollection {#2899 …}
    +badges: Doctrine\ORM\PersistentCollection {#2912 …}
    +logs: Doctrine\ORM\PersistentCollection {#2922 …}
    +awards: Doctrine\ORM\PersistentCollection {#2904 …}
    +categories: Doctrine\ORM\PersistentCollection {#2928 …}
    -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 {#2872
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#2873
      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.74 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#2471
    +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
    +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#2784
      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 {#2803 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
    +entries: Doctrine\ORM\PersistentCollection {#2809 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
    +posts: Doctrine\ORM\PersistentCollection {#2818 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
    +follows: Doctrine\ORM\PersistentCollection {#2830 …}
    +followers: Doctrine\ORM\PersistentCollection {#2832 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
    +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
    +reports: Doctrine\ORM\PersistentCollection {#2842 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
    +violations: Doctrine\ORM\PersistentCollection {#2846 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
    +awards: Doctrine\ORM\PersistentCollection {#2850 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
    +categories: Doctrine\ORM\PersistentCollection {#2854 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
    +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 {#2785
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#2786
      date: 2023-11-02 19:44:34.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#3142
  +width: 40
  +height: 40
  +user: Proxies\__CG__\App\Entity\User {#2471
    +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
    +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
    +email: "nirogu@vivaldi.net"
    +username: "@nirogu@vivaldi.net"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Computer scientist and mathematician"
    +lastActive: DateTime @1699068917 {#2784
      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 {#2803 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
    +entries: Doctrine\ORM\PersistentCollection {#2809 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
    +posts: Doctrine\ORM\PersistentCollection {#2818 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
    +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
    +follows: Doctrine\ORM\PersistentCollection {#2830 …}
    +followers: Doctrine\ORM\PersistentCollection {#2832 …}
    +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
    +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
    +reports: Doctrine\ORM\PersistentCollection {#2842 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
    +violations: Doctrine\ORM\PersistentCollection {#2846 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
    +awards: Doctrine\ORM\PersistentCollection {#2850 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
    +categories: Doctrine\ORM\PersistentCollection {#2854 …}
    -id: 70073
    -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
    +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 {#2785
      date: 2023-11-04 04:35:17.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698950674 {#2786
      date: 2023-11-02 19:44:34.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.41 ms
Input props
[
  "subject" => Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#3256
  +subject: Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +formDest: "post"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 1.08 ms
Input props
[
  "subject" => Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#3328
  +formDest: "post"
  +subject: Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 2.72 ms
Input props
[
  "subject" => Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "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 {#3630
  +subject: Proxies\__CG__\App\Entity\Post {#1451
    +user: Proxies\__CG__\App\Entity\User {#2471
      +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
      +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
      +email: "nirogu@vivaldi.net"
      +username: "@nirogu@vivaldi.net"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: "Computer scientist and mathematician"
      +lastActive: DateTime @1699068917 {#2784
        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 {#2803 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
      +entries: Doctrine\ORM\PersistentCollection {#2809 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
      +posts: Doctrine\ORM\PersistentCollection {#2818 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
      +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
      +follows: Doctrine\ORM\PersistentCollection {#2830 …}
      +followers: Doctrine\ORM\PersistentCollection {#2832 …}
      +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
      +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
      +reports: Doctrine\ORM\PersistentCollection {#2842 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
      +violations: Doctrine\ORM\PersistentCollection {#2846 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
      +awards: Doctrine\ORM\PersistentCollection {#2850 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
      +categories: Doctrine\ORM\PersistentCollection {#2854 …}
      -id: 70073
      -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
      +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 {#2785
        date: 2023-11-04 04:35:17.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698950674 {#2786
        date: 2023-11-02 19:44:34.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
      +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
      +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 {#2871
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
      +entries: Doctrine\ORM\PersistentCollection {#2881 …}
      +posts: Doctrine\ORM\PersistentCollection {#2883 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
      +bans: Doctrine\ORM\PersistentCollection {#2891 …}
      +reports: Doctrine\ORM\PersistentCollection {#2899 …}
      +badges: Doctrine\ORM\PersistentCollection {#2912 …}
      +logs: Doctrine\ORM\PersistentCollection {#2922 …}
      +awards: Doctrine\ORM\PersistentCollection {#2904 …}
      +categories: Doctrine\ORM\PersistentCollection {#2928 …}
      -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 {#2872
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2873
        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 {#2653
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2654 …}
    +votes: Doctrine\ORM\PersistentCollection {#2663 …}
    +reports: Doctrine\ORM\PersistentCollection {#2665 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
    +children: [
      App\Entity\PostComment {#1465
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Oisteink@feddit.nl"
          +username: "@Oisteink@feddit.nl"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1729194035 {#273
            date: 2024-10-17 21:40:35.0 +02: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: true
          +showProfileFollowings: true
          +markNewComments: false
          +notifyOnNewEntry: false
          +notifyOnNewEntryReply: false
          +notifyOnNewEntryCommentReply: false
          +notifyOnNewPost: false
          +notifyOnNewPostReply: false
          +notifyOnNewPostCommentReply: false
          +addMentionsEntries: false
          +addMentionsPosts: true
          +isBanned: false
          +isVerified: false
          +isDeleted: false
          +isBot: false
          +spamProtection: true
          +customCss: null
          +ignoreMagazinesCustomCss: false
          +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 34817
          -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Oisteink@feddit.nl"
          +apProfileId: "https://feddit.nl/u/Oisteink"
          +apPublicUrl: "https://feddit.nl/u/Oisteink"
          +apFollowersUrl: null
          +apInboxUrl: "https://feddit.nl/inbox"
          +apDomain: "feddit.nl"
          +apPreferredUsername: "Oisteink"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1702839003 {#274
            date: 2023-12-17 19:50:03.0 +01:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1690303593 {#268
            date: 2023-07-25 18:46:33.0 +02:00
          }
        }
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
          \n
          Keep at it!
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698969553 {#1756
          date: 2023-11-03 00:59:13.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 {#1428 …}
        +nested: Doctrine\ORM\PersistentCollection {#1441 …}
        +votes: Doctrine\ORM\PersistentCollection {#1456 …}
        +reports: Doctrine\ORM\PersistentCollection {#1788 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
        -id: 621
        -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4262519"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698969553 {#1634
          date: 2023-11-03 00:59:13.0 +01:00
        }
      }
      App\Entity\PostComment {#1582
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
        +lang: "en"
        +favouriteCount: 3
        +score: 0
        +lastActive: DateTime @1698955906 {#1637
          date: 2023-11-02 21:11:46.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 {#1592 …}
        +nested: Doctrine\ORM\PersistentCollection {#1578 …}
        +votes: Doctrine\ORM\PersistentCollection {#1577 …}
        +reports: Doctrine\ORM\PersistentCollection {#1579 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
        -id: 614
        -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256607"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698955906 {#1644
          date: 2023-11-02 21:11:46.0 +01:00
        }
      }
      App\Entity\PostComment {#1573
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
          \n
          It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
          \n
          [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
          \n
          [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
          \n
          [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
          """
        +lang: "en"
        +favouriteCount: 2
        +score: 0
        +lastActive: DateTime @1698955665 {#1571
          date: 2023-11-02 21:07:45.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 {#1585 …}
        +nested: Doctrine\ORM\PersistentCollection {#1551 …}
        +votes: Doctrine\ORM\PersistentCollection {#1560 …}
        +reports: Doctrine\ORM\PersistentCollection {#1526 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
        -id: 613
        -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4256522"
        +editedAt: DateTimeImmutable @1698955955 {#1424
          date: 2023-11-02 21:12:35.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698955665 {#1635
          date: 2023-11-02 21:07:45.0 +01:00
        }
      }
      App\Entity\PostComment {#1564
        +user: App\Entity\User {#265}
        +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
        +image: null
        +body: """
          There’s no way to run a command as another user if that user is not created.\n
          \n
          [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
          \n
          Edit:sudo is also an option but I like runuser for your use-case
          """
        +lang: "en"
        +favouriteCount: 4
        +score: 0
        +lastActive: DateTime @1698952814 {#1586
          date: 2023-11-02 20:20:14.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1566 …}
        +nested: Doctrine\ORM\PersistentCollection {#1562 …}
        +votes: Doctrine\ORM\PersistentCollection {#1554 …}
        +reports: Doctrine\ORM\PersistentCollection {#1556 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
        -id: 611
        -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nl/comment/4255538"
        +editedAt: DateTimeImmutable @1698953029 {#1587
          date: 2023-11-02 20:23:49.0 +01:00
        }
        +createdAt: DateTimeImmutable @1698952814 {#1575
          date: 2023-11-02 20:20:14.0 +01:00
        }
      }
    ]
    -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 {#2652
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +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 {#3629 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 29.36 ms
Input props
[
  "comment" => App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#3719
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  +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 {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#3770
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1698952814 {#1575
    date: 2023-11-02 20:20:14.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#3826
  +date: DateTimeImmutable @1698952814 {#1575
    date: 2023-11-02 20:20:14.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698952814 {#1575
    date: 2023-11-02 20:20:14.0 +01:00
  }
  "editedAt" => DateTimeImmutable @1698953029 {#1587
    date: 2023-11-02 20:23:49.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3880
  +createdAt: DateTimeImmutable @1698952814 {#1575
    date: 2023-11-02 20:20:14.0 +01:00
  }
  +editedAt: DateTimeImmutable @1698953029 {#1587
    date: 2023-11-02 20:23:49.0 +01:00
  }
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.12 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#3934
  +width: 40
  +height: 40
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.26 ms
Input props
[
  "subject" => App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#4013
  +subject: App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.61 ms
Input props
[
  "subject" => App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#4070
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 14.36 ms
Input props
[
  "subject" => App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/611/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#4314
  +subject: App\Entity\PostComment {#1564
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564}
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      There’s no way to run a command as another user if that user is not created.\n
      \n
      [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
      \n
      Edit:sudo is also an option but I like runuser for your use-case
      """
    +lang: "en"
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1698952814 {#1586
      date: 2023-11-02 20:20:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
      "@nirogu@vivaldi.net"
    ]
    +isAdult: false
    +updateMark: false
    +children: Doctrine\ORM\PersistentCollection {#1566 …}
    +nested: Doctrine\ORM\PersistentCollection {#1562 …}
    +votes: Doctrine\ORM\PersistentCollection {#1554 …}
    +reports: Doctrine\ORM\PersistentCollection {#1556 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
    -id: 611
    -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4255538"
    +editedAt: DateTimeImmutable @1698953029 {#1587
      date: 2023-11-02 20:23:49.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698952814 {#1575
      date: 2023-11-02 20:20:14.0 +01:00
    }
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/611/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#3629 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 10.77 ms
Input props
[
  "comment" => App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#4391
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  +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 {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#4436
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698955665 {#1635
    date: 2023-11-02 21:07:45.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#4492
  +date: DateTimeImmutable @1698955665 {#1635
    date: 2023-11-02 21:07:45.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698955665 {#1635
    date: 2023-11-02 21:07:45.0 +01:00
  }
  "editedAt" => DateTimeImmutable @1698955955 {#1424
    date: 2023-11-02 21:12:35.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#4546
  +createdAt: DateTimeImmutable @1698955665 {#1635
    date: 2023-11-02 21:07:45.0 +01:00
  }
  +editedAt: DateTimeImmutable @1698955955 {#1424
    date: 2023-11-02 21:12:35.0 +01:00
  }
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.13 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#4600
  +width: 40
  +height: 40
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.26 ms
Input props
[
  "subject" => App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#4691
  +subject: App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  +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 {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#4748
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 5.44 ms
Input props
[
  "subject" => App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/613/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#4989
  +subject: App\Entity\PostComment {#1573
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573}
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
      \n
      It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
      \n
      [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
      \n
      [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
      \n
      [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698955665 {#1571
      date: 2023-11-02 21:07:45.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 {#1585 …}
    +nested: Doctrine\ORM\PersistentCollection {#1551 …}
    +votes: Doctrine\ORM\PersistentCollection {#1560 …}
    +reports: Doctrine\ORM\PersistentCollection {#1526 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
    -id: 613
    -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256522"
    +editedAt: DateTimeImmutable @1698955955 {#1424
      date: 2023-11-02 21:12:35.0 +01:00
    }
    +createdAt: DateTimeImmutable @1698955665 {#1635
      date: 2023-11-02 21:07:45.0 +01:00
    }
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/613/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#3629 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 14.65 ms
Input props
[
  "comment" => App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#5060
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  +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 {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#5105
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1698955906 {#1644
    date: 2023-11-02 21:11:46.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#5161
  +date: DateTimeImmutable @1698955906 {#1644
    date: 2023-11-02 21:11:46.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698955906 {#1644
    date: 2023-11-02 21:11:46.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#5215
  +createdAt: DateTimeImmutable @1698955906 {#1644
    date: 2023-11-02 21:11:46.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.14 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#5269
  +width: 40
  +height: 40
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.29 ms
Input props
[
  "subject" => App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#5338
  +subject: App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  +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 {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#5395
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 6.71 ms
Input props
[
  "subject" => App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/614/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#5636
  +subject: App\Entity\PostComment {#1582
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
            \n
            Keep at it!
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698969553 {#1756
            date: 2023-11-03 00:59:13.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 {#1428 …}
          +nested: Doctrine\ORM\PersistentCollection {#1441 …}
          +votes: Doctrine\ORM\PersistentCollection {#1456 …}
          +reports: Doctrine\ORM\PersistentCollection {#1788 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
          -id: 621
          -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4262519"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698969553 {#1634
            date: 2023-11-03 00:59:13.0 +01:00
          }
        }
        App\Entity\PostComment {#1582}
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
    +lang: "en"
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1698955906 {#1637
      date: 2023-11-02 21:11:46.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 {#1592 …}
    +nested: Doctrine\ORM\PersistentCollection {#1578 …}
    +votes: Doctrine\ORM\PersistentCollection {#1577 …}
    +reports: Doctrine\ORM\PersistentCollection {#1579 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
    -id: 614
    -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4256607"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698955906 {#1644
      date: 2023-11-02 21:11:46.0 +01:00
    }
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/614/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#3629 …}
}
post_comment App\Twig\Components\PostCommentComponent 12.0 MiB 15.55 ms
Input props
[
  "comment" => App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\PostCommentComponent {#5707
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  +comment: App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  +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 {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#5752
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1698969553 {#1634
    date: 2023-11-03 00:59:13.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#5808
  +date: DateTimeImmutable @1698969553 {#1634
    date: 2023-11-03 00:59:13.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698969553 {#1634
    date: 2023-11-03 00:59:13.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#5862
  +createdAt: DateTimeImmutable @1698969553 {#1634
    date: 2023-11-03 00:59:13.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.14 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#5916
  +width: 40
  +height: 40
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.65 ms
Input props
[
  "subject" => App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  "showDownvote" => false
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#5989
  +subject: App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  +formDest: "post_comment"
  +showDownvote: false
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.65 ms
Input props
[
  "subject" => App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#6046
  +formDest: "post_comment"
  +subject: App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
voters_inline App\Twig\Components\VotersInlineComponent 12.0 MiB 5.93 ms
Input props
[
  "subject" => App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  "url" => "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/621/votes"
]
Attributes
[]
Component
App\Twig\Components\VotersInlineComponent {#6287
  +subject: App\Entity\PostComment {#1465
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Oisteink@feddit.nl"
      +username: "@Oisteink@feddit.nl"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729194035 {#273
        date: 2024-10-17 21:40:35.0 +02: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: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 34817
      -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Oisteink@feddit.nl"
      +apProfileId: "https://feddit.nl/u/Oisteink"
      +apPublicUrl: "https://feddit.nl/u/Oisteink"
      +apFollowersUrl: null
      +apInboxUrl: "https://feddit.nl/inbox"
      +apDomain: "feddit.nl"
      +apPreferredUsername: "Oisteink"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1702839003 {#274
        date: 2023-12-17 19:50:03.0 +01:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1690303593 {#268
        date: 2023-07-25 18:46:33.0 +02:00
      }
    }
    +post: Proxies\__CG__\App\Entity\Post {#1451
      +user: Proxies\__CG__\App\Entity\User {#2471
        +avatar: Proxies\__CG__\App\Entity\Image {#2805 …}
        +cover: Proxies\__CG__\App\Entity\Image {#2804 …}
        +email: "nirogu@vivaldi.net"
        +username: "@nirogu@vivaldi.net"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: "Computer scientist and mathematician"
        +lastActive: DateTime @1699068917 {#2784
          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 {#2803 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#2810 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2806 …}
        +entries: Doctrine\ORM\PersistentCollection {#2809 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#2812 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#2814 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#2816 …}
        +posts: Doctrine\ORM\PersistentCollection {#2818 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#2820 …}
        +postComments: Doctrine\ORM\PersistentCollection {#2822 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#2824 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2826 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#2828 …}
        +follows: Doctrine\ORM\PersistentCollection {#2830 …}
        +followers: Doctrine\ORM\PersistentCollection {#2832 …}
        +blocks: Doctrine\ORM\PersistentCollection {#2834 …}
        +blockers: Doctrine\ORM\PersistentCollection {#2836 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#2838 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#2840 …}
        +reports: Doctrine\ORM\PersistentCollection {#2842 …}
        +favourites: Doctrine\ORM\PersistentCollection {#2844 …}
        +violations: Doctrine\ORM\PersistentCollection {#2846 …}
        +notifications: Doctrine\ORM\PersistentCollection {#2848 …}
        +awards: Doctrine\ORM\PersistentCollection {#2850 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#2852 …}
        +categories: Doctrine\ORM\PersistentCollection {#2854 …}
        -id: 70073
        -password: "$2y$13$C1DT6S10TZZ./6K0EsRjZ.jhHPsEwGqMD5M4Wcn16606GKlv31Sa."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#2856 …}
        +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 {#2785
          date: 2023-11-04 04:35:17.0 +01:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698950674 {#2786
          date: 2023-11-02 19:44:34.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1439
        +icon: Proxies\__CG__\App\Entity\Image {#2874 …}
        +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 {#2871
          date: 2024-10-22 09:52:22.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2875 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2877 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2879 …}
        +entries: Doctrine\ORM\PersistentCollection {#2881 …}
        +posts: Doctrine\ORM\PersistentCollection {#2883 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2885 …}
        +bans: Doctrine\ORM\PersistentCollection {#2891 …}
        +reports: Doctrine\ORM\PersistentCollection {#2899 …}
        +badges: Doctrine\ORM\PersistentCollection {#2912 …}
        +logs: Doctrine\ORM\PersistentCollection {#2922 …}
        +awards: Doctrine\ORM\PersistentCollection {#2904 …}
        +categories: Doctrine\ORM\PersistentCollection {#2928 …}
        -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 {#2872
          date: 2024-10-22 09:53:16.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#2873
          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 {#2653
        date: 2023-11-04 04:37:14.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
      ]
      +comments: Doctrine\ORM\PersistentCollection {#2654 …}
      +votes: Doctrine\ORM\PersistentCollection {#2663 …}
      +reports: Doctrine\ORM\PersistentCollection {#2665 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2697 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2693 …}
      +children: [
        App\Entity\PostComment {#1465}
        App\Entity\PostComment {#1582
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
          +lang: "en"
          +favouriteCount: 3
          +score: 0
          +lastActive: DateTime @1698955906 {#1637
            date: 2023-11-02 21:11:46.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 {#1592 …}
          +nested: Doctrine\ORM\PersistentCollection {#1578 …}
          +votes: Doctrine\ORM\PersistentCollection {#1577 …}
          +reports: Doctrine\ORM\PersistentCollection {#1579 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1581 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1572 …}
          -id: 614
          -bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256607"
          +editedAt: null
          +createdAt: DateTimeImmutable @1698955906 {#1644
            date: 2023-11-02 21:11:46.0 +01:00
          }
        }
        App\Entity\PostComment {#1573
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
            \n
            It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
            \n
            [en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
            \n
            [en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
            \n
            [en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
            """
          +lang: "en"
          +favouriteCount: 2
          +score: 0
          +lastActive: DateTime @1698955665 {#1571
            date: 2023-11-02 21:07:45.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 {#1585 …}
          +nested: Doctrine\ORM\PersistentCollection {#1551 …}
          +votes: Doctrine\ORM\PersistentCollection {#1560 …}
          +reports: Doctrine\ORM\PersistentCollection {#1526 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1527 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1525 …}
          -id: 613
          -bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4256522"
          +editedAt: DateTimeImmutable @1698955955 {#1424
            date: 2023-11-02 21:12:35.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698955665 {#1635
            date: 2023-11-02 21:07:45.0 +01:00
          }
        }
        App\Entity\PostComment {#1564
          +user: App\Entity\User {#265}
          +post: Proxies\__CG__\App\Entity\Post {#1451 …2}
          +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
          +parent: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
          +image: null
          +body: """
            There’s no way to run a command as another user if that user is not created.\n
            \n
            [linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
            \n
            Edit:sudo is also an option but I like runuser for your use-case
            """
          +lang: "en"
          +favouriteCount: 4
          +score: 0
          +lastActive: DateTime @1698952814 {#1586
            date: 2023-11-02 20:20:14.0 +01:00
          }
          +ip: null
          +tags: null
          +mentions: [
            "@linux@lemmy.ml"
            "@nirogu@vivaldi.net"
          ]
          +isAdult: false
          +updateMark: false
          +children: Doctrine\ORM\PersistentCollection {#1566 …}
          +nested: Doctrine\ORM\PersistentCollection {#1562 …}
          +votes: Doctrine\ORM\PersistentCollection {#1554 …}
          +reports: Doctrine\ORM\PersistentCollection {#1556 …}
          +favourites: Doctrine\ORM\PersistentCollection {#1555 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1620 …}
          -id: 611
          -bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
          +ranking: 0
          +commentCount: 0
          +upVotes: 0
          +downVotes: 0
          +visibility: "visible             "
          +apId: "https://feddit.nl/comment/4255538"
          +editedAt: DateTimeImmutable @1698953029 {#1587
            date: 2023-11-02 20:23:49.0 +01:00
          }
          +createdAt: DateTimeImmutable @1698952814 {#1575
            date: 2023-11-02 20:20:14.0 +01:00
          }
        }
      ]
      -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 {#2652
        date: 2023-11-02 19:44:31.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …2}
    +parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
    +root: Proxies\__CG__\App\Entity\PostComment {#1437 …}
    +image: null
    +body: """
      Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
      \n
      Keep at it!
      """
    +lang: "en"
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1698969553 {#1756
      date: 2023-11-03 00:59:13.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 {#1428 …}
    +nested: Doctrine\ORM\PersistentCollection {#1441 …}
    +votes: Doctrine\ORM\PersistentCollection {#1456 …}
    +reports: Doctrine\ORM\PersistentCollection {#1788 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1656 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1655 …}
    -id: 621
    -bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4262519"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698969553 {#1634
      date: 2023-11-03 00:59:13.0 +01:00
    }
  }
  +url: "/m/linux@lemmy.ml/p/286/Run-command-as-not-root-Hi-everyone-At-work-I-have/reply/621/votes"
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -cacheService: App\Service\CacheService {#3629 …}
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 12.0 MiB 1.15 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 {#6358
  +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.99 ms
Input props
[
  "label" => "Dynamic lists"
  "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6468
  +label: "Dynamic lists"
  +help: ""
  +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 1.60 ms
Input props
[
  "label" => "Rounded edges"
  "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6531
  +label: "Rounded edges"
  +help: ""
  +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 12.55 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 {#6587
  +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.13 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 {#6646
  +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.12 ms
Input props
[
  "label" => "Show top bar"
  "settingsKey" => "KBIN_GENERAL_TOPBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6702
  +label: "Show top bar"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TOPBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.14 ms
Input props
[
  "label" => "Turbo mode (experimental)"
  "settingsKey" => "KBIN_GENERAL_TURBO"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6758
  +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.26 ms
Input props
[
  "label" => "Mark new comments"
  "settingsKey" => "KBIN_MARK_NEW_COMMENTS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#6816
  +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.14 ms
Input props
[
  "label" => "Show "Support Us" block"
  "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6879
  +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.15 ms
Input props
[
  "label" => "Show subscribed users"
  "settingsKey" => "KBIN_SUB_CHANNEL_USERS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#6937
  +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.14 ms
Input props
[
  "label" => "Show subscribed magazines"
  "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#6993
  +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.14 ms
Input props
[
  "label" => "Show subscribed domains"
  "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#7049
  +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.13 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7105
  +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.12 ms
Input props
[
  "label" => "Compact view"
  "settingsKey" => "KBIN_ENTRIES_COMPACT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7161
  +label: "Compact view"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_COMPACT"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.12 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7217
  +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 0.12 ms
Input props
[
  "label" => "Show magazines’ icons"
  "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7273
  +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.17 ms
Input props
[
  "label" => "Show thumbnails"
  "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3245
  +label: "Show thumbnails"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.13 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4670
  +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 {#3312
  +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.15 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 {#5982
  +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.13 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 {#7333
  +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
}
user_actions App\Twig\Components\UserActionsComponent 12.0 MiB 0.43 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\UserActionsComponent {#7409
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Oisteink@feddit.nl"
    +username: "@Oisteink@feddit.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729194035 {#273
      date: 2024-10-17 21:40:35.0 +02: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: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 34817
    -password: "$2y$13$0vvIV50FYb9tlym9XwuO3uB/KABsW0AC2IaBQqR5Ai1UOt1MZ/3oi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Oisteink@feddit.nl"
    +apProfileId: "https://feddit.nl/u/Oisteink"
    +apPublicUrl: "https://feddit.nl/u/Oisteink"
    +apFollowersUrl: null
    +apInboxUrl: "https://feddit.nl/inbox"
    +apDomain: "feddit.nl"
    +apPreferredUsername: "Oisteink"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702839003 {#274
      date: 2023-12-17 19:50:03.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690303593 {#268
      date: 2023-07-25 18:46:33.0 +02:00
    }
  }
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1690303593 {#268
    date: 2023-07-25 18:46:33.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#7470
  +date: DateTimeImmutable @1690303593 {#268
    date: 2023-07-25 18:46:33.0 +02:00
  }
}
related_magazines App\Twig\Components\RelatedMagazinesComponent 12.0 MiB 1.67 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedMagazinesComponent {#7557
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_magazines"
  +refreshedRandom: false
  -repository: App\Repository\MagazineRepository {#1370 …}
  -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 0.27 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\ActiveUsersComponent {#7622
  +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 1.26 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedCategoriesComponent {#7681
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_categories"
  +refreshedRandom: false
  -repository: App\Repository\CategoryRepository {#7682 …}
  -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 3.23 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedPostsComponent {#7753
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +post: null
  +title: "random_posts"
  +refreshedRandom: false
  -repository: App\Repository\PostRepository {#7751 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
related_entries App\Twig\Components\RelatedEntriesComponent 12.0 MiB 1.53 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedEntriesComponent {#7823
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +entry: null
  +title: "random_entries"
  +refreshedRandom: false
  -repository: App\Repository\EntryRepository {#7822 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
support_us_block App\Twig\Components\SupportUsBlock 12.0 MiB 0.20 ms
Input props
[]
Attributes
[]
Component
App\Twig\Components\SupportUsBlock {#7892
  +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 {#7893 …}
}
featured_magazines App\Twig\Components\FeaturedMagazinesComponent 12.0 MiB 0.78 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\FeaturedMagazinesComponent {#7985
  +magazine: null
  -twig: Twig\Environment {#1252 …}
  -repository: App\Repository\MagazineRepository {#1370 …}
}