1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\PostComment {#4018
+user: App\Entity\User {#4038 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "The easiest way to create a new user"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698984549 {#4030
date: 2023-11-03 05:09:09.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4016 …}
+nested: Doctrine\ORM\PersistentCollection {#4014 …}
+votes: Doctrine\ORM\PersistentCollection {#4012 …}
+reports: Doctrine\ORM\PersistentCollection {#4010 …}
+favourites: Doctrine\ORM\PersistentCollection {#4058 …}
+notifications: Doctrine\ORM\PersistentCollection {#3980 …}
-id: 628
-bodyTs: "'creat':5 'easiest':2 'new':7 'user':8 'way':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/4309471"
+editedAt: null
+createdAt: DateTimeImmutable @1698984549 {#3983
date: 2023-11-03 05:09:09.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\PostComment {#4018
+user: App\Entity\User {#4038 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "The easiest way to create a new user"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698984549 {#4030
date: 2023-11-03 05:09:09.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4016 …}
+nested: Doctrine\ORM\PersistentCollection {#4014 …}
+votes: Doctrine\ORM\PersistentCollection {#4012 …}
+reports: Doctrine\ORM\PersistentCollection {#4010 …}
+favourites: Doctrine\ORM\PersistentCollection {#4058 …}
+notifications: Doctrine\ORM\PersistentCollection {#3980 …}
-id: 628
-bodyTs: "'creat':5 'easiest':2 'new':7 'user':8 'way':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/4309471"
+editedAt: null
+createdAt: DateTimeImmutable @1698984549 {#3983
date: 2023-11-03 05:09:09.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\PostComment {#4018
+user: App\Entity\User {#4038 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "The easiest way to create a new user"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698984549 {#4030
date: 2023-11-03 05:09:09.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4016 …}
+nested: Doctrine\ORM\PersistentCollection {#4014 …}
+votes: Doctrine\ORM\PersistentCollection {#4012 …}
+reports: Doctrine\ORM\PersistentCollection {#4010 …}
+favourites: Doctrine\ORM\PersistentCollection {#4058 …}
+notifications: Doctrine\ORM\PersistentCollection {#3980 …}
-id: 628
-bodyTs: "'creat':5 'easiest':2 'new':7 'user':8 'way':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/4309471"
+editedAt: null
+createdAt: DateTimeImmutable @1698984549 {#3983
date: 2023-11-03 05:09:09.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\PostComment {#4807
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4805
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 {#4808 …}
+nested: Doctrine\ORM\PersistentCollection {#4810 …}
+votes: Doctrine\ORM\PersistentCollection {#4812 …}
+reports: Doctrine\ORM\PersistentCollection {#4814 …}
+favourites: Doctrine\ORM\PersistentCollection {#4816 …}
+notifications: Doctrine\ORM\PersistentCollection {#4818 …}
-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 {#4806
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\PostComment {#4807
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4805
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 {#4808 …}
+nested: Doctrine\ORM\PersistentCollection {#4810 …}
+votes: Doctrine\ORM\PersistentCollection {#4812 …}
+reports: Doctrine\ORM\PersistentCollection {#4814 …}
+favourites: Doctrine\ORM\PersistentCollection {#4816 …}
+notifications: Doctrine\ORM\PersistentCollection {#4818 …}
-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 {#4806
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\PostComment {#4807
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4740
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4656
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4558
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4102
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4096
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 {#4103 …}
+nested: Doctrine\ORM\PersistentCollection {#4105 …}
+votes: Doctrine\ORM\PersistentCollection {#4107 …}
+reports: Doctrine\ORM\PersistentCollection {#4109 …}
+favourites: Doctrine\ORM\PersistentCollection {#4111 …}
+notifications: Doctrine\ORM\PersistentCollection {#4113 …}
-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 {#4097
date: 2023-11-03 02:17:46.0 +01:00
}
+createdAt: DateTimeImmutable @1698974254 {#4098
date: 2023-11-03 02:17:34.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, didn't consider it. Just checked and the "docker" command doesn't even exist so I assume that is not the case. Do you know if the is any other way I can be certain?"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698980683 {#4556
date: 2023-11-03 04:04:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4559 …}
+nested: Doctrine\ORM\PersistentCollection {#4561 …}
+votes: Doctrine\ORM\PersistentCollection {#4563 …}
+reports: Doctrine\ORM\PersistentCollection {#4565 …}
+favourites: Doctrine\ORM\PersistentCollection {#4567 …}
+notifications: Doctrine\ORM\PersistentCollection {#4569 …}
-id: 629
-bodyTs: "'assum':19 'case':24 'certain':37 'check':8 'command':12 'consid':5 'didn':3 'docker':11 'doesn':13 'even':15 'exist':16 'honest':2 'know':27 'ursakhiin@beehaw.org':1 'way':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111344398050955313"
+editedAt: null
+createdAt: DateTimeImmutable @1698980683 {#4557
date: 2023-11-03 04:04:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4654
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 {#4657 …}
+nested: Doctrine\ORM\PersistentCollection {#4659 …}
+votes: Doctrine\ORM\PersistentCollection {#4661 …}
+reports: Doctrine\ORM\PersistentCollection {#4663 …}
+favourites: Doctrine\ORM\PersistentCollection {#4665 …}
+notifications: Doctrine\ORM\PersistentCollection {#4667 …}
-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 {#4655
date: 2023-11-03 05:15:27.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+image: null
+body: "@ursakhiin@beehaw.org honestly, I didn't even know an aws instance could be a docker image. Everything I did was creating the instance normally so I assumed it was just a regular vm. But already double checked and it is not a docker image, so no problem there 🙂"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699021862 {#4738
date: 2023-11-03 15:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@ursakhiin@beehaw.org"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4741 …}
+nested: Doctrine\ORM\PersistentCollection {#4743 …}
+votes: Doctrine\ORM\PersistentCollection {#4745 …}
+reports: Doctrine\ORM\PersistentCollection {#4747 …}
+favourites: Doctrine\ORM\PersistentCollection {#4749 …}
+notifications: Doctrine\ORM\PersistentCollection {#4751 …}
-id: 633
-bodyTs: "'alreadi':34 'assum':26 'aw':9 'check':36 'could':11 'creat':20 'didn':4 'docker':14,42 'doubl':35 'even':6 'everyth':16 'honest':2 'imag':15,43 'instanc':10,22 'know':7 'normal':23 'problem':46 'regular':31 'ursakhiin@beehaw.org':1 'vm':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347096751430470"
+editedAt: null
+createdAt: DateTimeImmutable @1699021862 {#4739
date: 2023-11-03 15:31:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4102}
+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 {#4805
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 {#4808 …}
+nested: Doctrine\ORM\PersistentCollection {#4810 …}
+votes: Doctrine\ORM\PersistentCollection {#4812 …}
+reports: Doctrine\ORM\PersistentCollection {#4814 …}
+favourites: Doctrine\ORM\PersistentCollection {#4816 …}
+notifications: Doctrine\ORM\PersistentCollection {#4818 …}
-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 {#4806
date: 2023-11-03 18:05:17.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\PostComment {#4175
+user: App\Entity\User {#4188 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "You probably want to run the command as `nobody`, the special system user who daemons become when they don’t want to have root permissions."
+lang: "en"
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1698973705 {#4170
date: 2023-11-03 02:08:25.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4176 …}
+nested: Doctrine\ORM\PersistentCollection {#4178 …}
+votes: Doctrine\ORM\PersistentCollection {#4180 …}
+reports: Doctrine\ORM\PersistentCollection {#4182 …}
+favourites: Doctrine\ORM\PersistentCollection {#4184 …}
+notifications: Doctrine\ORM\PersistentCollection {#4186 …}
-id: 622
-bodyTs: "'becom':16 'command':7 'daemon':15 'nobodi':9 'permiss':25 'probabl':2 'root':24 'run':5 'special':11 'system':12 'user':13 'want':3,21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/5100757"
+editedAt: null
+createdAt: DateTimeImmutable @1698973705 {#4171
date: 2023-11-03 02:08:25.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\PostComment {#4175
+user: App\Entity\User {#4188 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "You probably want to run the command as `nobody`, the special system user who daemons become when they don’t want to have root permissions."
+lang: "en"
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1698973705 {#4170
date: 2023-11-03 02:08:25.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4176 …}
+nested: Doctrine\ORM\PersistentCollection {#4178 …}
+votes: Doctrine\ORM\PersistentCollection {#4180 …}
+reports: Doctrine\ORM\PersistentCollection {#4182 …}
+favourites: Doctrine\ORM\PersistentCollection {#4184 …}
+notifications: Doctrine\ORM\PersistentCollection {#4186 …}
-id: 622
-bodyTs: "'becom':16 'command':7 'daemon':15 'nobodi':9 'permiss':25 'probabl':2 'root':24 'run':5 'special':11 'system':12 'user':13 'want':3,21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/5100757"
+editedAt: null
+createdAt: DateTimeImmutable @1698973705 {#4171
date: 2023-11-03 02:08:25.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\PostComment {#4175
+user: App\Entity\User {#4188 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "You probably want to run the command as `nobody`, the special system user who daemons become when they don’t want to have root permissions."
+lang: "en"
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1698973705 {#4170
date: 2023-11-03 02:08:25.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4176 …}
+nested: Doctrine\ORM\PersistentCollection {#4178 …}
+votes: Doctrine\ORM\PersistentCollection {#4180 …}
+reports: Doctrine\ORM\PersistentCollection {#4182 …}
+favourites: Doctrine\ORM\PersistentCollection {#4184 …}
+notifications: Doctrine\ORM\PersistentCollection {#4186 …}
-id: 622
-bodyTs: "'becom':16 'command':7 'daemon':15 'nobodi':9 'permiss':25 'probabl':2 'root':24 'run':5 'special':11 'system':12 'user':13 'want':3,21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/5100757"
+editedAt: null
+createdAt: DateTimeImmutable @1698973705 {#4171
date: 2023-11-03 02:08:25.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\PostComment {#4248
+user: App\Entity\User {#4261 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
The system is broken. Wipe it and start again. I could imagine a system with no configured root but root only is just a security nightmare and not worth using as a starting point.\n
\n
I really hope that machine isn’t exposed to the internet…\n
\n
In theory a root application can drop capabilities when it starts up and remain root pid, but it’s not that common… it’s used for certain system apps that require root to increase security. It is not a replacement for unprivileged users.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698957732 {#4243
date: 2023-11-02 21:42:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4249 …}
+nested: Doctrine\ORM\PersistentCollection {#4251 …}
+votes: Doctrine\ORM\PersistentCollection {#4253 …}
+reports: Doctrine\ORM\PersistentCollection {#4255 …}
+favourites: Doctrine\ORM\PersistentCollection {#4257 …}
+notifications: Doctrine\ORM\PersistentCollection {#4259 …}
-id: 615
-bodyTs: "'app':74 'applic':50 'broken':4 'capabl':53 'certain':72 'common':67 'configur':17 'could':11 'drop':52 'expos':42 'hope':37 'imagin':12 'increas':79 'internet':45 'isn':40 'machin':39 'nightmar':26 'pid':61 'point':34 'realli':36 'remain':59 'replac':85 'requir':76 'root':18,20,49,60,77 'secur':25,80 'start':8,33,56 'system':2,14,73 'theori':47 'unprivileg':87 'use':30,70 'user':88 'wipe':5 'worth':29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.hoyle.me.uk/comment/375008"
+editedAt: null
+createdAt: DateTimeImmutable @1698957732 {#4244
date: 2023-11-02 21:42:12.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\PostComment {#4248
+user: App\Entity\User {#4261 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
The system is broken. Wipe it and start again. I could imagine a system with no configured root but root only is just a security nightmare and not worth using as a starting point.\n
\n
I really hope that machine isn’t exposed to the internet…\n
\n
In theory a root application can drop capabilities when it starts up and remain root pid, but it’s not that common… it’s used for certain system apps that require root to increase security. It is not a replacement for unprivileged users.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698957732 {#4243
date: 2023-11-02 21:42:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4249 …}
+nested: Doctrine\ORM\PersistentCollection {#4251 …}
+votes: Doctrine\ORM\PersistentCollection {#4253 …}
+reports: Doctrine\ORM\PersistentCollection {#4255 …}
+favourites: Doctrine\ORM\PersistentCollection {#4257 …}
+notifications: Doctrine\ORM\PersistentCollection {#4259 …}
-id: 615
-bodyTs: "'app':74 'applic':50 'broken':4 'capabl':53 'certain':72 'common':67 'configur':17 'could':11 'drop':52 'expos':42 'hope':37 'imagin':12 'increas':79 'internet':45 'isn':40 'machin':39 'nightmar':26 'pid':61 'point':34 'realli':36 'remain':59 'replac':85 'requir':76 'root':18,20,49,60,77 'secur':25,80 'start':8,33,56 'system':2,14,73 'theori':47 'unprivileg':87 'use':30,70 'user':88 'wipe':5 'worth':29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.hoyle.me.uk/comment/375008"
+editedAt: null
+createdAt: DateTimeImmutable @1698957732 {#4244
date: 2023-11-02 21:42:12.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\PostComment {#4248
+user: App\Entity\User {#4261 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
The system is broken. Wipe it and start again. I could imagine a system with no configured root but root only is just a security nightmare and not worth using as a starting point.\n
\n
I really hope that machine isn’t exposed to the internet…\n
\n
In theory a root application can drop capabilities when it starts up and remain root pid, but it’s not that common… it’s used for certain system apps that require root to increase security. It is not a replacement for unprivileged users.
"""
+lang: "en"
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1698957732 {#4243
date: 2023-11-02 21:42:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4249 …}
+nested: Doctrine\ORM\PersistentCollection {#4251 …}
+votes: Doctrine\ORM\PersistentCollection {#4253 …}
+reports: Doctrine\ORM\PersistentCollection {#4255 …}
+favourites: Doctrine\ORM\PersistentCollection {#4257 …}
+notifications: Doctrine\ORM\PersistentCollection {#4259 …}
-id: 615
-bodyTs: "'app':74 'applic':50 'broken':4 'capabl':53 'certain':72 'common':67 'configur':17 'could':11 'drop':52 'expos':42 'hope':37 'imagin':12 'increas':79 'internet':45 'isn':40 'machin':39 'nightmar':26 'pid':61 'point':34 'realli':36 'remain':59 'replac':85 'requir':76 'root':18,20,49,60,77 'secur':25,80 'start':8,33,56 'system':2,14,73 'theori':47 'unprivileg':87 'use':30,70 'user':88 'wipe':5 'worth':29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.hoyle.me.uk/comment/375008"
+editedAt: null
+createdAt: DateTimeImmutable @1698957732 {#4244
date: 2023-11-02 21:42:12.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
} |
|
Show voter details
|
45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
46 |
DENIED
|
moderate
|
App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
47 |
DENIED
|
edit
|
App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
48 |
DENIED
|
moderate
|
App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
} |
|
Show voter details
|
49 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
50 |
DENIED
|
moderate
|
App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
51 |
DENIED
|
edit
|
App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
52 |
DENIED
|
moderate
|
App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
} |
|
Show voter details
|
53 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
54 |
DENIED
|
moderate
|
App\Entity\PostComment {#4792
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#4790
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 {#4793 …}
+nested: Doctrine\ORM\PersistentCollection {#4795 …}
+votes: Doctrine\ORM\PersistentCollection {#4797 …}
+reports: Doctrine\ORM\PersistentCollection {#4799 …}
+favourites: Doctrine\ORM\PersistentCollection {#4801 …}
+notifications: Doctrine\ORM\PersistentCollection {#4803 …}
-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 {#4791
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|
55 |
DENIED
|
edit
|
App\Entity\PostComment {#4792
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#4790
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 {#4793 …}
+nested: Doctrine\ORM\PersistentCollection {#4795 …}
+votes: Doctrine\ORM\PersistentCollection {#4797 …}
+reports: Doctrine\ORM\PersistentCollection {#4799 …}
+favourites: Doctrine\ORM\PersistentCollection {#4801 …}
+notifications: Doctrine\ORM\PersistentCollection {#4803 …}
-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 {#4791
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|
56 |
DENIED
|
moderate
|
App\Entity\PostComment {#4792
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4709
+user: App\Entity\User {#4115 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4610
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4608
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 {#4611 …}
+nested: Doctrine\ORM\PersistentCollection {#4613 …}
+votes: Doctrine\ORM\PersistentCollection {#4615 …}
+reports: Doctrine\ORM\PersistentCollection {#4617 …}
+favourites: Doctrine\ORM\PersistentCollection {#4619 …}
+notifications: Doctrine\ORM\PersistentCollection {#4621 …}
-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 {#4609
date: 2023-11-02 21:44:09.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+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 {#4707
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 {#4710 …}
+nested: Doctrine\ORM\PersistentCollection {#4712 …}
+votes: Doctrine\ORM\PersistentCollection {#4714 …}
+reports: Doctrine\ORM\PersistentCollection {#4716 …}
+favourites: Doctrine\ORM\PersistentCollection {#4718 …}
+notifications: Doctrine\ORM\PersistentCollection {#4720 …}
-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 {#4708
date: 2023-11-03 02:16:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "It’s nothing but root all the way down"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698978496 {#4790
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 {#4793 …}
+nested: Doctrine\ORM\PersistentCollection {#4795 …}
+votes: Doctrine\ORM\PersistentCollection {#4797 …}
+reports: Doctrine\ORM\PersistentCollection {#4799 …}
+favourites: Doctrine\ORM\PersistentCollection {#4801 …}
+notifications: Doctrine\ORM\PersistentCollection {#4803 …}
-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 {#4791
date: 2023-11-03 03:28:16.0 +01:00
}
} |
|
Show voter details
|
57 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
58 |
DENIED
|
moderate
|
App\Entity\PostComment {#4625
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "I don’t think you understand what root is. By definition it has those permissions because it’s root."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698995294 {#4623
date: 2023-11-03 08:08:14.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 {#4627 …}
+nested: Doctrine\ORM\PersistentCollection {#4629 …}
+votes: Doctrine\ORM\PersistentCollection {#4631 …}
+reports: Doctrine\ORM\PersistentCollection {#4633 …}
+favourites: Doctrine\ORM\PersistentCollection {#4635 …}
+notifications: Doctrine\ORM\PersistentCollection {#4637 …}
-id: 632
-bodyTs: "'definit':11 'permiss':15 'root':8,19 'think':4 'understand':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028456"
+editedAt: null
+createdAt: DateTimeImmutable @1698995294 {#4624
date: 2023-11-03 08:08:14.0 +01:00
}
} |
|
Show voter details
|
59 |
DENIED
|
edit
|
App\Entity\PostComment {#4625
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "I don’t think you understand what root is. By definition it has those permissions because it’s root."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698995294 {#4623
date: 2023-11-03 08:08:14.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 {#4627 …}
+nested: Doctrine\ORM\PersistentCollection {#4629 …}
+votes: Doctrine\ORM\PersistentCollection {#4631 …}
+reports: Doctrine\ORM\PersistentCollection {#4633 …}
+favourites: Doctrine\ORM\PersistentCollection {#4635 …}
+notifications: Doctrine\ORM\PersistentCollection {#4637 …}
-id: 632
-bodyTs: "'definit':11 'permiss':15 'root':8,19 'think':4 'understand':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028456"
+editedAt: null
+createdAt: DateTimeImmutable @1698995294 {#4624
date: 2023-11-03 08:08:14.0 +01:00
}
} |
|
Show voter details
|
60 |
DENIED
|
moderate
|
App\Entity\PostComment {#4625
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4543
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4321
+user: App\Entity\User {#4334 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+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 {#4316
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 {#4322 …}
+nested: Doctrine\ORM\PersistentCollection {#4324 …}
+votes: Doctrine\ORM\PersistentCollection {#4326 …}
+reports: Doctrine\ORM\PersistentCollection {#4328 …}
+favourites: Doctrine\ORM\PersistentCollection {#4330 …}
+notifications: Doctrine\ORM\PersistentCollection {#4332 …}
-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 {#4317
date: 2023-11-02 20:19:01.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: """
@astraeus@programming.dev yep, completely agree on the security issues, that is a mistake that should be fixed. But for the moment I confirmed that root is the only user, and every file and program in the instance can only be used by root (I just created a new user and tried to run the command with su -c but got a lot of permission denials and command not found) \n
If I could hide or disable my own sudo permissions that would save me a lot of work, but I'm starting to think that something like that doesn't exist 🙁
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698954643 {#4541
date: 2023-11-02 20:50:43.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 {#4544 …}
+nested: Doctrine\ORM\PersistentCollection {#4546 …}
+votes: Doctrine\ORM\PersistentCollection {#4548 …}
+reports: Doctrine\ORM\PersistentCollection {#4550 …}
+favourites: Doctrine\ORM\PersistentCollection {#4552 …}
+notifications: Doctrine\ORM\PersistentCollection {#4554 …}
-id: 616
-bodyTs: "'agre':4 'astraeus@programming.dev':1 'c':57 'command':54,66 'complet':3 'confirm':22 'could':71 'creat':45 'denial':64 'disabl':74 'doesn':97 'everi':30 'exist':99 'file':31 'fix':16 'found':68 'got':59 'hide':72 'instanc':36 'issu':8 'like':95 'lot':61,84 'm':89 'mistak':12 'moment':20 'new':47 'permiss':63,78 'program':33 'root':24,42 'run':52 'save':81 'secur':7 'someth':94 'start':90 'su':56 'sudo':77 'think':92 'tri':50 'use':40 'user':28,48 'work':86 'would':80 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342691529612536"
+editedAt: null
+createdAt: DateTimeImmutable @1698954643 {#4542
date: 2023-11-02 20:50:43.0 +01:00
}
}
+root: App\Entity\PostComment {#4321}
+image: null
+body: "I don’t think you understand what root is. By definition it has those permissions because it’s root."
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698995294 {#4623
date: 2023-11-03 08:08:14.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 {#4627 …}
+nested: Doctrine\ORM\PersistentCollection {#4629 …}
+votes: Doctrine\ORM\PersistentCollection {#4631 …}
+reports: Doctrine\ORM\PersistentCollection {#4633 …}
+favourites: Doctrine\ORM\PersistentCollection {#4635 …}
+notifications: Doctrine\ORM\PersistentCollection {#4637 …}
-id: 632
-bodyTs: "'definit':11 'permiss':15 'root':8,19 'think':4 'understand':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028456"
+editedAt: null
+createdAt: DateTimeImmutable @1698995294 {#4624
date: 2023-11-03 08:08:14.0 +01:00
}
} |
|
Show voter details
|
61 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
62 |
DENIED
|
moderate
|
App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
} |
|
Show voter details
|
63 |
DENIED
|
edit
|
App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
} |
|
Show voter details
|
64 |
DENIED
|
moderate
|
App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
} |
|
Show voter details
|
65 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
66 |
DENIED
|
moderate
|
App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
} |
|
Show voter details
|
67 |
DENIED
|
edit
|
App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
} |
|
Show voter details
|
68 |
DENIED
|
moderate
|
App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
} |
|
Show voter details
|
69 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
70 |
DENIED
|
moderate
|
App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
} |
|
Show voter details
|
71 |
DENIED
|
edit
|
App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
} |
|
Show voter details
|
72 |
DENIED
|
moderate
|
App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
} |
|
Show voter details
|
73 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
74 |
DENIED
|
moderate
|
App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
} |
|
Show voter details
|
75 |
DENIED
|
edit
|
App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
} |
|
Show voter details
|
76 |
DENIED
|
moderate
|
App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
} |
|
Show voter details
|
77 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
78 |
DENIED
|
moderate
|
App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
} |
|
Show voter details
|
79 |
DENIED
|
edit
|
App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
} |
|
Show voter details
|
80 |
DENIED
|
moderate
|
App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
} |
|
Show voter details
|
81 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
82 |
DENIED
|
moderate
|
App\Entity\PostComment {#4841
+user: Proxies\__CG__\App\Entity\User {#4844 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You’re not wrong for trying to find another solution. Unfortunately, I think, in this case, your up against fundamental Linux permissions. One possibility would be running the work in a container with reduced capabilities but, it really is going to depend on what behaviors you’re trying to avoid.\n
\n
Overall, it’s likely a better idea to re-install because noone should be running stuff directly as root in the majority of production scenarios.
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698976000 {#4840
date: 2023-11-03 02:46:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4848 …}
+nested: Doctrine\ORM\PersistentCollection {#4850 …}
+votes: Doctrine\ORM\PersistentCollection {#4846 …}
+reports: Doctrine\ORM\PersistentCollection {#4852 …}
+favourites: Doctrine\ORM\PersistentCollection {#4854 …}
+notifications: Doctrine\ORM\PersistentCollection {#4856 …}
-id: 626
-bodyTs: "'anoth':9 'avoid':50 'behavior':45 'better':56 'capabl':35 'case':16 'contain':32 'depend':42 'direct':68 'find':8 'fundament':20 'go':40 'idea':57 'instal':61 'like':54 'linux':21 'major':73 'noon':63 'one':23 'overal':51 'permiss':22 'possibl':24 'product':75 're':2,47,60 're-instal':59 'realli':38 'reduc':34 'root':70 'run':27,66 'scenario':76 'solut':10 'stuff':67 'think':13 'tri':6,48 'unfortun':11 'work':29 'would':25 'wrong':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/5037059"
+editedAt: null
+createdAt: DateTimeImmutable @1698976000 {#4837
date: 2023-11-03 02:46:40.0 +01:00
}
} |
|
Show voter details
|
83 |
DENIED
|
edit
|
App\Entity\PostComment {#4841
+user: Proxies\__CG__\App\Entity\User {#4844 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You’re not wrong for trying to find another solution. Unfortunately, I think, in this case, your up against fundamental Linux permissions. One possibility would be running the work in a container with reduced capabilities but, it really is going to depend on what behaviors you’re trying to avoid.\n
\n
Overall, it’s likely a better idea to re-install because noone should be running stuff directly as root in the majority of production scenarios.
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698976000 {#4840
date: 2023-11-03 02:46:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4848 …}
+nested: Doctrine\ORM\PersistentCollection {#4850 …}
+votes: Doctrine\ORM\PersistentCollection {#4846 …}
+reports: Doctrine\ORM\PersistentCollection {#4852 …}
+favourites: Doctrine\ORM\PersistentCollection {#4854 …}
+notifications: Doctrine\ORM\PersistentCollection {#4856 …}
-id: 626
-bodyTs: "'anoth':9 'avoid':50 'behavior':45 'better':56 'capabl':35 'case':16 'contain':32 'depend':42 'direct':68 'find':8 'fundament':20 'go':40 'idea':57 'instal':61 'like':54 'linux':21 'major':73 'noon':63 'one':23 'overal':51 'permiss':22 'possibl':24 'product':75 're':2,47,60 're-instal':59 'realli':38 'reduc':34 'root':70 'run':27,66 'scenario':76 'solut':10 'stuff':67 'think':13 'tri':6,48 'unfortun':11 'work':29 'would':25 'wrong':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/5037059"
+editedAt: null
+createdAt: DateTimeImmutable @1698976000 {#4837
date: 2023-11-03 02:46:40.0 +01:00
}
} |
|
Show voter details
|
84 |
DENIED
|
moderate
|
App\Entity\PostComment {#4841
+user: Proxies\__CG__\App\Entity\User {#4844 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You’re not wrong for trying to find another solution. Unfortunately, I think, in this case, your up against fundamental Linux permissions. One possibility would be running the work in a container with reduced capabilities but, it really is going to depend on what behaviors you’re trying to avoid.\n
\n
Overall, it’s likely a better idea to re-install because noone should be running stuff directly as root in the majority of production scenarios.
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1698976000 {#4840
date: 2023-11-03 02:46:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4848 …}
+nested: Doctrine\ORM\PersistentCollection {#4850 …}
+votes: Doctrine\ORM\PersistentCollection {#4846 …}
+reports: Doctrine\ORM\PersistentCollection {#4852 …}
+favourites: Doctrine\ORM\PersistentCollection {#4854 …}
+notifications: Doctrine\ORM\PersistentCollection {#4856 …}
-id: 626
-bodyTs: "'anoth':9 'avoid':50 'behavior':45 'better':56 'capabl':35 'case':16 'contain':32 'depend':42 'direct':68 'find':8 'fundament':20 'go':40 'idea':57 'instal':61 'like':54 'linux':21 'major':73 'noon':63 'one':23 'overal':51 'permiss':22 'possibl':24 'product':75 're':2,47,60 're-instal':59 'realli':38 'reduc':34 'root':70 'run':27,66 'scenario':76 'solut':10 'stuff':67 'think':13 'tri':6,48 'unfortun':11 'work':29 'would':25 'wrong':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/5037059"
+editedAt: null
+createdAt: DateTimeImmutable @1698976000 {#4837
date: 2023-11-03 02:46:40.0 +01:00
}
} |
|
Show voter details
|
85 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
86 |
DENIED
|
moderate
|
App\Entity\PostComment {#4860
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
\n
Keep at it!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698969553 {#4858
date: 2023-11-03 00:59:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4861 …}
+nested: Doctrine\ORM\PersistentCollection {#4863 …}
+votes: Doctrine\ORM\PersistentCollection {#4865 …}
+reports: Doctrine\ORM\PersistentCollection {#4867 …}
+favourites: Doctrine\ORM\PersistentCollection {#4869 …}
+notifications: Doctrine\ORM\PersistentCollection {#4871 …}
-id: 621
-bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4262519"
+editedAt: null
+createdAt: DateTimeImmutable @1698969553 {#4859
date: 2023-11-03 00:59:13.0 +01:00
}
} |
|
Show voter details
|
87 |
DENIED
|
edit
|
App\Entity\PostComment {#4860
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
\n
Keep at it!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698969553 {#4858
date: 2023-11-03 00:59:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4861 …}
+nested: Doctrine\ORM\PersistentCollection {#4863 …}
+votes: Doctrine\ORM\PersistentCollection {#4865 …}
+reports: Doctrine\ORM\PersistentCollection {#4867 …}
+favourites: Doctrine\ORM\PersistentCollection {#4869 …}
+notifications: Doctrine\ORM\PersistentCollection {#4871 …}
-id: 621
-bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4262519"
+editedAt: null
+createdAt: DateTimeImmutable @1698969553 {#4859
date: 2023-11-03 00:59:13.0 +01:00
}
} |
|
Show voter details
|
88 |
DENIED
|
moderate
|
App\Entity\PostComment {#4860
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4773
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4674
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "Read your other post and it seems to me that a rebuild of the system to accommodate non-root users would be my preferred solution. Trying to “work around“ issues like this are prone to break as the system is updated/changed. And you’re back to trying to figure out what’s changed and makes your script break."
+lang: "en"
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1698955906 {#4673
date: 2023-11-02 21:11:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4678 …}
+nested: Doctrine\ORM\PersistentCollection {#4684 …}
+votes: Doctrine\ORM\PersistentCollection {#4680 …}
+reports: Doctrine\ORM\PersistentCollection {#4685 …}
+favourites: Doctrine\ORM\PersistentCollection {#4687 …}
+notifications: Doctrine\ORM\PersistentCollection {#4689 …}
-id: 614
-bodyTs: "'accommod':17 'around':30 'back':46 'break':37,59 'chang':54 'figur':50 'issu':31 'like':32 'make':56 'non':19 'non-root':18 'post':4 'prefer':25 'prone':35 're':45 'read':1 'rebuild':12 'root':20 'script':58 'seem':7 'solut':26 'system':15,40 'tri':27,48 'updated/changed':42 'user':21 'work':29 'would':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256607"
+editedAt: null
+createdAt: DateTimeImmutable @1698955906 {#4670
date: 2023-11-02 21:11:46.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
@Oisteink@feddit.nl yep, that seems the right thing to do. Honestly, most of the real problem was lazyness to reconfigure everything, and that's why I published the question. But now I'm convinced that that's the only way lol \n
Thanks for the help!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698958797 {#4772
date: 2023-11-02 21:59:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4777 …}
+nested: Doctrine\ORM\PersistentCollection {#4783 …}
+votes: Doctrine\ORM\PersistentCollection {#4779 …}
+reports: Doctrine\ORM\PersistentCollection {#4784 …}
+favourites: Doctrine\ORM\PersistentCollection {#4786 …}
+notifications: Doctrine\ORM\PersistentCollection {#4788 …}
-id: 620
-bodyTs: "'convinc':33 'everyth':20 'help':44 'honest':10 'lazy':17 'lol':40 'm':32 'oisteink@feddit.nl':1 'problem':15 'publish':26 'question':28 'real':14 'reconfigur':19 'right':6 'seem':4 'thank':41 'thing':7 'way':39 'yep':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342963738833873"
+editedAt: null
+createdAt: DateTimeImmutable @1698958797 {#4769
date: 2023-11-02 21:59:57.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Laziness sparks innovation, and there could possibly be some other way to drop privileges. There’s loads of stuff I learn about Linux still - and my first install was summer 94\n
\n
Keep at it!
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698969553 {#4858
date: 2023-11-03 00:59:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4861 …}
+nested: Doctrine\ORM\PersistentCollection {#4863 …}
+votes: Doctrine\ORM\PersistentCollection {#4865 …}
+reports: Doctrine\ORM\PersistentCollection {#4867 …}
+favourites: Doctrine\ORM\PersistentCollection {#4869 …}
+notifications: Doctrine\ORM\PersistentCollection {#4871 …}
-id: 621
-bodyTs: "'94':31 'could':6 'drop':13 'first':27 'innov':3 'instal':28 'keep':32 'lazi':1 'learn':21 'linux':23 'load':17 'possibl':7 'privileg':14 'spark':2 'still':24 'stuff':19 'summer':30 'way':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4262519"
+editedAt: null
+createdAt: DateTimeImmutable @1698969553 {#4859
date: 2023-11-03 00:59:13.0 +01:00
}
} |
|
Show voter details
|
89 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
90 |
DENIED
|
moderate
|
App\Entity\PostComment {#4694
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
\n
It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
\n
[en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
\n
[en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
\n
[en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698955665 {#4691
date: 2023-11-02 21:07:45.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4695 …}
+nested: Doctrine\ORM\PersistentCollection {#4697 …}
+votes: Doctrine\ORM\PersistentCollection {#4699 …}
+reports: Doctrine\ORM\PersistentCollection {#4701 …}
+favourites: Doctrine\ORM\PersistentCollection {#4703 …}
+notifications: Doctrine\ORM\PersistentCollection {#4705 …}
-id: 613
-bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256522"
+editedAt: DateTimeImmutable @1698955955 {#4692
date: 2023-11-02 21:12:35.0 +01:00
}
+createdAt: DateTimeImmutable @1698955665 {#4693
date: 2023-11-02 21:07:45.0 +01:00
}
} |
|
Show voter details
|
91 |
DENIED
|
edit
|
App\Entity\PostComment {#4694
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
\n
It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
\n
[en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
\n
[en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
\n
[en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698955665 {#4691
date: 2023-11-02 21:07:45.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4695 …}
+nested: Doctrine\ORM\PersistentCollection {#4697 …}
+votes: Doctrine\ORM\PersistentCollection {#4699 …}
+reports: Doctrine\ORM\PersistentCollection {#4701 …}
+favourites: Doctrine\ORM\PersistentCollection {#4703 …}
+notifications: Doctrine\ORM\PersistentCollection {#4705 …}
-id: 613
-bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256522"
+editedAt: DateTimeImmutable @1698955955 {#4692
date: 2023-11-02 21:12:35.0 +01:00
}
+createdAt: DateTimeImmutable @1698955665 {#4693
date: 2023-11-02 21:07:45.0 +01:00
}
} |
|
Show voter details
|
92 |
DENIED
|
moderate
|
App\Entity\PostComment {#4694
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4595
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4510
+user: Proxies\__CG__\App\Entity\User {#4511 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s no way to run a command as another user if that user is not created.\n
\n
[linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)\n
\n
Edit:sudo is also an option but I like runuser for your use-case
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698952814 {#4507
date: 2023-11-02 20:20:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4512 …}
+nested: Doctrine\ORM\PersistentCollection {#4514 …}
+votes: Doctrine\ORM\PersistentCollection {#4516 …}
+reports: Doctrine\ORM\PersistentCollection {#4518 …}
+favourites: Doctrine\ORM\PersistentCollection {#4520 …}
+notifications: Doctrine\ORM\PersistentCollection {#4522 …}
-id: 611
-bodyTs: "'/man/1/runuser](https://linux.die.net/man/1/runuser)':20 'also':24 'anoth':10 'case':35 'command':8 'creat':17 'edit':21 'like':29 'linux.die.net':19 'linux.die.net/man/1/runuser](https://linux.die.net/man/1/runuser)':18 'option':26 'run':6 'runus':30 'sudo':22 'use':34 'use-cas':33 'user':11,14 'way':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4255538"
+editedAt: DateTimeImmutable @1698953029 {#4508
date: 2023-11-02 20:23:49.0 +01:00
}
+createdAt: DateTimeImmutable @1698952814 {#4509
date: 2023-11-02 20:20:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Oisteink@feddit.nl in another comment (<https://social.vivaldi.net/users/nirogu/statuses/111342629815373353>) I explained why I'd prefer not to create another user, as it would require a lot of work to configure everything again for that command to work (it's a big process). I was thinking of hiding my sudo permissions from the program or something like that, if possible, because many things in the instance are only configured to be used with the root user, even if they don't require sudo. Anyway, I'm seeing that it might not be possible so creating a new user could be the only option 🙁"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698954358 {#4593
date: 2023-11-02 20:45:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4596 …}
+nested: Doctrine\ORM\PersistentCollection {#4598 …}
+votes: Doctrine\ORM\PersistentCollection {#4600 …}
+reports: Doctrine\ORM\PersistentCollection {#4602 …}
+favourites: Doctrine\ORM\PersistentCollection {#4604 …}
+notifications: Doctrine\ORM\PersistentCollection {#4606 …}
-id: 612
-bodyTs: "'/users/nirogu/statuses/111342629815373353':7 'anoth':3,17 'anyway':81 'big':39 'command':33 'comment':4 'configur':28,66 'could':96 'creat':16,92 'd':12 'even':74 'everyth':29 'explain':9 'hide':45 'instanc':63 'like':54 'lot':24 'm':83 'mani':59 'might':87 'new':94 'oisteink@feddit.nl':1 'option':100 'permiss':48 'possibl':57,90 'prefer':13 'process':40 'program':51 'requir':22,79 'root':72 'see':84 'social.vivaldi.net':6 'social.vivaldi.net/users/nirogu/statuses/111342629815373353':5 'someth':53 'sudo':47,80 'thing':60 'think':43 'use':69 'user':18,73,95 'work':26,35 'would':21"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342672818386955"
+editedAt: null
+createdAt: DateTimeImmutable @1698954358 {#4594
date: 2023-11-02 20:45:58.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
Linux privilege only understands user id’s and group id’s. These are mapped through /etc/passwd and /etc/groups. You will see in passwd that the root user has UID 0. Any account you create with UID 0 will have root privileges. So running the command specifying any user with UID!=0 will run without those privileges.\n
\n
It’s also possible to set user on execution with setuid - but that won’t work on scripts only binary executables.\n
\n
[en.wikipedia.org/wiki/Setuid](https://en.wikipedia.org/wiki/Setuid)\n
\n
[en.wikipedia.org/wiki/User_identifier](https://en.wikipedia.org/wiki/User_identifier)\n
\n
[en.wikipedia.org/wiki/Group_identifier](https://en.wikipedia.org/wiki/Group_identifier)
"""
+lang: "en"
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1698955665 {#4691
date: 2023-11-02 21:07:45.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Oisteink@feddit.nl"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4695 …}
+nested: Doctrine\ORM\PersistentCollection {#4697 …}
+votes: Doctrine\ORM\PersistentCollection {#4699 …}
+reports: Doctrine\ORM\PersistentCollection {#4701 …}
+favourites: Doctrine\ORM\PersistentCollection {#4703 …}
+notifications: Doctrine\ORM\PersistentCollection {#4705 …}
-id: 613
-bodyTs: "'/etc/groups':18 '/etc/passwd':16 '/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':86 '/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':80 '/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':83 '0':30,37,51 'account':32 'also':59 'binari':76 'command':45 'creat':34 'en.wikipedia.org':79,82,85 'en.wikipedia.org/wiki/group_identifier](https://en.wikipedia.org/wiki/group_identifier)':84 'en.wikipedia.org/wiki/setuid](https://en.wikipedia.org/wiki/setuid)':78 'en.wikipedia.org/wiki/user_identifier](https://en.wikipedia.org/wiki/user_identifier)':81 'execut':65,77 'group':9 'id':6,10 'linux':1 'map':14 'passwd':23 'possibl':60 'privileg':2,41,56 'root':26,40 'run':43,53 'script':74 'see':21 'set':62 'setuid':67 'specifi':46 'uid':29,36,50 'understand':4 'user':5,27,48,63 'without':54 'won':70 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4256522"
+editedAt: DateTimeImmutable @1698955955 {#4692
date: 2023-11-02 21:12:35.0 +01:00
}
+createdAt: DateTimeImmutable @1698955665 {#4693
date: 2023-11-02 21:07:45.0 +01:00
}
} |
|
Show voter details
|
93 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
94 |
DENIED
|
moderate
|
App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
} |
|
Show voter details
|
95 |
DENIED
|
edit
|
App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
} |
|
Show voter details
|
96 |
DENIED
|
moderate
|
App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
} |
|
Show voter details
|
97 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
98 |
DENIED
|
moderate
|
App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
} |
|
Show voter details
|
99 |
DENIED
|
edit
|
App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
} |
|
Show voter details
|
100 |
DENIED
|
moderate
|
App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
} |
|
Show voter details
|
101 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
102 |
DENIED
|
moderate
|
App\Entity\PostComment {#4725
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s a source that says something about using the AWS Systems Manager Session Manager by ““Configuring the necessary IAM permissions for your user or role to access the instance using Session Manager [1](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html) \n
Open the AWS Systems Manager console, navigate to the “Session Manager” page, and select the instance you want to access \n
Click on the “Start session” button to initiate the session with the instance. \n
Once the session is established, you can run commands as the root user without the need for sudo”” \n
I’m unsure if this achieves exactly what you need though.
"""
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698958172 {#4722
date: 2023-11-02 21:49:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4726 …}
+nested: Doctrine\ORM\PersistentCollection {#4728 …}
+votes: Doctrine\ORM\PersistentCollection {#4730 …}
+reports: Doctrine\ORM\PersistentCollection {#4732 …}
+favourites: Doctrine\ORM\PersistentCollection {#4734 …}
+notifications: Doctrine\ORM\PersistentCollection {#4736 …}
-id: 619
-bodyTs: "'/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':37 '1':34 'access':28,57 'achiev':94 'aw':11,40 'button':63 'click':58 'command':79 'configur':17 'consol':43 'docs.aws.amazon.com':36 'docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':35 'establish':75 'exact':95 'iam':20 'initi':65 'instanc':30,53,70 'm':90 'manag':13,15,33,42,48 'navig':44 'necessari':19 'need':86,98 'open':38 'page':49 'permiss':21 'role':26 'root':82 'run':78 'say':6 'select':51 'session':14,32,47,62,67,73 'someth':7 'sourc':4 'start':61 'sudo':88 'system':12,41 'though':99 'unsur':91 'use':9,31 'user':24,83 'want':55 'without':84"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5013774"
+editedAt: DateTimeImmutable @1698959320 {#4723
date: 2023-11-02 22:08:40.0 +01:00
}
+createdAt: DateTimeImmutable @1698958172 {#4724
date: 2023-11-02 21:49:32.0 +01:00
}
} |
|
Show voter details
|
103 |
DENIED
|
edit
|
App\Entity\PostComment {#4725
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s a source that says something about using the AWS Systems Manager Session Manager by ““Configuring the necessary IAM permissions for your user or role to access the instance using Session Manager [1](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html) \n
Open the AWS Systems Manager console, navigate to the “Session Manager” page, and select the instance you want to access \n
Click on the “Start session” button to initiate the session with the instance. \n
Once the session is established, you can run commands as the root user without the need for sudo”” \n
I’m unsure if this achieves exactly what you need though.
"""
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698958172 {#4722
date: 2023-11-02 21:49:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4726 …}
+nested: Doctrine\ORM\PersistentCollection {#4728 …}
+votes: Doctrine\ORM\PersistentCollection {#4730 …}
+reports: Doctrine\ORM\PersistentCollection {#4732 …}
+favourites: Doctrine\ORM\PersistentCollection {#4734 …}
+notifications: Doctrine\ORM\PersistentCollection {#4736 …}
-id: 619
-bodyTs: "'/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':37 '1':34 'access':28,57 'achiev':94 'aw':11,40 'button':63 'click':58 'command':79 'configur':17 'consol':43 'docs.aws.amazon.com':36 'docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':35 'establish':75 'exact':95 'iam':20 'initi':65 'instanc':30,53,70 'm':90 'manag':13,15,33,42,48 'navig':44 'necessari':19 'need':86,98 'open':38 'page':49 'permiss':21 'role':26 'root':82 'run':78 'say':6 'select':51 'session':14,32,47,62,67,73 'someth':7 'sourc':4 'start':61 'sudo':88 'system':12,41 'though':99 'unsur':91 'use':9,31 'user':24,83 'want':55 'without':84"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5013774"
+editedAt: DateTimeImmutable @1698959320 {#4723
date: 2023-11-02 22:08:40.0 +01:00
}
+createdAt: DateTimeImmutable @1698958172 {#4724
date: 2023-11-02 21:49:32.0 +01:00
}
} |
|
Show voter details
|
104 |
DENIED
|
moderate
|
App\Entity\PostComment {#4725
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4582
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4527
+user: Proxies\__CG__\App\Entity\User {#4528 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4396
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: """
Forgot to mention that creating a new user brings a lot of problems because of how that machine is configured and all the tools that would need to be added the new user's permission. In theory it would eventually work after some time working on it, but I'd like to know if there's a way to do it without creating users (or if it's impossible, so I can just go on with that only option) \n
@linux@lemmy.ml
"""
+lang: "en"
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1698951882 {#4391
date: 2023-11-02 20:04:42.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4397 …}
+nested: Doctrine\ORM\PersistentCollection {#4399 …}
+votes: Doctrine\ORM\PersistentCollection {#4401 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 608
-bodyTs: "'ad':30 'bring':9 'configur':20 'creat':5,63 'd':50 'eventu':40 'forgot':1 'go':74 'imposs':69 'know':53 'like':51 'linux@lemmy.ml':80 'lot':11 'machin':18 'mention':3 'need':27 'new':7,32 'option':79 'permiss':35 'problem':13 'theori':37 'time':44 'tool':24 'user':8,33,64 'way':58 'without':62 'work':41,45 'would':26,39"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342510555544223"
+editedAt: null
+createdAt: DateTimeImmutable @1698951882 {#4392
date: 2023-11-02 20:04:42.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
You can run commands as the new user from the root account. \n
`su -c ‘command’ username` \n
Enter the password for the new user when prompted. \n
This way at least the main account is still root and the command is being run without root privileges on the new users account.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698952508 {#4524
date: 2023-11-02 20:15:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4529 …}
+nested: Doctrine\ORM\PersistentCollection {#4531 …}
+votes: Doctrine\ORM\PersistentCollection {#4533 …}
+reports: Doctrine\ORM\PersistentCollection {#4535 …}
+favourites: Doctrine\ORM\PersistentCollection {#4537 …}
+notifications: Doctrine\ORM\PersistentCollection {#4539 …}
-id: 609
-bodyTs: "'account':12,32,49 'c':14 'command':4,15,38 'enter':17 'least':29 'main':31 'new':7,22,47 'password':19 'privileg':44 'prompt':25 'root':11,35,43 'run':3,41 'still':34 'su':13 'user':8,23,48 'usernam':16 'way':27 'without':42"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5011933"
+editedAt: DateTimeImmutable @1699221076 {#4525
date: 2023-11-05 22:51:16.0 +01:00
}
+createdAt: DateTimeImmutable @1698952508 {#4526
date: 2023-11-02 20:15:08.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: "@Rustmilian@lemmy.world yeah, already tried it. The problem is that all of the apps in the instance are only installed for the root user (e.g. python and all it's libraries. So, when I use su -c all I get is a lot of command not found messages that would take a lot to solve. Besides I expect a lot more problems when the command needs access to some files and some processes (like a sql database) that would require me to do a lot of stuff to grant permissions to the new user. That would eventually work but given the work it requires I thought that some kind of "anti sudo" command or something like that could exist so I can still be the root user but pretend I am not a superadmin"
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698953702 {#4583
date: 2023-11-02 20:35:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4578 …}
+nested: Doctrine\ORM\PersistentCollection {#4573 …}
+votes: Doctrine\ORM\PersistentCollection {#4577 …}
+reports: Doctrine\ORM\PersistentCollection {#4587 …}
+favourites: Doctrine\ORM\PersistentCollection {#4589 …}
+notifications: Doctrine\ORM\PersistentCollection {#4591 …}
-id: 618
-bodyTs: "'access':66 'alreadi':3 'anti':110 'app':13 'besid':55 'c':36 'command':44,64,112 'could':117 'databas':76 'e.g':24 'eventu':96 'exist':118 'expect':57 'file':69 'found':46 'get':39 'given':99 'grant':88 'instal':19 'instanc':16 'kind':108 'librari':30 'like':73,115 'lot':42,52,59,84 'messag':47 'need':65 'new':92 'permiss':89 'pretend':128 'problem':7,61 'process':72 'python':25 'requir':79,103 'root':22,125 'rustmilian@lemmy.world':1 'solv':54 'someth':114 'sql':75 'still':122 'stuff':86 'su':35 'sudo':111 'superadmin':133 'take':50 'thought':105 'tri':4 'use':34 'user':23,93,126 'work':97,101 'would':49,78,95 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342629815373353"
+editedAt: null
+createdAt: DateTimeImmutable @1698953702 {#4586
date: 2023-11-02 20:35:02.0 +01:00
}
}
+root: App\Entity\PostComment {#4396}
+image: null
+body: """
There’s a source that says something about using the AWS Systems Manager Session Manager by ““Configuring the necessary IAM permissions for your user or role to access the instance using Session Manager [1](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html) \n
Open the AWS Systems Manager console, navigate to the “Session Manager” page, and select the instance you want to access \n
Click on the “Start session” button to initiate the session with the instance. \n
Once the session is established, you can run commands as the root user without the need for sudo”” \n
I’m unsure if this achieves exactly what you need though.
"""
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1698958172 {#4722
date: 2023-11-02 21:49:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@Rustmilian@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4726 …}
+nested: Doctrine\ORM\PersistentCollection {#4728 …}
+votes: Doctrine\ORM\PersistentCollection {#4730 …}
+reports: Doctrine\ORM\PersistentCollection {#4732 …}
+favourites: Doctrine\ORM\PersistentCollection {#4734 …}
+notifications: Doctrine\ORM\PersistentCollection {#4736 …}
-id: 619
-bodyTs: "'/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':37 '1':34 'access':28,57 'achiev':94 'aw':11,40 'button':63 'click':58 'command':79 'configur':17 'consol':43 'docs.aws.amazon.com':36 'docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-ssm-user-permissions.html)':35 'establish':75 'exact':95 'iam':20 'initi':65 'instanc':30,53,70 'm':90 'manag':13,15,33,42,48 'navig':44 'necessari':19 'need':86,98 'open':38 'page':49 'permiss':21 'role':26 'root':82 'run':78 'say':6 'select':51 'session':14,32,47,62,67,73 'someth':7 'sourc':4 'start':61 'sudo':88 'system':12,41 'though':99 'unsur':91 'use':9,31 'user':24,83 'want':55 'without':84"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5013774"
+editedAt: DateTimeImmutable @1698959320 {#4723
date: 2023-11-02 22:08:40.0 +01:00
}
+createdAt: DateTimeImmutable @1698958172 {#4724
date: 2023-11-02 21:49:32.0 +01:00
}
} |
|
Show voter details
|
105 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
106 |
DENIED
|
moderate
|
App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
} |
|
Show voter details
|
107 |
DENIED
|
edit
|
App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
} |
|
Show voter details
|
108 |
DENIED
|
moderate
|
App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
} |
|
Show voter details
|
109 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
110 |
DENIED
|
moderate
|
App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
} |
|
Show voter details
|
111 |
DENIED
|
edit
|
App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
} |
|
Show voter details
|
112 |
DENIED
|
moderate
|
App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
} |
|
Show voter details
|
113 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
114 |
DENIED
|
moderate
|
App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
} |
|
Show voter details
|
115 |
DENIED
|
edit
|
App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
} |
|
Show voter details
|
116 |
DENIED
|
moderate
|
App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
} |
|
Show voter details
|
117 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
118 |
DENIED
|
moderate
|
App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
} |
|
Show voter details
|
119 |
DENIED
|
edit
|
App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
} |
|
Show voter details
|
120 |
DENIED
|
moderate
|
App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
} |
|
Show voter details
|
121 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
122 |
DENIED
|
moderate
|
App\Entity\PostComment {#4822
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "You’ll thank yourself for it later. Things like this take a little longer up front but putting them off has a way of making you have to work around it again and again until, when you get around to correcting it, it takes far more time to undo the workarounds than it would’ve taken to correct it the first time."
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699069034 {#4820
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 636
-bodyTs: "'around':30,39 'correct':41,58 'far':45 'first':61 'front':16 'get':38 'later':7 'like':9 'littl':13 'll':2 'longer':14 'make':25 'put':18 'take':11,44 'taken':56 'thank':3 'thing':8 'time':47,62 'undo':49 've':55 'way':23 'work':29 'workaround':51 'would':54"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5050298"
+editedAt: null
+createdAt: DateTimeImmutable @1699069034 {#4821
date: 2023-11-04 04:37:14.0 +01:00
}
} |
|
Show voter details
|
123 |
DENIED
|
edit
|
App\Entity\PostComment {#4822
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "You’ll thank yourself for it later. Things like this take a little longer up front but putting them off has a way of making you have to work around it again and again until, when you get around to correcting it, it takes far more time to undo the workarounds than it would’ve taken to correct it the first time."
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699069034 {#4820
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 636
-bodyTs: "'around':30,39 'correct':41,58 'far':45 'first':61 'front':16 'get':38 'later':7 'like':9 'littl':13 'll':2 'longer':14 'make':25 'put':18 'take':11,44 'taken':56 'thank':3 'thing':8 'time':47,62 'undo':49 've':55 'way':23 'work':29 'workaround':51 'would':54"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5050298"
+editedAt: null
+createdAt: DateTimeImmutable @1699069034 {#4821
date: 2023-11-04 04:37:14.0 +01:00
}
} |
|
Show voter details
|
124 |
DENIED
|
moderate
|
App\Entity\PostComment {#4822
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+magazine: App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
}
+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 {#1793
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
]
+comments: Doctrine\ORM\PersistentCollection {#1876 …}
+votes: Doctrine\ORM\PersistentCollection {#1968 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1930 …}
+notifications: Doctrine\ORM\PersistentCollection {#1374 …}
+children: []
-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 {#1823
date: 2023-11-02 19:44:31.0 +01:00
}
}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4755
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4641
+user: Proxies\__CG__\App\Entity\User {#4626 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4497
+user: Proxies\__CG__\App\Entity\User {#1928 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: App\Entity\PostComment {#4411
+user: App\Entity\User {#4424 …}
+post: App\Entity\Post {#1803}
+magazine: App\Entity\Magazine {#267}
+parent: null
+root: null
+image: null
+body: "Use root to create new user, then run app as new user."
+lang: "en"
+favouriteCount: 47
+score: 0
+lastActive: DateTime @1698950844 {#4395
date: 2023-11-02 19:47:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4412 …}
+nested: Doctrine\ORM\PersistentCollection {#4414 …}
+votes: Doctrine\ORM\PersistentCollection {#4416 …}
+reports: Doctrine\ORM\PersistentCollection {#4418 …}
+favourites: Doctrine\ORM\PersistentCollection {#4420 …}
+notifications: Doctrine\ORM\PersistentCollection {#4422 …}
-id: 607
-bodyTs: "'app':9 'creat':4 'new':5,11 'root':2 'run':8 'use':1 'user':6,12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/5641379"
+editedAt: null
+createdAt: DateTimeImmutable @1698950844 {#4394
date: 2023-11-02 19:47:24.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "@astray@lemm.ee yeah, that could be an option, but if more users exist in that machine then other processes might fail as that instance is part of a bigger cluster that has several processes running. It might not be a big deal, but checking that may still need some work. I'd prefer a way to do it without creating new users, if it exists"
+lang: "en"
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1698951415 {#4498
date: 2023-11-02 19:56:55.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4492 …}
+nested: Doctrine\ORM\PersistentCollection {#4486 …}
+votes: Doctrine\ORM\PersistentCollection {#4490 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-id: 623
-bodyTs: "'astray@lemm.ee':1 'big':40 'bigger':28 'check':43 'cluster':29 'could':4 'creat':59 'd':51 'deal':41 'exist':12,64 'fail':20 'instanc':23 'machin':15 'may':45 'might':19,36 'need':47 'new':60 'option':7 'part':25 'prefer':52 'process':18,33 'run':34 'sever':32 'still':46 'user':11,61 'way':54 'without':58 'work':49 'yeah':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111342479953246218"
+editedAt: null
+createdAt: DateTimeImmutable @1698951415 {#4495
date: 2023-11-02 19:56:55.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
If a different user doesn’t exist then you obviously can’t run the command as that different user. The only solution here is to create a new user account.\n
\n
Also your image is improperly configured which is something you should fix first.
"""
+lang: "en"
+favouriteCount: 6
+score: 0
+lastActive: DateTime @1698995234 {#4639
date: 2023-11-03 08:07:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-id: 631
-bodyTs: "'account':30 'also':31 'command':15 'configur':36 'creat':26 'differ':3,18 'doesn':5 'exist':7 'first':43 'fix':42 'imag':33 'improp':35 'new':28 'obvious':10 'run':13 'solut':22 'someth':39 'user':4,19,29"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5028439"
+editedAt: null
+createdAt: DateTimeImmutable @1698995234 {#4640
date: 2023-11-03 08:07:14.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: """
@elscallr@lemmy.world I agree about the instance configuration, fixing that is the real solution \n
My question was not about running something as another user, but about hiding the superadmin privileges from a single command I'd execute without switching users. However it is clear that something like that doesn't exist so I'll do the right thing and set everything to work with a new user
"""
+lang: "en"
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1699022526 {#4753
date: 2023-11-03 15:42:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4756 …}
+nested: Doctrine\ORM\PersistentCollection {#4758 …}
+votes: Doctrine\ORM\PersistentCollection {#4760 …}
+reports: Doctrine\ORM\PersistentCollection {#4762 …}
+favourites: Doctrine\ORM\PersistentCollection {#4764 …}
+notifications: Doctrine\ORM\PersistentCollection {#4766 …}
-id: 635
-bodyTs: "'agre':3 'anoth':22 'clear':43 'command':33 'configur':7 'd':35 'doesn':48 'elscallr@lemmy.world':1 'everyth':60 'execut':36 'exist':50 'fix':8 'hide':26 'howev':40 'instanc':6 'like':46 'll':53 'new':65 'privileg':29 'question':15 'real':12 'right':56 'run':19 'set':59 'singl':32 'solut':13 'someth':20,45 'superadmin':28 'switch':38 'thing':57 'user':23,39,66 'without':37 'work':62"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://social.vivaldi.net/users/nirogu/statuses/111347140288436938"
+editedAt: null
+createdAt: DateTimeImmutable @1699022526 {#4754
date: 2023-11-03 15:42:06.0 +01:00
}
}
+root: App\Entity\PostComment {#4411}
+image: null
+body: "You’ll thank yourself for it later. Things like this take a little longer up front but putting them off has a way of making you have to work around it again and again until, when you get around to correcting it, it takes far more time to undo the workarounds than it would’ve taken to correct it the first time."
+lang: "en"
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1699069034 {#4820
date: 2023-11-04 04:37:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@linux@lemmy.ml"
"@nirogu@vivaldi.net"
"@astray@lemm.ee"
"@elscallr@lemmy.world"
]
+isAdult: false
+updateMark: false
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 636
-bodyTs: "'around':30,39 'correct':41,58 'far':45 'first':61 'front':16 'get':38 'later':7 'like':9 'littl':13 'll':2 'longer':14 'make':25 'put':18 'take':11,44 'taken':56 'thank':3 'thing':8 'time':47,62 'undo':49 've':55 'way':23 'work':29 'workaround':51 'would':54"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5050298"
+editedAt: null
+createdAt: DateTimeImmutable @1699069034 {#4821
date: 2023-11-04 04:37:14.0 +01:00
}
} |
|
Show voter details
|
125 |
DENIED
|
edit
|
App\Entity\Magazine {#267
+icon: Proxies\__CG__\App\Entity\Image {#248 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#277
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#239 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#235 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#224 …}
+entries: Doctrine\ORM\PersistentCollection {#182 …}
+posts: Doctrine\ORM\PersistentCollection {#140 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#202 …}
+bans: Doctrine\ORM\PersistentCollection {#119 …}
+reports: Doctrine\ORM\PersistentCollection {#105 …}
+badges: Doctrine\ORM\PersistentCollection {#83 …}
+logs: Doctrine\ORM\PersistentCollection {#73 …}
+awards: Doctrine\ORM\PersistentCollection {#62 …}
+categories: Doctrine\ORM\PersistentCollection {#1797 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#271
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#273
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|