1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
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
|
Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
}
App\Entity\PostComment {#1549}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\PostComment {#1422
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464
+user: Proxies\__CG__\App\Entity\User {#2471 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+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 {#2654
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#2655 …}
+votes: Doctrine\ORM\PersistentCollection {#2664 …}
+reports: Doctrine\ORM\PersistentCollection {#2666 …}
+favourites: Doctrine\ORM\PersistentCollection {#2698 …}
+notifications: Doctrine\ORM\PersistentCollection {#2694 …}
+children: [
App\Entity\PostComment {#1422}
App\Entity\PostComment {#1549
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1576 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698
+user: App\Entity\User {#264 …}
+post: Proxies\__CG__\App\Entity\Post {#1464 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: null
+root: null
+image: null
+body: """
There are no other users at all? Seems like a lot of stuff simply wouldn’t work without a single non-root user, not to mention this is a pretty bad security stance considering the only user is the most powerful one.\n
\n
If you do have another user on the instance you can su as that other user, nobody for example, from the root account. Run ‘cat /etc/passwd’ and you will see every available user on the instance.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698952741 {#1551
date: 2023-11-02 20:19:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1566 …}
+nested: Doctrine\ORM\PersistentCollection {#1562 …}
+votes: Doctrine\ORM\PersistentCollection {#1554 …}
+reports: Doctrine\ORM\PersistentCollection {#1556 …}
+favourites: Doctrine\ORM\PersistentCollection {#1555 …}
+notifications: Doctrine\ORM\PersistentCollection {#1620 …}
-id: 610
-bodyTs: "'/etc/passwd':69 'account':66 'anoth':48 'avail':75 'bad':32 'cat':68 'consid':35 'everi':74 'exampl':62 'instanc':52,79 'like':9 'lot':11 'mention':27 'nobodi':60 'non':22 'non-root':21 'one':43 'power':42 'pretti':31 'root':23,65 'run':67 'secur':33 'see':73 'seem':8 'simpli':14 'singl':20 'stanc':34 'stuff':13 'su':55 'user':5,24,38,49,59,76 'without':18 'work':17 'wouldn':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4462884"
+editedAt: null
+createdAt: DateTimeImmutable @1698952741 {#1427
date: 2023-11-02 20:19:01.0 +01:00
}
+__isInitialized__: true
…2
}
+image: null
+body: """
Unfortunately hiding sudo from root would lead to much greater issues. You can remove sudo privileges from a non-root user, but I don’t think there’s a feasible way to do so for root.\n
\n
Does your new user have a proper shell setup? If you type bash in the new user’s terminal does it give you anything?
"""
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698957849 {#1447
date: 2023-11-02 21:44:09.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 {#1586 …}
+nested: Doctrine\ORM\PersistentCollection {#1560 …}
+votes: Doctrine\ORM\PersistentCollection {#1526 …}
+reports: Doctrine\ORM\PersistentCollection {#1527 …}
+favourites: Doctrine\ORM\PersistentCollection {#1525 …}
+notifications: Doctrine\ORM\PersistentCollection {#1550 …}
-id: 617
-bodyTs: "'anyth':61 'bash':50 'feasibl':31 'give':59 'greater':10 'hide':2 'issu':11 'lead':7 'much':9 'new':40,53 'non':20 'non-root':19 'privileg':16 'proper':44 'remov':14 'root':5,21,37 'setup':46 'shell':45 'sudo':3,15 'termin':56 'think':27 'type':49 'unfortun':1 'user':22,41,54 'way':32 'would':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4464825"
+editedAt: null
+createdAt: DateTimeImmutable @1698957849 {#1423
date: 2023-11-02 21:44:09.0 +01:00
}
}
Proxies\__CG__\App\Entity\PostComment {#1698 …2}
]
-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 {#2653
date: 2023-11-02 19:44:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1695 …}
+parent: Proxies\__CG__\App\Entity\PostComment {#1690 …}
+root: Proxies\__CG__\App\Entity\PostComment {#1698 …2}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#1785
date: 2023-11-03 03:28:16.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astraeus@programming.dev"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#1709 …}
+nested: Doctrine\ORM\PersistentCollection {#1458 …}
+votes: Doctrine\ORM\PersistentCollection {#1428 …}
+reports: Doctrine\ORM\PersistentCollection {#1765 …}
+favourites: Doctrine\ORM\PersistentCollection {#1584 …}
+notifications: Doctrine\ORM\PersistentCollection {#1583 …}
-id: 627
-bodyTs: "'noth':3 'root':5 'way':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/4476090"
+editedAt: null
+createdAt: DateTimeImmutable @1698978496 {#1413
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|