Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to give permission www-data to access in my home folder

Posted on 2016-08-23
8
Medium Priority
?
97 Views
Last Modified: 2016-08-24
hello

linux os : debian 8

how to give permission www-data to access in my home folder

my system user is gaaara

i would like give permission to www-data in groupe gaaara

ty
0
Comment
Question by:Eric Gamache
  • 4
  • 4
8 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 41767541
You add the users to the group that need access, so your user and the www user. Then change owner of the folder to the group. Make sure the group is getting rw rights on the folder. Test with a separate folder if you're unsure.
0
 

Author Comment

by:Eric Gamache
ID: 41767546
can you give me an exmple pleez :)
0
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 total points
ID: 41767611
groupadd your_groupname
  (to create your group)

usermod -a -G your_groupname gaaara
usermod -a -G your_groupname www-data

  (to add your users to the group)

mkdir ~/your_directory
  (create a test directory)

chown root:your_groupname ~/your_directory
  (change group of test directory)

chmod g+w ~/your_directory
  (give group write access)

Now logon as user gaaara and www-data and verify that you can write to the test directory.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:Eric Gamache
ID: 41767973
mmm it works and not workd

the torrent works juste owncloud is impossible to  write files in owncloud

p.s i use your exemple juste this line change

chown gaaara:your_groupname ~/your_directory

ty for your help
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 41768217
>> mmm it works and not workd
Is it working, yes or no?

What do you mean with torrent and owncloud? There is nothing about that in your question?
0
 

Author Comment

by:Eric Gamache
ID: 41769100
i install a seedbox with owncloud juste owncloud use www-data


my question was a sign that I wanted to do

it works for my seedbox juste owncloud impossible to write in folder
0
 

Author Closing Comment

by:Eric Gamache
ID: 41769217
ty is my mistake it works ty :)
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 41769285
OK, thanks for feedback ;)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question