Hidden Gmoccapy dependencies
- tommylight
- Away
- Moderator
Less
More
- Posts: 19411
- Thank you received: 6507
15 Aug 2020 14:46 #178288
by tommylight
Back on topic, LinuxCNC will complain or will not run at all as root.
Nmap will !
Replied by tommylight on topic Hidden Gmoccapy dependencies
Same here, but i did work for two of the biggest organisations in the world as a network admin.Since many years I always login as root and no bad happened.
Never.
Back on topic, LinuxCNC will complain or will not run at all as root.
Nmap will !
Please Log in or Create an account to join the conversation.
- tuxcnc
- Offline
- Premium Member
Less
More
- Posts: 118
- Thank you received: 5
15 Aug 2020 17:41 #178308
by tuxcnc
Root account is not the reason why LInuxcnc doesn't work.
The reason is somebody blocked it.
But i have medicine :I always run Linuxcnc as root and never notice something not works due it.
I know because I do it, but you don't know because you don't even try.
That's all about root account.
Replied by tuxcnc on topic Hidden Gmoccapy dependencies
It is off topic.Back on topic, LinuxCNC will complain or will not run at all as root.
Root account is not the reason why LInuxcnc doesn't work.
The reason is somebody blocked it.
But i have medicine :
diff -Naur old/linuxcnc-master/src/rtapi/uspace_rtapi_app.cc new/linuxcnc-master/src/rtapi/uspace_rtapi_app.cc
--- old/linuxcnc-master/src/rtapi/uspace_rtapi_app.cc 2019-12-30 19:35:11.000000000 +0100
+++ new/linuxcnc-master/src/rtapi/uspace_rtapi_app.cc 2020-01-01 13:58:02.785981571 +0100
@@ -501,14 +501,6 @@
if(getuid() == 0) {
char *fallback_uid_str = getenv("RTAPI_UID");
int fallback_uid = fallback_uid_str ? atoi(fallback_uid_str) : 0;
- if(fallback_uid == 0)
- {
- fprintf(stderr,
- "Refusing to run as root without fallback UID specified\n"
- "To run under a debugger with I/O, use e.g.,\n"
- " sudo env RTAPI_UID=`id -u` RTAPI_FIFO_PATH=$HOME/.rtapi_fifo gdb " EMC2_BIN_DIR "/rtapi_app\n");
- exit(1);
- }
setreuid(fallback_uid, 0);
fprintf(stderr,
"Running with fallback_uid. getuid()=%d geteuid()=%d\n",
I know because I do it, but you don't know because you don't even try.
That's all about root account.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.087 seconds