1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705}
0 => App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617}
]
-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 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617}
]
-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 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\PostComment {#1617
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527
+user: App\Entity\User {#263 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+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 {#2925
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2926 …}
+votes: Doctrine\ORM\PersistentCollection {#2935 …}
+reports: Doctrine\ORM\PersistentCollection {#2937 …}
+favourites: Doctrine\ORM\PersistentCollection {#2969 …}
+notifications: Doctrine\ORM\PersistentCollection {#2965 …}
+children: [
2 => App\Entity\PostComment {#1595
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1666
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 {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1571 …}
+reports: Doctrine\ORM\PersistentCollection {#1593 …}
+favourites: Doctrine\ORM\PersistentCollection {#1604 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-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 {#1677
date: 2023-11-03 04:04:43.0 +01:00
}
+"title": 629
}
1 => App\Entity\PostComment {#1705
+user: App\Entity\User {#263 …}
+post: Proxies\__CG__\App\Entity\Post {#1527 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1692 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1579 …}
+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 {#1563
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 {#1689 …}
+nested: Doctrine\ORM\PersistentCollection {#1711 …}
+votes: Doctrine\ORM\PersistentCollection {#1611 …}
+reports: Doctrine\ORM\PersistentCollection {#1630 …}
+favourites: Doctrine\ORM\PersistentCollection {#1628 …}
+notifications: Doctrine\ORM\PersistentCollection {#1599 …}
-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 {#1795
date: 2023-11-03 15:31:02.0 +01:00
}
+"title": 633
}
0 => App\Entity\PostComment {#1617}
]
-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 {#2924
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
+"title": 286
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1557 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1731 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1725 …}
+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 {#1625
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 {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-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 {#1597
date: 2023-11-03 15:42:06.0 +01:00
}
+"title": 635
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
18 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|