Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

su works, but not sudo install...

Here you can discuss every aspect of Debian. Note: not for support requests!
Message
Author
xastunts
Posts: 5
Joined: 2017-10-15 09:57

su works, but not sudo install...

#1 Post 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!

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#2 Post 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

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#3 Post 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.
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

xastunts
Posts: 5
Joined: 2017-10-15 09:57

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

#4 Post 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.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#5 Post 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.

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#6 Post 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.
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#7 Post 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.

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#8 Post 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.
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#9 Post 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.

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#10 Post 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.
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#11 Post 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.
Last edited by L_V on 2017-10-15 14:58, edited 1 time in total.

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#12 Post by imazighen-thamzgha »

how in the?? you're confusing me, what is your problem right now?
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#13 Post 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.
deadbang

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

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

#14 Post 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

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#15 Post by imazighen-thamzgha »

Am sorry mate I have this problem with focusing, I actually thought you were the OP, sorry, peace.
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

xastunts
Posts: 5
Joined: 2017-10-15 09:57

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

#16 Post 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:

xastunts
Posts: 5
Joined: 2017-10-15 09:57

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

#17 Post 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?

imazighen-thamzgha
Posts: 38
Joined: 2017-04-21 09:38

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

#18 Post by imazighen-thamzgha »

Create another thread.
and

Code: Select all

sudo apt-get update
if you have the right sources
ⵉⵎⴰⵣⵉⵖⴻⵏ / imaZighen

xastunts
Posts: 5
Joined: 2017-10-15 09:57

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

#19 Post 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

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#20 Post by debiman »

xastunts wrote:it should be able to find a comman app like skype
common only for users of microsoft products.
:lol:

Post Reply