LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2005, 02:17 PM   #1
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Proftpd help


Hey all,

I am having some problems with permission and proftpd. Basically I am trying to make it that whoever uploads a file to my ftp server, I want the file to have a permission of 750 I am not able to do that. I have tried putting 750 in the proftpd.conf but it doesn't work

Any help would be great

Thanks
 
Old 12-06-2005, 03:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I'm afraid this cannot be done for security reasons. See the proftpd documentation: http://www.proftpd.org/docs/directiv...ref_Umask.html
for details.
What you can do is to use the "SITE CHMOD" command to change the permissions to your like after you ulpoaded the files, or run a script via cronjob to do this for you.
 
Old 12-06-2005, 05:32 AM   #3
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
ftp is a very huge security issue.... always was so they sorround all sides trying to avoid any problem, sometimes this can be very annoying... but is for the good!
 
Old 12-06-2005, 10:46 AM   #4
krassyo
LQ Newbie
 
Registered: Sep 2003
Posts: 20
Blog Entries: 1

Rep: Reputation: 0
Lightbulb

If you want to change some permissions you could also make a shell scipt and put it in /etc/cron.hourly or /etc/cron.dayly etc. I suggest to chown all files to some other user/group than root.
I run ftp server on my lan and I recompiled ProFTPD with these params:
./configure \
--prefix=/usr \
--enable-autoshadow \
--enable-ctrls \
--enable-ipv6 \
--localstatedir=/var/run \
--with-modules=mod_readme:mod_ratio:mod_tls:mod_wrap:mod_ctrls_admin:mod_md5fs:mod_sql:mod_sql_mysql:mod_qu otatab:mod_quotatab_sql:mod_quotatab_file \
--with-includes=/usr/include/mysql \
--with-libraries=/usr/lib/mysql \

My /home/ftp/ftpusers/ dir and included files are chmod nobody.nobody and I did not experienced any problems since 3rd of Jan 2005.

Last edited by krassyo; 12-06-2005 at 10:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 11:06 AM
ProFTPD help!!! berkay Linux - Networking 16 12-08-2006 07:43 AM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 09:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration