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

Posted on 2016-08-23
Last Modified: 2016-08-24

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

Question by:Eric Gamache
  • 4
  • 4
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.

Author Comment

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

Accepted Solution

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.

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
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!

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?

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

Author Closing Comment

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

Expert Comment

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
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.

912 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

23 Experts available now in Live!

Get 1:1 Help Now