LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-24-2015, 04:58 AM   #1
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Rep: Reputation: Disabled
joomla + umask


Hello,

I have a server (debian) with some joomla web pages. My problem is, if joomla creates a new file or directory, it is created with only user full access. It is not good for me because I would like to full access for group as well. Joomla uses www-data.

I tried to change apache umask in /etc/apache2/envvars
I appended "umask 002" the end of this file and then I restarted apache service. But unfortunately it didn't work, the new directory was created with the same umask then before.

Can somebody help me? Ty!

Last edited by jogyulas; 02-24-2015 at 05:01 AM.
 
Old 02-25-2015, 08:55 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by jogyulas View Post
My problem is, if joomla creates a new file or directory, it is created with only user full access. It is not good for me because I would like to full access for group as well. Joomla uses www-data.
Define "full access" explicitly.

Quote:
Originally Posted by jogyulas
I tried to change apache umask in /etc/apache2/envvars
I appended "umask 002" the end of this file and then I restarted apache service. But unfortunately it didn't work, the new directory was created with the same umask then before.
Joomla and others like it are Big Fat Targets for exploit material. I hope the box and the software hosted on it are up to date.
Add yourself to www-data?
Code:
usermod -a -G <you> www-data
Messing with files/perms of files being served on a forward-facing system is inviting trouble, IMO.

644 for files.
755 for directories.

All 4,096 possible linux file permissions explained

Last edited by Habitual; 02-25-2015 at 08:56 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
LXer: The Joomla! Project Announced Joomla! Framework LXer Syndicated Linux News 0 12-11-2013 06:00 AM
umask and permissions: has umask 007 bad side effects? browny_amiga Linux - General 2 09-09-2011 08:01 AM
LXer: Joomla! 1.5: A User's Guide plus Fundamentals of Joomla! Video LXer Syndicated Linux News 0 10-26-2009 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:21 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