How to auto run as root user when TX2 powered on, not a normal user

how to auto run as root user when TX2 powered on, not a normal user?
because some of my application runs need root authority.

Hi zsjalive,

Please reference this topic to set root password.

but it doesn’t work for TX2

Hi zsjalive,

Please try below command to allow sudo without password:

sudo bash -c "echo \"nvidia ALL=(ALL) NOPASSWD:ALL\" >> /etc/sudoers"