On Wed, 31 Mar 2021 10:59:10 -0700, in gmane.comp.hardware.beagleboard.user Bob Hammond <propgrinder-re5jqeeqqe8avxtiumw...@public.gmane.org> wrote:
>debian@beaglebone:/mnt/media/etc$ su root >Password: >su: Authentication failure >debian@beaglebone:/mnt/media/etc$ su root >Password: >su: Authentication failure >debian@beaglebone:/mnt/media/etc$ sudo nano shadow > GNU nano 2.7.4 File: shadow > I'm beginning to get lost in just what machine is which in this discussion. You obviously have some device that boots and lets you sign in. I'm presuming you then mounted an SD card (or subdirectory of said card). Note that, by default for quite some years, a stock Beaglebone does not assign a password to the root account (or it is something impossible to enter), and prevents direct login as root. Your "su root" is likely failing for that reason. However, you do have sudo privileges (had you run sudo recently before the above cut&paste -- on normal Beagle images, the first run of sudo [and runs after some timeout period] prompt for the user password, but you don't appear to have had to enter that). Try entering sudo su or maybe sudo bash debian@beaglebone:~$ sudo su [sudo] password for debian: root@beaglebone:/home/debian# exit exit debian@beaglebone:~$ sudo bash root@beaglebone:/home/debian# exit exit debian@beaglebone:~$ debian@beaglebone:~$ sudo cat /etc/passwd root:x:0:0:root:/root:/bin/bash ... debian@beaglebone:~$ sudo cat /etc/shadow root:$6$5qgZEu6UrcE6p.vz$HcTDnuyYnQDb3QCslR59OSMIor.Y4ugey8DNqPvoNDvZ8BFBZqIbQQkKBpf9SeT3Bma5xG8EsIX7bt1OWUKmV/:18493:0:99999:7::: ... Granted, those are for the local machine. Have you tried "diff"ing the running (eMMC?) version of the files with the files on the mounted SD? Also compare the file owner/group and access (hmmm... group and gshadow files too) debian@beaglebone:~$ ls -l /etc total 784 ... -rw-r--r-- 1 root root 1095 Feb 24 09:41 group -rw-r--r-- 1 root root 1086 Oct 1 01:59 group- -rw-r----- 1 root shadow 933 Feb 24 09:41 gshadow -rw-r----- 1 root shadow 924 Oct 1 01:59 gshadow- ... -rw-r--r-- 1 root root 1600 Aug 19 2020 passwd -rw-r--r-- 1 root root 1533 Aug 19 2020 passwd- ... -rw-r----- 1 root shadow 934 Aug 19 2020 shadow -rw-r----- 1 root shadow 902 Aug 19 2020 shadow- ... debian@beaglebone:~$ Unless you've created a lot of custom users on the SD card, it could be worth just copying the files (using sudo) from the running machine to the SD card, and verifying (ls) they have the correct privileges/owner/group after the copy. -- Dennis L Bieber -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/sui96g1iedi1ov59hgijg54hb37o0akmam%404ax.com.