sudo passwd myname
changes the password of the user myname and allows unsecure passwords
passwd
changes the password of the active user and disallows unsecure passwords
sudo passwd
changes the password of the root account
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
sudo passwd myname
changes the password of the user myname and allows unsecure passwords
passwd
changes the password of the active user and disallows unsecure passwords
sudo passwd
changes the password of the root account
sudo su; passwd
Super User Do Super User
Yeah. It's as dumb as cat | grep
but people love it.
... despite the added risk during that sudo/su switch.
su needs root's password sudo su just needs your password
Good to see OP used sudo su; passwd
(Yes, I know it is frowned upon by a lot of documentation, but I don't care). I probably would find sudo passwd $USER
something that would need some careful typing in all the passwords to avoid confusion.
I usually try to avoid bad habits like this but this time it was justified.
The Ubuntu laptop had to connect to company vpn. It were using openconnect-network-manager-gnome
thingy to do that. Recently the company upgraded their vpn software which is sorta incompatible with openconnect and requires a modified user agent string for it to prompt for 2FA keys. package in ubuntu 22.04 is too old to modify that in the gui. I tried in the terminal manually, editing the config manually with vim and even dumping the config from my personal Arch laptop. We also tried proprietary Cisco AnyConnect but there is probably a server misconfiguration which causes the connection to drop and reconnect once a minute. In Ubuntu 24.04 it works given the user agent modification, and even though it was released a couple of weeks ago, LTS users don't get the update before mid August. So the easiest solution was to take the software compile it in the VM and use it there. It's a temporary solution but we had to have something working by the next morning. With such setup it's an annoyance to have password prompts show up. On top of that the keyboard is kinda fucked and some characters register multiple times making the situation with passwords even worse.
If you have a good idea what I could have tried let me know, love to hear new ideas.
The Ubuntu laptop had to connect to company vpn. It were using openconnect-network-manager-gnome thingy to do that. Recently the company upgraded their vpn software which is sorta incompatible with openconnect and requires a modified user agent string for it to prompt for 2FA keys. package in ubuntu 22.04 is too old to modify that in the gui.
If you have a good idea what I could have tried let me know, love to hear new ideas.
Hmm, tough one. Suggesting to post your question as a new post in relevant Lemmy /c/ or StackExchange and so on. Here as a not so new comment of a comment it will get little exposure I guess.
Yeah true, though it's dealt with already. Time to put the lid back on that can.
I've ran
I've run
thx
Great insight, really contributing to the community