Hidden Gmoccapy dependencies

More
6 years 2 months ago #178288 by tommylight

tuxcnc wrote: Since many years I always login as root and no bad happened.
Never.

Same here, but i did work for two of the biggest organisations in the world as a network admin. :)
Back on topic, LinuxCNC will complain or will not run at all as root.
Nmap will !

Please Log in to join the conversation.

More
6 years 2 months ago #178308 by tuxcnc
Replied by tuxcnc on topic Hidden Gmoccapy dependencies

tommylight wrote: Back on topic, LinuxCNC will complain or will not run at all as root.

It is off topic.
Root account is not the reason why LInuxcnc doesn't work.
The reason is somebody blocked it.
But i have medicine :
Code:
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 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.

Please Log in to join the conversation.

Time to create page: 0.031 seconds
Powered by Kunena Forum