Page 1 of 2

su works, but not sudo install...

Posted: 2017-10-15 10:15
by xastunts
hello everyone! first of all my apoligies if this topic already have been handled ,or if i also have posted it in the wrong group.
i try to make it short! i can use the su command to allow myself to become root user. now when im at the terminal and as my regular user i do type : sudo apt-get install synaptic
it ask for my root password and it wont aceppt it. i get the error sorry try again. how ever it does seem to aceppt the command su and then makes me a root user. but why on earth wont it aceppt the password when using the sudo command? i'd be thankful for any advice or critic i can get from you guys :) . btw im on debian stretch kde . cheers!

Re: su works, but not sudo install...

Posted: 2017-10-15 10:39
by L_V
xastunts wrote:it ask for my root password
Are you sure ?
Try with your user password.
+ what report this:

Code: Select all

id

Re: su works, but not sudo install...

Posted: 2017-10-15 11:12
by imazighen-thamzgha
In order to use sudo you have to type your user password, not the root password, that's the difference in security.

Code: Select all

sudo synaptics
// type your password
and you're done.

Re: su works, but not sudo install...

Posted: 2017-10-15 11:18
by xastunts
the lord of light has told me a lesson!! YES!! i used my user password and not my root password this time and it worked. one more thing about this now. should i change my sudo password to something else then my user password if not using the root as my sudo password? is there any advantages or disadvantages in doing so? thousands of thanks for your help guys! much appriciated.

Re: su works, but not sudo install...

Posted: 2017-10-15 11:39
by L_V
Let's think two minutes...
Can you imagine a system administrator giving his own password to ALL users ??????
I hope not.
root and user password should be different, to force you think about what you do.

Re: su works, but not sudo install...

Posted: 2017-10-15 12:09
by imazighen-thamzgha
You can't change your sudo password, since it doesn't exist, your sudo password is the same as your user password.
And you should not use the root account for security reasons, that's why sudo exists.

Re: su works, but not sudo install...

Posted: 2017-10-15 12:31
by L_V
What ?
I have a different root and user password, ... because I have a "real" root account created during installation.
If not, it's a kind of "ubuntu" mode / may be your & xastunts configurations. Don't know.

Re: su works, but not sudo install...

Posted: 2017-10-15 13:02
by imazighen-thamzgha
You don't have to worry about the root user, just give it a good password and forget about it, all you will use is your user account, with sudo.

Re: su works, but not sudo install...

Posted: 2017-10-15 13:17
by L_V
@imazighen-thamzgha
When you boot Debian in single mode (kernel option), the root password will be requested for system administration.
Which one do you give ? Your user password ? If there are 5 users who are sudoers, how it works ???
I think it is much more confusing without root account.

I don't remember how it works in Ubuntu which is a bit specific, and I always have had a root account created during netinstall in so called "expert" mode.

Re: su works, but not sudo install...

Posted: 2017-10-15 14:19
by imazighen-thamzgha
You just get prompted for the username and password, and you just have to type your username and password, plain and simple.

Re: su works, but not sudo install...

Posted: 2017-10-15 14:24
by L_V
imazighen-thamzgha wrote:You just get prompted for the username and password.
For a boot in single mode, then for pure system administration, The "username" means nothing if there are 10 users, especially if "sudo" is not loaded.

Re: su works, but not sudo install...

Posted: 2017-10-15 14:56
by imazighen-thamzgha
how in the?? you're confusing me, what is your problem right now?

Re: su works, but not sudo install...

Posted: 2017-10-15 15:04
by Head_on_a_Stick
L_V wrote:For a boot in single mode, then for pure system administration
In BunsenLabs we have the root account locked as standard and I would always advise users to boot with the init=/bin/bash kernel parameter for a passwordless root shell, although rescue from our "live" image is almost always preferable because graphical browser.

But imazighen-thamzgha is right, this is off topic.

Re: su works, but not sudo install...

Posted: 2017-10-15 15:04
by L_V
imazighen-thamzgha wrote:how in the?? you're confusing me, what is your problem right now?
I don't have any with a root account. The confusion is when you do not have a root account.
First post is from xastunts which has had a problem.
I just explained to xastunts that the password requested by sudo is not the root one, but the user one, assuming the user is a sudoers, which can be checked by the user himself.

Code: Select all

id

Re: su works, but not sudo install...

Posted: 2017-10-15 15:42
by imazighen-thamzgha
Am sorry mate I have this problem with focusing, I actually thought you were the OP, sorry, peace.

Re: su works, but not sudo install...

Posted: 2017-10-15 16:18
by xastunts
thank you guys for all your answers! i really appreciate it alot. i have install debian 9 with the expert install and choosen not to login as root. so i use the su command to become god in linux =P :mrgreen:

Re: su works, but not sudo install...

Posted: 2017-10-15 16:28
by xastunts
also could i perhaps ask you guys another question right here or is it against the rules, and am i asked to create a new thread instead? its regarding synaptic package manager. that i cant find much in the searches so i probably need to add som repositories? for example it should be able to find a comman app like skype with the right settings am i right?

Re: su works, but not sudo install...

Posted: 2017-10-15 16:48
by imazighen-thamzgha
Create another thread.
and

Code: Select all

sudo apt-get update
if you have the right sources

Re: su works, but not sudo install...

Posted: 2017-10-15 18:06
by xastunts
thank you budd! im trying to install vuze from a tar.bz2 file . lets say its not like using winzip on windows hahah

Re: su works, but not sudo install...

Posted: 2017-10-16 19:17
by debiman
xastunts wrote:it should be able to find a comman app like skype
common only for users of microsoft products.
:lol: