Background: I’ve accidentally removed sudo access from all users on my xavier nx. I do not have physical access to the board so I am unable to fix this via recovery mode. I can do just about everything I need to do on the board without sudo, except changing the power mode using nvpmodel.
Question: Is there any way to change the power mode without sudo?
I tried to add a group tag, using usermod -G (leaving off the -a), which stripped my admin user of the sudo group tag. I didn’t notice the omission and have since rebooted, which in further desktop testing seems to be what applies the changes.
I cannot run sudo anything, once I enter my password I get:
Sorry, user admin is not allow to execute ‘/bin/su’ as root on field-unit.
It seems you would need sudo permission to configure the power mode.
Are you using Xavier NX devkit with SD module?
If so, could you put the SD card to the host and try to access /etc/sudoers?
It seems it is a remote device so that you need someone helping you to do this…
Unfortunately it is not possible to access the unit. Is there any way without sudo to change which cpu cores are active? I cannot edit /boot/extlinux/extlinux.conf without sudo
We would suggest you could re-flash the board to fix the permission issue since there’re many operations need the sudo permission.
To configure the CPU cores, you would need to modify the nvpmodel.conf.
Could you access the desktop GUI of your board? Maybe you could configure different power mode through GUI (upper right corner of your desktop).
This is incorrect: sudo usermod -G newgrp <your_username>
What that does is to replace your group with that. You also need the “-a” option to append. This would append the new group instead of replacing with it: sudo usermod -aG newgrp <your_username>