For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > after chang my shell ,ftp cna't login









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author after chang my shell ,ftp cna't login
redbox

2007-07-11, 4:14 am

i down a ksh ,and unzip it into directory /bin.Also modify /etc/
passwd to chang my defaut shell.
After thess ,i can't login in myserver by ftp.MY servce is redhat
9.0 ,vsftpd.
There are any thing wrong in my setting my defaut shell?

Barry Margolin

2007-07-11, 4:14 am

In article <1184129309.654992.193950@g37g2000prf.googlegroups.com>,
redbox <guojianlee@gmail.com> wrote:

> i down a ksh ,and unzip it into directory /bin.Also modify /etc/
> passwd to chang my defaut shell.
> After thess ,i can't login in myserver by ftp.MY servce is redhat
> 9.0 ,vsftpd.
> There are any thing wrong in my setting my defaut shell?


From "man ftpd" (this is from Mac OS X, the exact wording on your OS may
be somewhat different, but the intent is the same):

3. The user must have a standard shell returned by
getusershell(3). If the user's shell field in the
password database is empty, the shell is assumed to be
/bin/sh. As per shells(5), the user's shell must be
listed with full path in /etc/shells.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Logan Shaw

2007-07-11, 4:14 am

redbox wrote:
> i down a ksh ,and unzip it into directory /bin.Also modify /etc/
> passwd to chang my defaut shell.
> After thess ,i can't login in myserver by ftp.MY servce is redhat
> 9.0 ,vsftpd.
> There are any thing wrong in my setting my defaut shell?


Some ftp servers check /etc/shells to see if your shell is
listed in that file. Check your ftp server's documentation to
see if it does that.

- Logan
redbox

2007-07-11, 4:14 am

On Jul 11, 1:17 pm, Logan Shaw <lshaw-use...@austin.rr.com> wrote:
> redbox wrote:
>
> Some ftp servers check /etc/shells to see if your shell is
> listed in that file. Check your ftp server's documentation to
> see if it does that.
>
> - Logan


Thank you,I solved the problem

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com