Solved

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

Posted on 2016-08-23
8
83 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 37

Expert Comment

by:Gerwin Jansen
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 37

Accepted Solution

by:
Gerwin Jansen earned 500 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 37

Expert Comment

by:Gerwin Jansen
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 37

Expert Comment

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

786 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