Safety issues with numeric login and sudo passord
#5
(07-03-2021, 11:14 PM)Line Wrote:
(07-03-2021, 04:00 PM)KC9UDX Wrote: Can't you remove the user from the sudoers file?  Or uninstall sudo?
Not on Mobian, cause it will permanently lock you out of the root account. On Mobian we need to find a way to set a different password for sudo, or set a user account password different from the screen unlock PIN-code. On Manjaro it might be easier to just disable all sudo privileges, but I haven’t had any luck with neither just yet.
normally debian and fedora uses different password for user and root, meaning both are activated. not in mobian though.

short background info: "sudo" gives temporary root user priviledges with user's password. if root user is activate then "su" gives root user access but you need to give root user's password and not ordinary user's password.

solution might be that you activate root account and you use "su -l" command. how to activate root account ...
Code:
$ sudo su -l
(give user password)
# passwd
(give new password, this will activate root account)

after this you could disable user account in /etc/sudoers (or similar) file. this method may still have serious caveats.

edit: you don't need to edit sudoers file, "deluser mobian sudo" is enough, be careful about that command because typo may mean serious side effects.
  Reply


Messages In This Thread
RE: Safety issues with numeric login and sudo passord - by zetabeta - 07-04-2021, 01:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple issues with the Pinephone MTXP 12 2,624 12-28-2023, 07:55 AM
Last Post: MTXP
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,821 12-22-2023, 03:44 PM
Last Post: Kevin Kofler
  New Pinephone is dead. eMMC, boot, hardware issues. Shane 4 1,538 05-10-2023, 03:31 AM
Last Post: fxc
  New Phone Opening Issues LuluFrance 5 2,257 03-15-2023, 05:33 AM
Last Post: anonymous
  PinePhone sound issues Chief 4 2,912 07-05-2022, 07:58 PM
Last Post: Chief
  postmarketOS fixed battery issues Deadladyofclowntown 1 1,565 06-23-2022, 02:44 PM
Last Post: zer0sig
  Pinephone 64 Issues of a new user US Notheast as of April 2022 scrwbigtek 9 5,688 05-03-2022, 04:18 PM
Last Post: scrwbigtek
  Pine Phone Pro issues gmastap 4 2,820 03-21-2022, 12:46 PM
Last Post: bcnaz
  u-boot multiboot issues m4xx3d0ut 0 1,149 02-24-2022, 05:11 PM
Last Post: m4xx3d0ut
  Pin login fails when unplugged slomobile 2 2,254 12-23-2021, 10:53 PM
Last Post: slomobile

Forum Jump:


Users browsing this thread: 1 Guest(s)