Index: [Article Count Order] [Thread]

Date:  Wed, 28 Nov 2007 12:02:01 +0000
From:  Gustavo Silva <pseudo (at mark) zbronx.com>
Subject:  [coba-e:11277] Re: bluequartz index.html path
To:  coba-e (at mark) bluequartz.org
Message-Id:  <474D58B9.8010901 (at mark) zbronx.com>
In-Reply-To:  <fed0d43e0711280157w33c08ec6t99723a5ed0142815 (at mark) mail.gmail.com>
References:  <20071127130041.57DF.MARCCHABOT (at mark) marcchabot.com>	 <02d801c83128$d62c00c0$0101a8c0 (at mark) systemax>	 <20071127201224.C3A6.MARCCHABOT (at mark) marcchabot.com> <fed0d43e0711280157w33c08ec6t99723a5ed0142815 (at mark) mail.gmail.com>
X-Mail-Count: 11277

Hello,

Thats a proFTPD configuration issue.
Even as a site/adm, a FTP cliente takes you to the user's web folder. So 
you need to make the FTP cliente change to the site's web directory as 
the site admin logs on.
Check my /etc/proftpd.conf and compare with yours. pay attention to 
Defaultroot and Defaultchdir variables in the various sections of the 
config file.

Regards,
Gustavo

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFTPD"
ServerType                      inetd
DeferWelcome                    off
DefaultServer                   on
DefaultRoot                     / wheel
DefaultRoot                     / admin-users
DefaultRoot                     ~/../../.. site-adm
DefaultRoot                     ~ !site-adm

# Port 21 is the standard FTP port.
Port                            0
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           002

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nobody

# set persisten passwd to off so proftp uses glibc functions
# to look at passwd and group files
PersistentPasswd        off

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite                on
  AllowRetrieveRestart          on
  AllowStoreRestart             on
</Directory>

# A basic anonymous configuration, no upload directories.

# Restore file permissions capability to site administrator
 <Global>
   # Report localtime, not GMT
   TimesGMT                     off
   IdentLookups                 off
   DefaultChdir                 ../../../web site-adm
   AllowOverwrite               on
   AllowRetrieveRestart         on
   AllowStoreRestart            on
 </Global>

# begin global -- do not delete
IdentLookups off
UseReverseDNS off
MaxClients 100000
# end global -- do not delete
<VirtualHost xxx.xxx.xxx.xxx>
    DefaultRoot     / wheel
        DefaultRoot             / admin-users
        DefaultRoot             ~/../../.. site-adm
        DefaultRoot             ~ !site-adm
        AllowOverwrite  on
        DisplayLogin    .ftphelp
</VirtualHost>



Alan MacDonald escreveu:
> Hi,
>
> In your transcript you do:
>
>   
>> ftp> cd web
>> 250 CWD command successful
>> ftp> ls
>>     
>
> This should be
>
>   
>> ftp> cd /web
>> 250 CWD command successful
>> ftp> ls
>>     
>
> unless it is a mistype.
>
> rgds
>
> Alan
>
> On 28/11/2007, Marc Chabot <marcchabot (at mark) marcchabot.com> wrote:
>   
>> hello  Gerald Waugh,
>>
>> i tried it manually and i got this
>>
>> ftp host.domain.tld
>> Connected to host.domain.tld.
>> 220 ProFTPD 1.2.10 Server (ProFTPD) [64.xxx.xxx.xxx]
>> User (host.domain.tld:(none)): user-name
>> 331 Password required for user-name.
>> Password:
>> 230 User user-name logged in.
>> ftp> ls
>> 200 PORT command successful
>> 150 Opening ASCII mode data connection for file list
>> Network Trash Folder
>> Private
>> web
>> 226 Transfer complete.
>> ftp: 48 bytes received in 0.00Seconds 48000.00Kbytes/sec.
>> ftp> cd web
>> 250 CWD command successful
>> ftp> ls
>> 200 PORT command successful
>> 150 Opening ASCII mode data connection for file list
>> index.htm
>> index.html
>> image.jpg
>> 226 Transfer complete.
>> ftp: 35 bytes received in 0.00Seconds 35000.00Kbytes/sec.
>> ftp> exit
>> Invalid command.
>> ftp> quit
>> 221 Goodbye.
>>
>> and that is the /web of
>>
>> /home/sites/www.domain.tld/users/web
>>
>> and not the /web of
>>
>> /home/sites/www.domain.tld/web/
>>
>> should i understand that you guys go to virtual domain, create a site
>> administrator user and it just works, you can ftp in the right /web
>> instead of the user's /web directory?
>>
>> was is wrong with my setup then?
>> should i compare my httpd.conf with one of your's?
>>
>> i just got another old 1U box with raid and began the setup with BQ 4.8
>> i downloaded from nuonce.net, just to see if i'll get the same wacky ftp
>> user behavior, but i'll take some time before i get it up and running in
>> the rack
>>
>> still, i want to understand what is wrong with my current BQ 4.7 setup
>>
>> On Tue, 27 Nov 2007 13:07:57 -0600
>> "Gerald Waugh" <gwaugh (at mark) frontstreetnetworks.com> wrote:
>>     
>>> An example;
>>>
>>> [root (at mark) fsn3 admin]# ftp host.domain.tld
>>> Connected to host.domain.tld.
>>> 220 ProFTPD 1.2.10 Server (ProFTPD) [1.2.3.4]
>>> 500 AUTH not understood
>>> 500 AUTH not understood
>>> KERBEROS_V4 rejected as an authentication type
>>> Name (fsn.raqware.com:root): <user-name>
>>> 331 Password required for user-name.
>>> Password:
>>> 230 User user-name logged in.
>>> Remote system type is UNIX.
>>> Using binary mode to transfer files.
>>> ftp> cd /web
>>> 250 CWD command successful
>>> ftp> pwd
>>> 257 "/web" is current directory.
>>> ftp> ls (gives listing for the /web directory)
>>>
>>> Gerald
>>>       
>> --
>> Best regards,   mail to:  MarcChabot (at mark) MarcChabot.com
>> SysAdmin & MailAdmin for http://www.caminfo.ca
>> L'interdit des interdits en 2 heures http://zeitgeistmovie.com
>>
>>
>>
>>     
>
>
>