LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-01-2004, 09:52 AM   #1
mackayr
LQ Newbie
 
Registered: Sep 2003
Posts: 13

Rep: Reputation: 0
File permissions for web site files/folders


I have pure-ftpd set up on my server, with thttpd running a web site. I've set up virtual users in pure-ftpd and linked one with the website folder (/srv/www/htdocs).

I can successfully upload/rename, etc... any files in that folder, but when I upload new files, the permissions are not correct for thttpd. The folder needs to be 711 or 755 and the files need to be 644.

Is there any way to configure the pure-ftpd to always post files with certain permissions? And taking it to the next step, posting folders with different permissions?

I know that I should be able to do this, as it's very common to upload website files through ftp (in fact I know of no other way).

Please advise.
 
Old 12-01-2004, 11:49 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
I'm not familiar with pure-ftpd, but the setting you're looking for is the default 'mask' that the server applies to incoming files.

If the server doesn't have options to support this, you could always write a cron job to set the permissions on the directories correctly at a given interval (or get an FTPd that does).

scp and rsync are just a couple of examples of uploading files to a site without employing FTP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
*@!Z Yarg!!!! Web site in Apache not showing - think it is Permissions! ServerStorm Linux - Software 4 03-17-2005 10:17 AM
Changing file permissions within multiple folders cloudxiii Linux - Newbie 1 02-21-2005 12:20 AM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 11:48 AM
NTFS- cannot alter permissions of files, only folders tomranson Linux - General 2 10-19-2003 03:27 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration