Can't sudo in L4T 21.4

I flash the Jetson TK1 with L4T v21.4. The target boots and logs in as ubuntu@ubuntu; however, I can’t sudo any command. When I try to sudo I get the following:

ubuntu@tegra-ubuntu:~$ sudo ls
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I need to be able to sudo to install the cuda and opencv packages. What is the reason I can’t sudo? I did not see any indication that I needed to add user ubuntu to the sudoers list before flashing the target.

I noticed that all my files on the target are ownded by root:

ubuntu@tegra-ubuntu:~$ ll
total 100
drwxr-xr-x 2 root root  4096 Jul 17  2015 ./
drwxr-xr-x 3 root root  4096 Apr  1  2015 ../
-rw-r--r-- 1 root root   220 Apr  1  2015 .bash_logout
-rw-r--r-- 1 root root  3637 Apr  1  2015 .bashrc
-rw-r--r-- 1 root root   675 Apr  1  2015 .profile
-rwxr-xr-x 1 root root 80941 Jul 17  2015 tegrastats*

IS this expected? Anyone else with this problem, or know how to resolve it?

thanks,

What are the current permissiosn of sudo? It should show as:

# ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 111780 Mar 12 10:34 /usr/bin/sudo*

If it shows as anything else the file unpacking on host was probably incorrect, e.g., sudo would not have been allowed to be SUID if non-root unpacked it. If that is the case you’ll need to reflash Jetson after fixing the unpack issues.

I’m waiving the white flag on this board for a bit. I’ve borrowed one that is working correctly. I think all these issues stem from the anti virus running on the Linux workstation. Once I can disable it I will go back to the first board and try to get it going again. For now I’m actually going to try and write some code…

thanks

I would assume any antivirus gets upset when someone puts an SUID root file outside of where it is expected. Any modification of any permission would be a big problem.