1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559}
]
-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 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559}
]
-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 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559}
]
-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 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
}
App\Entity\PostComment {#1582}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\PostComment {#1465
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451
+user: Proxies\__CG__\App\Entity\User {#2458 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+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 {#2629
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2630 …}
+votes: Doctrine\ORM\PersistentCollection {#2639 …}
+reports: Doctrine\ORM\PersistentCollection {#2641 …}
+favourites: Doctrine\ORM\PersistentCollection {#2673 …}
+notifications: Doctrine\ORM\PersistentCollection {#2669 …}
+children: [
App\Entity\PostComment {#1465}
App\Entity\PostComment {#1582
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1589 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: null
+root: null
+image: null
+body: "Are you certain this isn’t a docker container you’ve logged into?"
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698974254 {#1571
date: 2023-11-03 02:17:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1573 …}
+nested: Doctrine\ORM\PersistentCollection {#1576 …}
+votes: Doctrine\ORM\PersistentCollection {#1549 …}
+reports: Doctrine\ORM\PersistentCollection {#1568 …}
+favourites: Doctrine\ORM\PersistentCollection {#1528 …}
+notifications: Doctrine\ORM\PersistentCollection {#1561 …}
-id: 625
-bodyTs: "'certain':3 'contain':9 'docker':8 'isn':5 'log':12 've':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549368"
+editedAt: DateTimeImmutable @1698974266 {#1424
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#1635
date: 2023-11-03 02:17:34.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Well, the docker command wouldn’t exist inside of a container. You could use uname to check the system info.\n
\n
How is it you don’t know this information about a system you’ve connected to?
"""
+lang: "en"
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1698984927 {#1637
date: 2023-11-03 05:15:27.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 {#1592 …}
+nested: Doctrine\ORM\PersistentCollection {#1578 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1579 …}
+favourites: Doctrine\ORM\PersistentCollection {#1581 …}
+notifications: Doctrine\ORM\PersistentCollection {#1572 …}
-id: 630
-bodyTs: "'check':17 'command':4 'connect':35 'contain':11 'could':13 'docker':3 'exist':7 'info':20 'inform':29 'insid':8 'know':27 'system':19,32 'unam':15 'use':14 've':34 'well':1 'wouldn':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1552614"
+editedAt: null
+createdAt: DateTimeImmutable @1698984927 {#1644
date: 2023-11-03 05:15:27.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1437 …2}
App\Entity\PostComment {#1559
+user: App\Entity\User {#265 …}
+post: Proxies\__CG__\App\Entity\Post {#1451 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1548 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1564 …}
+image: null
+body: "If everything on the machine is owned by root and does not provide global read or execute permissions then a new user would not be able to access it without being in the root group. Assuming the files have group permissions set at all anyways."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698974215 {#1586
date: 2023-11-03 02:16:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 624
-bodyTs: "'abl':26 'access':28 'anyway':45 'assum':36 'everyth':2 'execut':17 'file':38 'global':14 'group':35,40 'machin':5 'new':21 'own':7 'permiss':18,41 'provid':13 'read':15 'root':9,34 'set':42 'user':22 'without':30 'would':23"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1549355"
+editedAt: null
+createdAt: DateTimeImmutable @1698974215 {#1587
date: 2023-11-03 02:16:55.0 +01:00
}
}
]
-id: 286
-bodyTs: "'advanc':103 'anyon':95 'aw':19 'block':65 'break':54 'command':2,16,31,73 'disabl':67 'everyon':8 'execut':35,40 'exist':26,81 'hi':7 'instanc':20,24 'know':96 'linux@lemmy.ml':104 'machin':52 'mention':77 'might':53 'mpirun':41 'not-root':4 'option':93 'particular':23 'privileg':38,70 'recommend':45 'root':6,28,37,84 'run':1,14,47,75 'sudo':49,69,88 'suppos':87 'thank':101 'u':89 'user':29,80 'way':63 'wonder':58 'work':10"
+upVotes: 0
+downVotes: 0
+ranking: 1699037071
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342431186356628"
+editedAt: null
+createdAt: DateTimeImmutable @1698950671 {#2628
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1439 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1433 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1437 …2}
+image: null
+body: """
It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.\n
\n
If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699031117 {#1756
date: 2023-11-03 18:05:17.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 {#1428 …}
+nested: Doctrine\ORM\PersistentCollection {#1441 …}
+votes: Doctrine\ORM\PersistentCollection {#1456 …}
+reports: Doctrine\ORM\PersistentCollection {#1788 …}
+favourites: Doctrine\ORM\PersistentCollection {#1656 …}
+notifications: Doctrine\ORM\PersistentCollection {#1655 …}
-id: 634
-bodyTs: "'also':49 'amazon':6 'base':53 'behavior':18 'contain':12,35,46 'creat':38 'describ':21 'docker':11,34 'environ':29 'extrem':23 'full':27 'imag':54 'instanc':7,40 'isn':42 'like':44,51 'linux':28 'might':55 'normal':31 'odd':24 'poor':57 'set':58 'sound':50"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/1556211"
+editedAt: null
+createdAt: DateTimeImmutable @1699031117 {#1634
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|