Run linuxcnc as root user

More
15 May 2024 06:49 - 15 May 2024 06:52 #300658 by nauman
Replied by nauman on topic Run linuxcnc as root user
Thank you so much for your support.
Why I was saying 'root access' because I saw in linuxcnc official distribution the main user 'cnc' is part of sudo group, this is what I was calling root access.
Here is complete list

cnc tty disk dialout sudo audio video plugdev users input render netdev bluetooth i2c gpio spi

So my problem is
I wanted to have 2 users on same machine lets call them main and client
where main user has all access including halcompiler to install new modules.
and client user with less access can communicate that instance which main user is running via python api.
Last edit: 15 May 2024 06:52 by nauman.

Please Log in or Create an account to join the conversation.

More
15 May 2024 09:07 #300665 by cornholio
Replied by cornholio on topic Run linuxcnc as root user
You're making it too complicated.

make "user main" a member of sudo group.
make "user client" not a member of sudo group.

Just remember each user will have to have linuxcnc configs.

Linuxcnc works the way it is. Your idea just adds so much more complexity, and I'm really unsure if Linuxcnc can be run as a "service".

Why are you so paranoid about security, the machine running Linuxcnc is not meant to be used as a desktop. If you were really worried you'd want to remove anything that will give a user to the internet.

Please Log in or Create an account to join the conversation.

More
15 May 2024 09:40 #300668 by nauman
Replied by nauman on topic Run linuxcnc as root user
I am already following same solution. I hope this will solve my use case. Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds
Powered by Kunena Forum