LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-04-2004, 12:19 PM   #1
DHR
LQ Newbie
 
Registered: Sep 2004
Location: UK
Posts: 14

Rep: Reputation: 0
Apache & PureFTPD Permissions and groups!


Right, I have a little problem; I'm setting up apache and obviously want pureftpd installed allowing selected users of the server to upload documents. It is all configured and installed on SUSE 9.1.

Pureftpd is set up to use the system wide username and passwords. There is an account named upload, upload belongs to the groups ftp, www and users.

/srv/ - belongs to root/root
/srv/www - belongs to root/root
/srv/www/htdocs - belongs to upload (user/owner) and the group www


I obviously want people to be able to view the documents within htdocs, only upload (the user) and people in www (the group) should be allowed to edit these files, therefore leaving all others with r-x permissions (I presume execute rights need to be provided so php scripts run for everyone?)

My problem therefore arises when I upload a file. For instance I log onto the ftp using the upload account. I can then write a file to htdocs directory. Once the transfer is completed however it is not viewable as a user through the browser the permissions are set exclusively to upload (e.g -rw-------)

Now I'm thinking the reason this is occurring is because I've gone about setting everything up in a stupid way! How can I resolve this problem or start from scratch in a more sensible way?

Cheers,

DHR your new resident
 
Old 09-04-2004, 02:00 PM   #2
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Use the -U switch to change the umask setting for newly created files. Check the documentation file for more info.
 
Old 09-05-2004, 10:20 AM   #3
DHR
LQ Newbie
 
Registered: Sep 2004
Location: UK
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks very much for your help, i would have never found that otherwise
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
groups and permissions g_trueblood Slackware 2 10-07-2005 05:36 AM
Pureftpd + xinetd: Writes pureftpd commandline to client when connecting bomix Linux - Software 2 03-29-2005 10:21 PM
Help, Apache & Permissions wburquhart Linux - Newbie 1 01-16-2004 06:53 PM
[pureftpd]how to use AnonymousBandwidth & UserBandwidth at the same time ? Xuer Linux - Networking 0 11-29-2003 12:50 AM
user groups and permissions yank_ Linux - Newbie 1 02-26-2001 11:57 PM


All times are GMT -5. The time now is 09:49 AM.

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