- LinuxCNC
- Installing LinuxCNC
- latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
26 May 2022 12:29 - 26 May 2022 12:30 #243889
by robertspark
latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid' was created by robertspark
latency-histogram --nobase --sbinsize 1000 --show
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allow
Note: Using POSIX realtime
I've noticed the above message of late..... anyone give any advice?
I don't seem to have anything wrong with the latency ~48uS & Std Dev 1.5uS
clean debian bullseye iso install (without su password entered)
git clone linuxcnc + local build of debs (master 2.9 today)
install of debs on build machine using
sudo dpkg -i <package>.deb
I've done a "bit" of a search and read of previous posts.... not seen a "fix" just suggestions that the user may not have sudo privilages....
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allow
Note: Using POSIX realtime
I've noticed the above message of late..... anyone give any advice?
I don't seem to have anything wrong with the latency ~48uS & Std Dev 1.5uS
clean debian bullseye iso install (without su password entered)
git clone linuxcnc + local build of debs (master 2.9 today)
install of debs on build machine using
sudo dpkg -i <package>.deb
I've done a "bit" of a search and read of previous posts.... not seen a "fix" just suggestions that the user may not have sudo privilages....
chips@LinuxCNC:~$ groups
chips cdrom floppy sudo audio dip video plugdev netdev lpadmin scanner
chips@LinuxCNC:~$
open to suggestions, thanks as always to anyone for pointers / suggestions
Last edit: 26 May 2022 12:30 by robertspark.
Please Log in or Create an account to join the conversation.
30 May 2022 00:32 #244165
by andypugh
Replied by andypugh on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
Where did you get a Bullseye ISO from?
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
30 May 2022 06:00 #244184
by robertspark
Replied by robertspark on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
cdimage.debian.org/cdimage/unofficial/no...onfree/amd64/iso-cd/
not the edu one but the other one.
installed the RT kernel (amd64) and then built the linuxcnc debs locally and installed the debs
not the edu one but the other one.
installed the RT kernel (amd64) and then built the linuxcnc debs locally and installed the debs
Please Log in or Create an account to join the conversation.
30 May 2022 10:31 #244195
by arvidb
Replied by arvidb on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
Well, did you forget 'sudo make setuid' after the build?
I'm not sure how a local dpkg install works, but if you build linuxcnc manually and either run in place or install using 'make install' you do need to run 'sudo make setuid' after the build to give the executables the proper privileges.
I'm not sure how a local dpkg install works, but if you build linuxcnc manually and either run in place or install using 'make install' you do need to run 'sudo make setuid' after the build to give the executables the proper privileges.
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
30 May 2022 13:34 #244209
by robertspark
Replied by robertspark on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
That is the bit I am not sure about, as it is not a RIP, it is basically installing the deb files onto the machine.
Yes they are made locally, but it is exactly the same as downloading from the buildbot respository and installing the debs from their ..... I would have thought (yup that's the failing! thinking!) that the deb would setuid for RT process access.
There is nothing in the "building debs" section relating to setuid
linuxcnc.org/docs/devel/html/code/buildi...ding_debian_packages
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-amd64/
I can't see where to do a "sudo make setuid" when installing debs
sure know how and when to do it with a RIP
Yes they are made locally, but it is exactly the same as downloading from the buildbot respository and installing the debs from their ..... I would have thought (yup that's the failing! thinking!) that the deb would setuid for RT process access.
There is nothing in the "building debs" section relating to setuid
linuxcnc.org/docs/devel/html/code/buildi...ding_debian_packages
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-amd64/
I can't see where to do a "sudo make setuid" when installing debs
sure know how and when to do it with a RIP
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
30 May 2022 13:39 #244210
by robertspark
Replied by robertspark on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
I guess the fix is to just set linuxcnc + latency-histogram files via chmod u+s
www.computerhope.com/jargon/s/setuid.htm...calated%20privileges.
(again thought that installing a deb should do this automatically, instead of having the trawl various folders to set chmod on various files?)
www.computerhope.com/jargon/s/setuid.htm...calated%20privileges.
(again thought that installing a deb should do this automatically, instead of having the trawl various folders to set chmod on various files?)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
30 May 2022 14:26 #244216
by tommylight
Replied by tommylight on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
Did you use ROOT at any point in the process?
Or sudo su?
Or sudo -i?
Although the last one should be OK.
Or sudo su?
Or sudo -i?
Although the last one should be OK.
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
30 May 2022 14:45 #244220
by robertspark
Replied by robertspark on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
No, just standard sudo.
only 1 user set up on the machine (did not set up su / root, and just entered 1 user + password at time of install).
install was via
sudo dpkg -i <linuxcnc_deb_package>.deb
only 1 user set up on the machine (did not set up su / root, and just entered 1 user + password at time of install).
install was via
sudo dpkg -i <linuxcnc_deb_package>.deb
Please Log in or Create an account to join the conversation.
30 May 2022 15:35 #244223
by dgarrett
Replied by dgarrett on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
github.com/LinuxCNC/linuxcnc/issues/1272
github.com/LinuxCNC/linuxcnc/commit/37c107c47f588
The incorporated commit removed the error return code
(EPERM) so the message is just for information
regarding use of parallel port (with secure boot)
github.com/LinuxCNC/linuxcnc/commit/37c107c47f588
The incorporated commit removed the error return code
(EPERM) so the message is just for information
regarding use of parallel port (with secure boot)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
30 May 2022 17:13 #244229
by tommylight
Replied by tommylight on topic latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
sudo apt install gdebi
then you can click on any .deb package from the file manager and it will install.
Avoid using dpkg as it can break things.
then you can click on any .deb package from the file manager and it will install.
Avoid using dpkg as it can break things.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- Installing LinuxCNC
- latency-histogram -->> cannot gain I/O privileges - forgot 'sudo make setuid'
Time to create page: 0.089 seconds