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

 

 

 

Cant open terminal or synaptic

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
shane97
Posts: 8
Joined: 2016-10-31 11:51

Cant open terminal or synaptic

#1 Post by shane97 »

Hi
I have Debian jessie installed on my computer. Problem is I cant open any terminal applications or synaptic. I have tried both xfce4-terminal or xterm. I think I know the cause of this problem. In /etc/passwd I found this line

Code: Select all

shane:x:1000:1000:shane,,,:/home/shane:/bin/false
I cant find a way to replace 'false' with 'bash'. can you help? Thanks.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Cant open terminal or synaptic

#2 Post by Segfault »

Use vipw utility as root. The real question is why it was set to false?

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cant open terminal or synaptic

#3 Post by GarryRicketson »

Have you tried :
<ctrl+alt+f1>
to open a terminal
Actually <ctrl+alt+f1> thru f7 should work,
you then login , as root
or as a user and use sudo,
Actually I think you are going to
have to use root, and the root password,
"shane", if that is the normal user probably will
not be able to login, since the path for the password is
botched.
Then you can use a editor, like VI, pico, nano,... to edit any
files you need to.
How did your computer get into this state ?
I mean on a normal install, accessing the terminal
is not a problem,...
It seems like maybe there is something wrong, and some details
you are not telling us.
Re: Cant open terminal or synaptic

Post by Segfault » 2016-12-02 10:21
Use vipw utility as root. The real question is why it was set to false?

Exactly,....How did it get changed ?
Last edited by GarryRicketson on 2016-12-02 17:30, edited 3 times in total.

shane97
Posts: 8
Joined: 2016-10-31 11:51

Re: Cant open terminal or synaptic

#4 Post by shane97 »

Segfault wrote:Use vipw utility as root. The real question is why it was set to false?
I have changed it now everything is fine :D didnt know about vi so thanks to both of you.
How did your computer get into this state ?
I was playing around and i messed up and fixed it too. thats how you learn linux right? :mrgreen:

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Cant open terminal or synaptic

#5 Post by Segfault »

Actually vipw does not necessarily run vi, it runs $EDITOR.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cant open terminal or synaptic

#6 Post by GarryRicketson »

I was playing around and i messed up and fixed it too. thats how you learn linux right?
That is good you fixed it,
well , it is good when we learn from our mistakes.

Post Reply