Solved

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

Posted on 2016-08-23
8
71 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
Comment Utility
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
Comment Utility
can you give me an exmple pleez :)
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
Comment Utility
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
 

Author Comment

by:Eric Gamache
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
>> 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
Comment Utility
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
Comment Utility
ty is my mistake it works ty :)
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
OK, thanks for feedback ;)
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now