On Thu, Nov 14, 2019 at 07:58:07PM +0100, Geert Stappers wrote: > On Wed, Nov 13, 2019 at 02:45:44PM -0800, Sunil Mohan Adapa wrote: > > On 13/11/19 2:09 pm, Johannes Keyser wrote: > > > On 13.11.19 20:07, Geert Stappers wrote: > > >> > > >> How to do a password reset for a freedombox? > > >> > > > > > > > > > Another idea to gain SSH-login might be to add an SSH-pubkey into fbx's > > > .ssh/authorized_keys, but I haven't tried that. > > > > > > > This should work any admin user or 'fbx' user. > > Confirming that placing SSH-pubkey in ~fbx/.ssh/authorized_key > got me ssh access. > ... > > Groeten > Geert Stappers > Has login access, now needs `sudo password` :-/
Got sudo access by setting %sudo ALL=(ALL:ALL) NOPASSWD: ALL in /etc/sudoers Groeten Geert Stappers -- $ ssh fbx@fdbx0 Linux fdbx0 4.19.0-5-armmp-lpae #1 SMP Debian 4.19.37-5 (2019-06-19) armv7l . . .--._ _.--. . ( \ / ) . \ /\ / . \_ \/ _/ . / \ . ( /\ ) . `--' `--' . . FreedomBox . FreedomBox is a pure blend of Debian GNU/Linux. Web interface is available at https://localhost/ . FreedomBox manual is available in /usr/share/doc/freedombox and from the web interace. . The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. . Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Nov 14 19:50:26 2019 from 172.24.0.36 fbx@fdbx0:~$ id uid=1000(fbx) gid=1000(fbx) groups=1000(fbx),27(sudo) fbx@fdbx0:~$ sudo su - root@fdbx0:~# grep %sudo /etc/sudoers ## %sudo ALL=(ALL:ALL) ALL %sudo ALL=(ALL:ALL) NOPASSWD: ALL root@fdbx0:~# id uid=0(root) gid=0(root) groups=0(root) root@fdbx0:~# root@fdbx0:~# _______________________________________________ Freedombox-discuss mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss
