Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
change the shell section in /etc/passwd , can not login ssh?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
curtis123
n00b
n00b


Joined: 09 May 2004
Posts: 53

PostPosted: Tue Apr 26, 2005 3:30 am    Post subject: change the shell section in /etc/passwd , can not login ssh? Reply with quote

Hi all

I changed one account shell section in /etc/passwd, such as vi to place the original /bin/bash

if loing in local machine ,that is no problem, I can get a vi after login.

but when I try to login through ssh from a remote machine, I can never success in login . always get "access denied"

what 's the problem? I have read all the man page of sshd sshd_config ,but I get no hint
Back to top
View user's profile Send private message
FloppyMaster0
n00b
n00b


Joined: 07 May 2004
Posts: 62
Location: Detroit, MI, USA

PostPosted: Tue Apr 26, 2005 4:29 am    Post subject: Reply with quote

Try specifying an absolute path, like /usr/bin/vi.

BTW, this seems like a very strange thing to do anyway.
Back to top
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Tue Apr 26, 2005 5:42 am    Post subject: Reply with quote

Yeah, agreed. Type "which vi" to find out what command it's trying to execute and where that is. If it doesn't come up with anything then you'll need to export your $PATH variable (using export $PATH="/usr/bin/" or something like that).

Also, are there any other programs you can't access at the terminal? That's just a little weird...it's possible you screwed up your group configurations or something. Easy work around - delete your user account, recreate it with the same home directory, then chown your files to that new user.

Finally, are you sure the shell setup is correct?
Back to top
View user's profile Send private message
curtis123
n00b
n00b


Joined: 09 May 2004
Posts: 53

PostPosted: Tue Apr 26, 2005 5:49 am    Post subject: Reply with quote

FloppyMaster0 wrote:
Try specifying an absolute path, like /usr/bin/vi.

BTW, this seems like a very strange thing to do anyway.


noway, it is not a path problem ,it does not work . still get " access denied"

I 'm trying to keep certain login user in certain application. when he quit the application he logout too.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Apr 26, 2005 6:21 am    Post subject: Reply with quote

Does vi exist in /etc/shells?
Back to top
View user's profile Send private message
curtis123
n00b
n00b


Joined: 09 May 2004
Posts: 53

PostPosted: Tue Apr 26, 2005 2:18 pm    Post subject: Reply with quote

UberLord wrote:
Does vi exist in /etc/shells?


thanks , it solves my problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum