this post was submitted on 03 May 2024
27 points (84.6% liked)

Linux

48287 readers
647 users here now

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.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I've run passwd and sudo su; passwd to change password for root and my account. Password is set correctly when using sudo and su but whenever I get prompted by pkexec it accepts only the old password. I've rebooted my system to make sure it was not an issue.

Edit: Solved Turns out the password were changed for root account but not my user account. I think the reason is that there are no password quality requirements on root accounts, but there are on the default account in ubuntu. Changing the password from root account passwd user worked fine.

top 15 comments
sorted by: hot top controversial new old

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

[–] Rustmilian@lemmy.world 5 points 6 months ago (3 children)

sudo su; passwd

Super User Do Super User

[–] Lemmchen@feddit.de 9 points 6 months ago (1 children)

If I'm not mistaken "su" stands for "switch user", not " super user".

[–] corsicanguppy@lemmy.ca 2 points 6 months ago

Yeah. It's as dumb as cat | grep but people love it.

... despite the added risk during that sudo/su switch.

[–] ReveredOxygen@sh.itjust.works 0 points 6 months ago

su needs root's password sudo su just needs your password

[–] hapidjus@mastodon.social 1 points 6 months ago (1 children)

@Agility0971 Why didn't passwd tell you the regular user password wasn't actually changed? Isn't that a much bigger issue?

[–] Agility0971@lemmy.world 1 points 6 months ago* (last edited 6 months ago)

hahaha It actually did, I found out shortly after initially posting this. I'm constantly reminded that I haven't learned reading yet (documentation, datasheets, terminal output etc...)

[–] lemmyreader@lemmy.ml -3 points 6 months ago (1 children)

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.

[–] Agility0971@lemmy.world 1 points 6 months ago* (last edited 6 months ago) (1 children)

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.

[–] lemmyreader@lemmy.ml 1 points 6 months ago (1 children)

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.

[–] Agility0971@lemmy.world 2 points 6 months ago

Yeah true, though it's dealt with already. Time to put the lid back on that can.

[–] corsicanguppy@lemmy.ca -4 points 6 months ago (2 children)
[–] RvTV95XBeo@sh.itjust.works 3 points 6 months ago

Great insight, really contributing to the community