[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Site Admin Dropping straight to /web
- Subject: Re: [cobalt-users] Site Admin Dropping straight to /web
- From: PeakPeak Servers <servers@xxxxxxxxxxxx>
- Date: Wed Oct 17 17:09:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Another caveat
The FTP DefaultRoot and DefaultChdir will be HOSED!
AND when they ftp in they will be placed into the /home/sites directory
structure, and they get to see all the clients you have (or lack of clients)
If you want this user to to be placed into $HOME/web when they FTP in
add the following line into /etc/proftp.conf
DefaultChdir ../../web site-adm
in the <global> section
If they are so lazy and cant type /web is they telnet in, put cd /web into
their shell startup rc file. (in csh and tcsh its call .cshrc and its
located in their default directory) for other shells ask somebody else :)
Hope this helps you out!
-Thomas
I read what Thomas wrote and am trying to make it work.
If anyone out there has a sample /etc/proftpd.conf file they can post
that shows this working, that would be great! I'm having no luck.
First I found this on the web:
<http://cobalt-knowledge.sun.com/cgi-bin/kbase.cfg/php/enduser/std_adp.php?p_refno=010729-000002&p_created=996432931>
I'm trying to make it work on a RaQ4 with the attached
/etc/proftpd.conf config file and can't make it work. What am I
doing wrong? When I FTP in as the site user, it doesn't chdir into
the ../../web directory, it just plops the user into their home
directory. For some reason it is ignoring the DefaultChdir directive
and leaving the user in their same default directory.
Here are the verbose in.proftpd log messages at the bottom of this
message that happen when I log in as the user commlink.
In other words, when I ftp in as the virtual site user commlink I
expect to be plopped down into /home/sites/site1/web and instead
proftpd seems to be putting me in /home/sites/site1/users/commlink
instead.
Chris
-----
Here is the /etc/proftpd.conf file:
ServerName "ProFTPD"
ServerType inetd
DeferWelcome off
DefaultServer on
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
# added by me 10.17.2001
DefaultChdir ../../web site-adm
# Port 21 is the standard FTP port.
Port 21
# 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
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
# Restore file permissions capability to site administrator
<Global>
AllowChmod on
# Report localtime, not GMT
TimesGMT off
</Global>
<VirtualHost 207.174.6.249>
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
AllowOverwrite on
DisplayLogin .ftphelp
</VirtualHost>
-----
/var/log/messages with -d5 turned on for in.proftpd:
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
Config for ProFTP
D:
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - /
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
AllowOverwrite
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - Umask
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - AllowChmod
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - TimesGMT
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - DeferWelcome
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
DefaultServer
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - DefaultRoot
Oct 17 18:00:43 Raq4Server last message repeated 2 times
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - DefaultChdir
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - Umask
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - User
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - UserName
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - Group
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - GroupName
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - AllowChmod
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - TimesGMT
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
Config for ProFTP
D:
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - DefaultRoot
Oct 17 18:00:43 Raq4Server last message repeated 2 times
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com -
AllowOverwrite
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - DisplayLogin
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - AllowChmod
Oct 17 18:00:43 Raq4Server proftpd[699]: Raq4Server.peakpeak.com - TimesGMT
Oct 17 18:00:43 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - connected - local :
192.168.1.56:21
Oct 17 18:00:43 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - connected - remote :
207.174.103.3:1442
Oct 17 18:00:43 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - FTP session opened.
Oct 17 18:00:48 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - received: USER commlink
Oct 17 18:00:48 Raq4Server last message repeated 2 times
Oct 17 18:00:48 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - no supplemental groups
found for user 'commlink'
Oct 17 18:00:52 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - received: PASS (hidden)
Oct 17 18:00:52 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - received: PASS (hidden)
Oct 17 18:00:52 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - no supplemental groups
found for user 'commlink'
Oct 17 18:00:52 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - Preparing to chroot() the
environment, path = '/home/sites/site1/users/commlink'
Oct 17 18:00:52 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - Environment successfully
chroot()ed.
Oct 17 18:00:53 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - Linuxprivs: capabilities '=
cap_net_bind_service+ep'.
Oct 17 18:00:53 Raq4Server proftpd[699]: 192.168.1.56
(internal2.peakpeak.com[207.174.103.3]) - received: SYST