[SOLVED] Passwords messed up

Kernels & Hardware, configuring network, installing services

Re: Passwords messed up

Postby eor2004 » 2017-05-02 02:40

I have added my user account password to use as "sudo" by doing "adduser myusername sudo" and removed myself "deluser myusername sudo" a couple of times without any trouble, by doing an "deluser myusername sudo" you're telling your system to stop using your user account password as if it were your root password and start using again your real root password you had setup when installing debian.

P.S. A "logout" or a "reboot" maybe needed afterwards.
Debian Stretch x64, Cinnamon 3.2.7, Kernel Linux 4.9.0-1-amd64, Pentium Dual-Core E5300 @ 2.6Ghz, Gigabyte G41M-ES2L, Intel 4 Series Integrated Graphics Controller, 1Tb Caviar Black WD1001FALS.
User avatar
eor2004
 
Posts: 144
Joined: 2013-10-01 22:49
Location: Puerto Rico

Re: Passwords messed up

Postby GarryRicketson » 2017-05-02 03:02

ticojohn wrote:
Code: Select all
john@JohnBoy:~$ synaptic
bash: synaptic: command not found

As root, I enter synaptic and it opens.

Not sure what Garry's suggestion is. I read the link but don't see what actions I might take. And seeing that other programs, as mentioned previously, are also doing the same I wonder what might be messed up. Hope not to have to reinstall Jessie but will if necessary.

Nothing is messed up,...a normal user can not start synaptic, it either needs to be root, and using root password.
OR
Using sudo, and then the users password would be used.
Code: Select all
garry@debian:~$ synaptic
-bash: synaptic: command not found
 

You would need to use :
Code: Select all
sudo synaptic

and then you would be prompted for the USERS password,...not root's password.
But any way, since you have removed the user from sudo, you won't be able to
use sudo any more.
Of course you can put the user back into the sudo group later if so desired.
The link I posted , goes to a very basic simple tutorial, on "sudo", that is where
I saw that it said,
Note that it is asking for your password, not the root password.

It also tells about adding a user to sudo or removing a user from sudo, and other things about using sudo.
There never was anything wrong with your system to start with, the tutorial all though basic, would be easier to understand then the manual, but obviously you
did not really read it, nor the manual,....
ticojohn> Probably all operator error, though I really don't know what I may have done.

Probably ???, It definitely is , and there never really was anything wrong, it was because you did not know what you are doing, and when someone does not know what they are doing, they certainly should not be doing things as root, or even using sudo,...
User avatar
GarryRicketson
 
Posts: 4057
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Passwords messed up

Postby ticojohn » 2017-05-02 12:43

Garry,
Thanks so much for the kind words. I did read the link and I do understand the difference between using su and sudo, thank you very much. My issue was that never before, when selecting Synaptic from the applications menu, had the system required me to enter my user password instead of the root password. Be that as it may I will carry on. Thanks for all of the positive remarks.

Perhaps the reason it happened is that after adding myself to the sudo group, certain items in the Application Menu>System would then request my user password. Seems odd to me but perhaps that's just the way it is.

From my point of view, if I am invoking Synaptic from a terminal then using my user password, if invoked using sudo, is okay. However, I would think that when selecting from the menu that it would want my root password. However, I can maybe understand that when logged in, and as part of the sudo group, perhaps the system is looking for the user password to open Synaptic. I think that having that kind of access would allow someone other than myself, if the computer was unattended and not locked, to be able to use Synaptic without my knowing it. For instance, in a terminal one could enter
Code: Select all
gksu synaptic

and it would open. No password required.
I'm not irrational, I'm just quantum probabilistic.
User avatar
ticojohn
 
Posts: 655
Joined: 2009-08-29 18:10
Location: Costa Rica

Re: Passwords messed up

Postby eor2004 » 2017-05-02 13:14

ticojohn wrote:Perhaps the reason it happened is that after adding myself to the sudo group, certain items in the Application Menu>System would then request my user password. Seems odd to me but perhaps that's just the way it is.

Yes, this is the way the system should behave after adding yourself as "sudo".
Debian Stretch x64, Cinnamon 3.2.7, Kernel Linux 4.9.0-1-amd64, Pentium Dual-Core E5300 @ 2.6Ghz, Gigabyte G41M-ES2L, Intel 4 Series Integrated Graphics Controller, 1Tb Caviar Black WD1001FALS.
User avatar
eor2004
 
Posts: 144
Joined: 2013-10-01 22:49
Location: Puerto Rico

Re: Passwords messed up

Postby ticojohn » 2017-05-02 18:56

eor2004 wrote:
ticojohn wrote:Perhaps the reason it happened is that after adding myself to the sudo group, certain items in the Application Menu>System would then request my user password. Seems odd to me but perhaps that's just the way it is.

Yes, this is the way the system should behave after adding yourself as "sudo".

Well, now I know. Good to have a definitive answer instead of telling me to go read something that may, or may not, answer my question.
I usually do try to read and understand prior to asking a question here. Thanks for your feedback.
I'm not irrational, I'm just quantum probabilistic.
User avatar
ticojohn
 
Posts: 655
Joined: 2009-08-29 18:10
Location: Costa Rica

Re: [SOLVED] Passwords messed up

Postby eor2004 » 2017-05-02 22:01

You're welcome and glad it helped. :)
Debian Stretch x64, Cinnamon 3.2.7, Kernel Linux 4.9.0-1-amd64, Pentium Dual-Core E5300 @ 2.6Ghz, Gigabyte G41M-ES2L, Intel 4 Series Integrated Graphics Controller, 1Tb Caviar Black WD1001FALS.
User avatar
eor2004
 
Posts: 144
Joined: 2013-10-01 22:49
Location: Puerto Rico

Previous

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable