PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 11, 2022

[FIXED] Linux: Allow one user to manage all files from another user/group

 February 11, 2022     lamp, linux, permission-denied, permissions, ubuntu-12.04     No comments   

Issue

I just installed lamp-server^ on my home linux machine. Now I created a new folder project with files in the /var/www/ directory (server root directory). I set the owner user/group to www-data via sudo.

Now I want to access the folder and its files via cd or normally via the file explorer, but I get the error that I haven't the permission to do/access that folder or its files (with my normal user account).

Is it possible to give my user account the rights to access/modify the project folder?


Solution

you can either

a+rwx the directory or

include yourself in that group, but from your question, it seems you don't want to do that. it would be more secure than allowing anyone to read, write and execute that dir.



Answered By - pcarvalho
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing