GET https://kbin.spritesserver.nl/index.php/u/@nirogu@vivaldi.net/top/2023-11-03::2023-11-03

Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

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

Listeners

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

Authenticators

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

Access Decision

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

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
Proxies\__CG__\App\Entity\Post {#1559
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +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 {#2936
    date: 2023-11-04 04:37:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
  ]
  +comments: Doctrine\ORM\PersistentCollection {#2937 …}
  +votes: Doctrine\ORM\PersistentCollection {#2946 …}
  +reports: Doctrine\ORM\PersistentCollection {#2948 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
  +children: [
    1 => App\Entity\PostComment {#1721
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
      +image: null
      +body: """
        @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
        My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
        """
      +lang: "en"
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699022526 {#1723
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@astray@lemm.ee"
        "@elscallr@lemmy.world"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1736 …}
      +nested: Doctrine\ORM\PersistentCollection {#1737 …}
      +votes: Doctrine\ORM\PersistentCollection {#1732 …}
      +reports: Doctrine\ORM\PersistentCollection {#1735 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
      -id: 635
      -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699022526 {#1722
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +"title": 635
    }
    2 => App\Entity\PostComment {#1612
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1698980683 {#1650
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1572 …}
      +nested: Doctrine\ORM\PersistentCollection {#1584 …}
      +votes: Doctrine\ORM\PersistentCollection {#1580 …}
      +reports: Doctrine\ORM\PersistentCollection {#1583 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
      -id: 629
      -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698980683 {#1667
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +"title": 629
    }
    0 => App\Entity\PostComment {#1630
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1699021862 {#1556
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1705 …}
      +nested: Doctrine\ORM\PersistentCollection {#1629 …}
      +votes: Doctrine\ORM\PersistentCollection {#1626 …}
      +reports: Doctrine\ORM\PersistentCollection {#1618 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
      -id: 633
      -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699021862 {#1598
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +"title": 633
    }
  ]
  -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 {#2935
    date: 2023-11-02 19:44:31.0 +01:00
  }
  +__isInitialized__: true
  +"title": 286
   …2
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS DENIED
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
Proxies\__CG__\App\Entity\Post {#1559
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +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 {#2936
    date: 2023-11-04 04:37:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
  ]
  +comments: Doctrine\ORM\PersistentCollection {#2937 …}
  +votes: Doctrine\ORM\PersistentCollection {#2946 …}
  +reports: Doctrine\ORM\PersistentCollection {#2948 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
  +children: [
    1 => App\Entity\PostComment {#1721
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
      +image: null
      +body: """
        @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
        My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
        """
      +lang: "en"
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699022526 {#1723
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@astray@lemm.ee"
        "@elscallr@lemmy.world"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1736 …}
      +nested: Doctrine\ORM\PersistentCollection {#1737 …}
      +votes: Doctrine\ORM\PersistentCollection {#1732 …}
      +reports: Doctrine\ORM\PersistentCollection {#1735 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
      -id: 635
      -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699022526 {#1722
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +"title": 635
    }
    2 => App\Entity\PostComment {#1612
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1698980683 {#1650
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1572 …}
      +nested: Doctrine\ORM\PersistentCollection {#1584 …}
      +votes: Doctrine\ORM\PersistentCollection {#1580 …}
      +reports: Doctrine\ORM\PersistentCollection {#1583 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
      -id: 629
      -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698980683 {#1667
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +"title": 629
    }
    0 => App\Entity\PostComment {#1630
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1699021862 {#1556
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1705 …}
      +nested: Doctrine\ORM\PersistentCollection {#1629 …}
      +votes: Doctrine\ORM\PersistentCollection {#1626 …}
      +reports: Doctrine\ORM\PersistentCollection {#1618 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
      -id: 633
      -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699021862 {#1598
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +"title": 633
    }
  ]
  -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 {#2935
    date: 2023-11-02 19:44:31.0 +01:00
  }
  +__isInitialized__: true
  +"title": 286
   …2
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS DENIED
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
Proxies\__CG__\App\Entity\Post {#1559
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +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 {#2936
    date: 2023-11-04 04:37:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
  ]
  +comments: Doctrine\ORM\PersistentCollection {#2937 …}
  +votes: Doctrine\ORM\PersistentCollection {#2946 …}
  +reports: Doctrine\ORM\PersistentCollection {#2948 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
  +children: [
    1 => App\Entity\PostComment {#1721
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
      +image: null
      +body: """
        @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
        My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
        """
      +lang: "en"
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699022526 {#1723
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@astray@lemm.ee"
        "@elscallr@lemmy.world"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1736 …}
      +nested: Doctrine\ORM\PersistentCollection {#1737 …}
      +votes: Doctrine\ORM\PersistentCollection {#1732 …}
      +reports: Doctrine\ORM\PersistentCollection {#1735 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
      -id: 635
      -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699022526 {#1722
        date: 2023-11-03 15:42:06.0 +01:00
      }
      +"title": 635
    }
    2 => App\Entity\PostComment {#1612
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1698980683 {#1650
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1572 …}
      +nested: Doctrine\ORM\PersistentCollection {#1584 …}
      +votes: Doctrine\ORM\PersistentCollection {#1580 …}
      +reports: Doctrine\ORM\PersistentCollection {#1583 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
      -id: 629
      -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
      +editedAt: null
      +createdAt: DateTimeImmutable @1698980683 {#1667
        date: 2023-11-03 04:04:43.0 +01:00
      }
      +"title": 629
    }
    0 => App\Entity\PostComment {#1630
      +user: App\Entity\User {#260 …}
      +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
      +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
      +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
      +image: null
      +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
      +lang: "en"
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1699021862 {#1556
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linux@lemmy.ml"
        "@nirogu@vivaldi.net"
        "@ursakhiin@beehaw.org"
      ]
      +isAdult: false
      +updateMark: false
      +children: Doctrine\ORM\PersistentCollection {#1705 …}
      +nested: Doctrine\ORM\PersistentCollection {#1629 …}
      +votes: Doctrine\ORM\PersistentCollection {#1626 …}
      +reports: Doctrine\ORM\PersistentCollection {#1618 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
      -id: 633
      -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699021862 {#1598
        date: 2023-11-03 15:31:02.0 +01:00
      }
      +"title": 633
    }
  ]
  -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 {#2935
    date: 2023-11-02 19:44:31.0 +01:00
  }
  +__isInitialized__: true
  +"title": 286
   …2
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS DENIED
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\PostComment {#1721
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721}
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
  +image: null
  +body: """
    @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
    My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
    """
  +lang: "en"
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699022526 {#1723
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@astray@lemm.ee"
    "@elscallr@lemmy.world"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1736 …}
  +nested: Doctrine\ORM\PersistentCollection {#1737 …}
  +votes: Doctrine\ORM\PersistentCollection {#1732 …}
  +reports: Doctrine\ORM\PersistentCollection {#1735 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
  -id: 635
  -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699022526 {#1722
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +"title": 635
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\PostComment {#1721
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721}
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
  +image: null
  +body: """
    @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
    My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
    """
  +lang: "en"
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699022526 {#1723
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@astray@lemm.ee"
    "@elscallr@lemmy.world"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1736 …}
  +nested: Doctrine\ORM\PersistentCollection {#1737 …}
  +votes: Doctrine\ORM\PersistentCollection {#1732 …}
  +reports: Doctrine\ORM\PersistentCollection {#1735 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
  -id: 635
  -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699022526 {#1722
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +"title": 635
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\PostComment {#1721
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721}
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
  +image: null
  +body: """
    @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
    My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
    """
  +lang: "en"
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699022526 {#1723
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@astray@lemm.ee"
    "@elscallr@lemmy.world"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1736 …}
  +nested: Doctrine\ORM\PersistentCollection {#1737 …}
  +votes: Doctrine\ORM\PersistentCollection {#1732 …}
  +reports: Doctrine\ORM\PersistentCollection {#1735 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
  -id: 635
  -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699022526 {#1722
    date: 2023-11-03 15:42:06.0 +01:00
  }
  +"title": 635
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\PostComment {#1612
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612}
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1698980683 {#1650
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1572 …}
  +nested: Doctrine\ORM\PersistentCollection {#1584 …}
  +votes: Doctrine\ORM\PersistentCollection {#1580 …}
  +reports: Doctrine\ORM\PersistentCollection {#1583 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
  -id: 629
  -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
  +editedAt: null
  +createdAt: DateTimeImmutable @1698980683 {#1667
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +"title": 629
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\PostComment {#1612
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612}
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1698980683 {#1650
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1572 …}
  +nested: Doctrine\ORM\PersistentCollection {#1584 …}
  +votes: Doctrine\ORM\PersistentCollection {#1580 …}
  +reports: Doctrine\ORM\PersistentCollection {#1583 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
  -id: 629
  -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
  +editedAt: null
  +createdAt: DateTimeImmutable @1698980683 {#1667
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +"title": 629
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\PostComment {#1612
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612}
      0 => App\Entity\PostComment {#1630
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1699021862 {#1556
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1705 …}
        +nested: Doctrine\ORM\PersistentCollection {#1629 …}
        +votes: Doctrine\ORM\PersistentCollection {#1626 …}
        +reports: Doctrine\ORM\PersistentCollection {#1618 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
        -id: 633
        -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699021862 {#1598
          date: 2023-11-03 15:31:02.0 +01:00
        }
        +"title": 633
      }
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1698980683 {#1650
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1572 …}
  +nested: Doctrine\ORM\PersistentCollection {#1584 …}
  +votes: Doctrine\ORM\PersistentCollection {#1580 …}
  +reports: Doctrine\ORM\PersistentCollection {#1583 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
  -id: 629
  -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
  +editedAt: null
  +createdAt: DateTimeImmutable @1698980683 {#1667
    date: 2023-11-03 04:04:43.0 +01:00
  }
  +"title": 629
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\PostComment {#1630
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630}
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1699021862 {#1556
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1705 …}
  +nested: Doctrine\ORM\PersistentCollection {#1629 …}
  +votes: Doctrine\ORM\PersistentCollection {#1626 …}
  +reports: Doctrine\ORM\PersistentCollection {#1618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
  -id: 633
  -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699021862 {#1598
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +"title": 633
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\PostComment {#1630
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630}
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1699021862 {#1556
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1705 …}
  +nested: Doctrine\ORM\PersistentCollection {#1629 …}
  +votes: Doctrine\ORM\PersistentCollection {#1626 …}
  +reports: Doctrine\ORM\PersistentCollection {#1618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
  -id: 633
  -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699021862 {#1598
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +"title": 633
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\PostComment {#1630
  +user: App\Entity\User {#260 …}
  +post: Proxies\__CG__\App\Entity\Post {#1559
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
    +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 {#2936
      date: 2023-11-04 04:37:14.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linux@lemmy.ml"
    ]
    +comments: Doctrine\ORM\PersistentCollection {#2937 …}
    +votes: Doctrine\ORM\PersistentCollection {#2946 …}
    +reports: Doctrine\ORM\PersistentCollection {#2948 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2980 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2976 …}
    +children: [
      1 => App\Entity\PostComment {#1721
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1726 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1728 …}
        +image: null
        +body: """
          @elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution  \n
          My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
          """
        +lang: "en"
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699022526 {#1723
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@astray@lemm.ee"
          "@elscallr@lemmy.world"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1736 …}
        +nested: Doctrine\ORM\PersistentCollection {#1737 …}
        +votes: Doctrine\ORM\PersistentCollection {#1732 …}
        +reports: Doctrine\ORM\PersistentCollection {#1735 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1729 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1719 …}
        -id: 635
        -bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699022526 {#1722
          date: 2023-11-03 15:42:06.0 +01:00
        }
        +"title": 635
      }
      2 => App\Entity\PostComment {#1612
        +user: App\Entity\User {#260 …}
        +post: Proxies\__CG__\App\Entity\Post {#1559 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
        +parent: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
        +image: null
        +body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
        +lang: "en"
        +favouriteCount: 0
        +score: 0
        +lastActive: DateTime @1698980683 {#1650
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@linux@lemmy.ml"
          "@nirogu@vivaldi.net"
          "@ursakhiin@beehaw.org"
        ]
        +isAdult: false
        +updateMark: false
        +children: Doctrine\ORM\PersistentCollection {#1572 …}
        +nested: Doctrine\ORM\PersistentCollection {#1584 …}
        +votes: Doctrine\ORM\PersistentCollection {#1580 …}
        +reports: Doctrine\ORM\PersistentCollection {#1583 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1683 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1701 …}
        -id: 629
        -bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
        +editedAt: null
        +createdAt: DateTimeImmutable @1698980683 {#1667
          date: 2023-11-03 04:04:43.0 +01:00
        }
        +"title": 629
      }
      0 => App\Entity\PostComment {#1630}
    ]
    -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 {#2935
      date: 2023-11-02 19:44:31.0 +01:00
    }
    +__isInitialized__: true
    +"title": 286
     …2
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1604 …}
  +parent: Proxies\__CG__\App\Entity\PostComment {#1611 …}
  +root: Proxies\__CG__\App\Entity\PostComment {#1574 …}
  +image: null
  +body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
  +lang: "en"
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1699021862 {#1556
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@linux@lemmy.ml"
    "@nirogu@vivaldi.net"
    "@ursakhiin@beehaw.org"
  ]
  +isAdult: false
  +updateMark: false
  +children: Doctrine\ORM\PersistentCollection {#1705 …}
  +nested: Doctrine\ORM\PersistentCollection {#1629 …}
  +votes: Doctrine\ORM\PersistentCollection {#1626 …}
  +reports: Doctrine\ORM\PersistentCollection {#1618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1597 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1731 …}
  -id: 633
  -bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699021862 {#1598
    date: 2023-11-03 15:31:02.0 +01:00
  }
  +"title": 633
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS DENIED
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_ADMIN
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED ROLE_MODERATOR
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details