View previous topic :: View next topic |
Author |
Message |
curtis123 n00b
Joined: 09 May 2004 Posts: 53
|
Posted: Tue Apr 26, 2005 3:30 am Post subject: change the shell section in /etc/passwd , can not login ssh? |
|
|
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 |
|
|
FloppyMaster0 n00b
Joined: 07 May 2004 Posts: 62 Location: Detroit, MI, USA
|
Posted: Tue Apr 26, 2005 4:29 am Post subject: |
|
|
Try specifying an absolute path, like /usr/bin/vi.
BTW, this seems like a very strange thing to do anyway. |
|
Back to top |
|
|
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Tue Apr 26, 2005 5:42 am Post subject: |
|
|
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 |
|
|
curtis123 n00b
Joined: 09 May 2004 Posts: 53
|
Posted: Tue Apr 26, 2005 5:49 am Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Tue Apr 26, 2005 6:21 am Post subject: |
|
|
Does vi exist in /etc/shells? |
|
Back to top |
|
|
curtis123 n00b
Joined: 09 May 2004 Posts: 53
|
Posted: Tue Apr 26, 2005 2:18 pm Post subject: |
|
|
UberLord wrote: | Does vi exist in /etc/shells? |
thanks , it solves my problem. |
|
Back to top |
|
|
|