Koozali.org: home of the SME Server

Enebaling chmod through FTP clients

TheNewGuy

Enebaling chmod through FTP clients
« on: March 23, 2002, 09:21:13 AM »
I want my development team to be able to chmod files in their corrisponding ibays' cgi-bin directory through an FTP client (e.g. WS_FTP). I think normaly you would edit /etc/ftpaccess but that file isn;t installed with SME. I was wondering how one could set this up? I was also wondering how to send the users of a group to a specific folder in the groups ibay when they login through FTP.

Robert Heaton

Re: Enebaling chmod through FTP clients
« Reply #1 on: March 23, 2002, 10:44:29 PM »
You can "chmod" files from Cute FTP - www.cuteftp.com

Rob.

TheNewGuy

Re: Enebaling chmod through FTP clients
« Reply #2 on: March 24, 2002, 04:14:07 AM »
Its not the FTP client that has a problem with chmod, its the server disallowing it.

Jon Blakely

Re: Enebaling chmod through FTP clients
« Reply #3 on: March 24, 2002, 01:41:06 PM »
You need to modify proftpd.conf to allow chmod via ftp.

/etc/e-smith/templates/etc/proftpd.conf/05DisallowChmod

change

 AllowChmod              false

to

AllowChmod              true

/sbin/e-smith/expand-template /etc/proftp.conf

Jon

Greg Zartman

Re: Enebaling chmod through FTP clients
« Reply #4 on: May 08, 2002, 01:08:26 AM »
To dump folks in a given directory when logging in via FTP, make a custom template fragment:

1.  cd /etc/e-smith/custom-templates/ext/proftpd.conf  (if the dir does not exist, make it).

2.  pico 05CustomRoot

3.  In pico:
#User Account Custom Login Statement
DefaultRoot             /home/e-smith/files/ibays/ibay_name_here ftp_login_name_here

4.  Save the file.

5.  Expand the proftp template fragments:
/sbin/e-smith/expand-template  proftpd.conf

6.  Restart the proftp deamon.

This example has all of your folks coming in under one FTP account name, which I like.  I'm sure one could set this up to work by group name with a little research in the proftp documentation.

Good Luck.

Greg Zartman

Greg Zartman

Re: Enebaling chmod through FTP clients
« Reply #5 on: May 08, 2002, 01:09:57 AM »
Sorry, I see a typo in my original post..  On step one, the path you are looking to create (or cd into) is:
/etc/e-smith/custom-templates/etc/proftpd.conf

Greg

Dan Brown

Re: Enebaling chmod through FTP clients
« Reply #6 on: May 08, 2002, 01:30:14 AM »
> /etc/e-smith/custom-templates/etc/proftpd.conf

Actually, that's templates-custom, not custom-templates.