You are not logged in.

#1 2020-09-01 20:22:50

thisismyusername
Member
Registered: 2020-09-01
Posts: 2

When I logon a tty instance it immediately asks for my sudo password

So I am attempting to log in on a tty, and it looks something like this :


Arch Linux (tty1)
hostname login: _


Password: _


Last Login at (Date) on (tty1)
[sudo] password for user: _


And I think because of this I am unable to use a DM to login

This just started and I have no idea why.

at first I thought it was a problem with my .zshrc but I deleted its contents and the error persisted.

Does anyone have any clues to what might be causing this? or where I could look to find more info?

Thanks.

Offline

#2 2020-09-01 20:26:50

loqs
Member
Registered: 2014-03-06
Posts: 19,047

Re: When I logon a tty instance it immediately asks for my sudo password

Have you configured any other startup files for that user or in /etc?  If you login as root can you reproduce the issue?  If yes if you create a new user can you reproduce the issue?

Offline

#3 2020-09-01 20:41:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,735

Re: When I logon a tty instance it immediately asks for my sudo password

Does it also happen if you run "sudo -k; zsh"? If so, run "sudo -k; zsh -x" which will trace the shell ops (and hopefully tell you where this comes from)
Do you have OMZ installed?

Offline

#4 2020-09-01 22:30:01

thisismyusername
Member
Registered: 2020-09-01
Posts: 2

Re: When I logon a tty instance it immediately asks for my sudo password

loqs wrote:

Have you configured any other startup files for that user or in /etc?  If you login as root can you reproduce the issue?  If yes if you create a new user can you reproduce the issue?

I don't think I have configured any startup files for that user or in /etc. If I login as root I can not reproduce the issue, nor does the issue reappear when logging in with a different user.



seth wrote:

Does it also happen if you run "sudo -k; zsh"? If so, run "sudo -k; zsh -x" which will trace the shell ops (and hopefully tell you where this comes from)
Do you have OMZ installed?

It does not happen when I run that command, and I do not have OMZ installed.

Offline

#5 2020-09-01 22:37:00

loqs
Member
Registered: 2014-03-06
Posts: 19,047

Re: When I logon a tty instance it immediately asks for my sudo password

# getent passwd $AFFECTEDUSERNAME

Check which shell that user will start as.  Assuming it is zsh see Zsh#Startup/Shutdown_files.

Offline

Board footer

Powered by FluxBB