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

 

 

 

user signin problem Debian 11 fresh install

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Jon Jon
Posts: 1
Joined: 2021-09-13 19:12

user signin problem Debian 11 fresh install

#1 Post by Jon Jon »

Hello I am known as Jon Jon on facebook.
I am 77 years old but try to not let it
dissuade me from learning new things.

The following are the problems I am
having with the install.
I originally downloaded the cd version
about 300 plus mb. I was going to use
it on an older Lap Top with original
win-7 upgraded to 10. I formated the
entire drive to do the install.

When the install finished it did not
reboot to a new sign in screen instead
it rebooted to a doss terminal to sign
in. attempting to sign in resulted in
a failure much like my present situation.
After a few attempts I decided to download
the full dvd version near 4gb. Everything
loaded nicely and I got me a sign in screen
where I proceeded to use my user PW. That
went real smooth and It open to my new
gnome desktop. Things (apts)seem to be
working ok. First thing I tried was a browser
and it was ok. Next i wanted to see about
installing Tor browser. This is where the
problem occurs as with my last attempts to
install. I found Konsol and tried that out.
It did not work with a sudo command. I then
located the terminal and tried using it.
I again had a problem with either the command
line or something not reconizing my pw.
I initionally entered the following:
"sudo apt update && sudo apt full-upgrade -y"
Then I hit enter. The following request appeared.
[sudo] password for user" []
I typed in the pw and hit enter and the following
comment returned.
cheif is not in the sudoers file. This incident
will be reported. Or subsequent try says sorry
try again.
The password works at startup and at one instance
I downloaded via software.
Can someone help me understand where I am
going wrong. I remember with Linux Mint
cinnamon desktop I had no problems.

zwab
Posts: 27
Joined: 2021-08-27 15:41
Been thanked: 3 times

Re: user signin problem Debian 11 fresh install

#2 Post by zwab »

You need to log out from your user account, then log in as root, using the root password you specified at the install. Open the users menu, find your username, add yourself to the sudo group. or usermod -a -G sudo user as root

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: user signin problem Debian 11 fresh install

#3 Post by arochester »

[sudo] password for user" []
I typed in the pw and hit enter and the following
comment returned.
cheif is not in the sudoers file. T

1) Become Root by putting in a Terminal

Code: Select all

su
It will ask for your password.

2) When you are Root, input

Code: Select all

apt-get install sudo
3) The put in

Code: Select all

usermod -a -G sudo <username>
Replace <username> with your username to which you want to grant sudo access.
Remember to use the same case.

4) Now logout & login to get sudo access to those users.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: user signin problem Debian 11 fresh install

#4 Post by p.H »

How can you guys give such poor advice ?
zwab wrote: 2021-09-13 20:09 You need to log out from your user account, then log in as root
No you don't need to.
arochester wrote: 2021-09-13 20:12su
No :

Code: Select all

su -
Note the "-". It does matter.
arochester wrote: 2021-09-13 20:12 It will ask for your password.
No, the root password.
arochester wrote: 2021-09-13 20:12 apt-get install sudo
Useless. sudo is already installed.
arochester wrote: 2021-09-13 20:12 usermod -a -G sudo <username>
Why do you suggest this complicated command instead of the much simpler

Code: Select all

adduser cheif sudo
?
Jon Jon wrote: 2021-09-13 20:01 cheif is not in the sudoers file.
You did the install twice but still did not pay attention to the displayed information saying the normal user receives sudo privileges only when you do not set a root password.

zwab
Posts: 27
Joined: 2021-08-27 15:41
Been thanked: 3 times

Re: user signin problem Debian 11 fresh install

#5 Post by zwab »

He'll need to log out then back in to his account anyway for it to take effect, may as well just log out to begin with and do it as root.
p.H wrote: 2021-09-13 20:45

Code: Select all

adduser cheif sudo
if it works it works :D

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: user signin problem Debian 11 fresh install

#6 Post by p.H »

zwab wrote: 2021-09-13 20:54 He'll need to log out then back in to his account anyway for it to take effect
Right, but there is no need to log in as root. Besides, the display manager may not allow to log in as root. I suspect the OP does not even know how to switch to a text console.

Post Reply