[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-users
Subject:    Re: [Proftpd-user] Compiled proftpd 1.3.0 on Server running AIX 5.2ML8.1
From:       "Dot LAROCQUE" <dot7171 () msn ! com>
Date:       2006-05-03 2:50:09
Message-ID: BAY107-DAV108B464EDB813B7AC562F4BAB70 () phx ! gbl
[Download RAW message or body]

I have always assume just add the shell path in login.cfg and that did the trick on \
AIX. Off course that worked until now. Since /etc/shells file was brought up I \
finally check and yes there is one on AIX. I added the bash path and it is working \
fine.

Thanks for teaching me something
  ----- Original Message ----- 
  From: Sven Hoexter<mailto:sven@timegate.de> 
  To: proftp-user@lists.sourceforge.net<mailto:proftp-user@lists.sourceforge.net> 
  Sent: Tuesday, May 02, 2006 1:47 AM
  Subject: Re: [Proftpd-user] Compiled proftpd 1.3.0 on Server running AIX 5.2ML8.1


  On Mon, May 01, 2006 at 08:33:22PM -0600, Dot LAROCQUE wrote:
  > Thanks I found that directive this morning and it did the trick. 
  > 
  > But I am puzzled why proftpd does not think AIX bash is a valid shell
  > even when it is defined in the correct location in AIX (/etc/security/login.cfg)

  TJ, please correct me if I write something wrong now.

  After a look at the source it seems to me, with my very low programming skills,
  that the file to check for a valid shell is hardcoded in 
  include/default_paths.h.

  /* The location of your `shells' file; a newline delimited list of
   * valid shells on your system.
   */
  #define PR_VALID_SHELL_PATH     "/etc/shells"

  The file listed here will be checked for a valid shell in modules/mod_auth.c
  (search for auth_check_shell).

  So if I'm right you can change whatever you want in the login.cfg but it will
  not affect proftpd. Now the curious part is why your other shells work and the
  bash not. To be honest, I've no idea. Maybe someone else can shed some light
  on it.

  Anyway I would like to have it documented if the behaviour on AIX is different
  from other *nix systems.

  After some googling it seems that /etc/shells is a consensus for ftpds and
  even sendmail to define a valid shell. It's quite funny to see how many
  people have their OReilly CD Bookshelf publicly avaible. ;)

  Sven
  -- 
  If God passed a mic to me to speak
  I'd say stay in bed, world
  Sleep in peace
     [The Cardigans - 03:45: No sleep]


  -------------------------------------------------------
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
  _______________________________________________
  ProFTPD Users List   <proftpd-users@proftpd.org<mailto:proftpd-users@proftpd.org>>
  Unsubscribe problems?
  http://www.proftpd.org/list-unsub.html<http://www.proftpd.org/list-unsub.html>


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE></STYLE>

<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-LEFT: 10px; FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; \
BORDER-TOP-STYLE: none; PADDING-TOP: 15px; FONT-STYLE: normal; FONT-FAMILY: Verdana; \
BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; TEXT-DECORATION: none; \
BORDER-BOTTOM-STYLE: none"  leftMargin=0 topMargin=0 acc_role="text" \
CanvasTabStop="true"  name="Compose message area"><!--[gte IE 5]><?xml:namespace \
prefix="v" /><?xml:namespace prefix="o" /><![endif]--> <DIV>
<DIV>I have always assume&nbsp;just add the shell path in login.cfg and that did 
the trick on AIX. Off course that worked until now. Since /etc/shells file was 
brought up I finally check and yes there is one on AIX. I added the bash path 
and it is working fine.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for teaching me something</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV>  <DIV style="FONT: 10pt arial"><B>From:</B> <A \
title=mailto:sven@timegate.de   href="mailto:sven@timegate.de">Sven Hoexter</A> \
</DIV>  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=mailto:proftp-user@lists.sourceforge.net 
  href="mailto:proftp-user@lists.sourceforge.net">proftp-user@lists.sourceforge.net</A> \
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 02, 2006 1:47 AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Proftpd-user] Compiled 
  proftpd 1.3.0 on Server running AIX 5.2ML8.1</DIV>
  <DIV><BR></DIV>On Mon, May 01, 2006 at 08:33:22PM -0600, Dot LAROCQUE 
  wrote:<BR>&gt; Thanks I found that directive this morning and it did the 
  trick. <BR>&gt; <BR>&gt; But I am puzzled why proftpd does not think AIX bash 
  is a valid shell<BR>&gt; even when it is defined in the correct location in 
  AIX (/etc/security/login.cfg)<BR><BR>TJ, please correct me if I write 
  something wrong now.<BR><BR>After a look at the source it seems to me, with my 
  very low programming skills,<BR>that the file to check for a valid shell is 
  hardcoded in <BR>include/default_paths.h.<BR><BR>/* The location of your 
  `shells' file; a newline delimited list of<BR>&nbsp;* valid shells on your 
  system.<BR>&nbsp;*/<BR>#define PR_VALID_SHELL_PATH&nbsp;&nbsp;&nbsp;&nbsp; 
  "/etc/shells"<BR><BR>The file listed here will be checked for a valid shell in 
  modules/mod_auth.c<BR>(search for auth_check_shell).<BR><BR>So if I'm right 
  you can change whatever you want in the login.cfg but it will<BR>not affect 
  proftpd. Now the curious part is why your other shells work and the<BR>bash 
  not. To be honest, I've no idea. Maybe someone else can shed some light<BR>on 
  it.<BR><BR>Anyway I would like to have it documented if the behaviour on AIX 
  is different<BR>from other *nix systems.<BR><BR>After some googling it seems 
  that /etc/shells is a consensus for ftpds and<BR>even sendmail to define a 
  valid shell. It's quite funny to see how many<BR>people have their OReilly CD 
  Bookshelf publicly avaible. ;)<BR><BR>Sven<BR>-- <BR>If God passed a mic to me 
  to speak<BR>I'd say stay in bed, world<BR>Sleep in peace<BR>&nbsp;&nbsp; [The 
  Cardigans - 03:45: No 
  sleep]<BR><BR><BR>-------------------------------------------------------<BR>Using 
  Tomcat but need to do more? Need to support web services, security?<BR>Get 
  stuff done quickly with pre-integrated technology to make your job 
  easier<BR>Download IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimo<BR><A 
  title=http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642 \
  href="http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat= \
121642">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642</A><BR>_______________________________________________<BR>ProFTPD \
  Users List&nbsp;&nbsp; &lt;<A title=mailto:proftpd-users@proftpd.org 
  href="mailto:proftpd-users@proftpd.org">proftpd-users@proftpd.org</A>&gt;<BR>Unsubscribe \
  problems?<BR><A title=http://www.proftpd.org/list-unsub.html 
  href="http://www.proftpd.org/list-unsub.html">http://www.proftpd.org/list-unsub.html</A><BR></BLOCKQUOTE></DIV></BODY></HTML>



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ProFTPD Users List   <proftpd-users@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic