Sample Header Ad - 728x90

Verify password of current user, even when it’s root

1 vote
1 answer
2287 views
Is there a simple command to verify the password of the current user? The command $ su -c true $(id -nu) suffices for non-root users. However a root user doesn’t need to verify his identity when using su. Is there an alternative command with which a root user can safely and simply verify that the root password he remembers is still correct? I use a desktop linux distribution, Arch Linux to be particular.
Asked by k.stm (739 rep)
Apr 4, 2020, 11:24 AM
Last activity: Apr 4, 2020, 06:30 PM