Friday, 25 May 2012
On 08:09 by Unknown No comments
37
down vote
accepted
To best share with multiple users who should be able to write in /var/www, it should be assigned a common group. For example the default group for web content on Ubuntu and Debian is www-data. Make sure all the users who need write access to /var/www are in this group.
sudo usermod -a -G www-data
Then set the correct permissions on /var/www.
sudo chgrp -R www-data /var/www
sudo chmod -R g+w /var/www
Additionally, you should make the directory and all directories below it "set GID", so that all new files and directories created under /var/www are owned by the www-data group.
sudo find /var/www -type d -exec chmod 2775 {} \;
Find all files in /var/www and add read and write permission for owner and group:
sudo find /var/www -type f -exec chmod ug+rw {} \;
You might have to log out and log back in to be able to make changes if you're editing permission for your own account.
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
(CNN) -- It's a truth of the modern digital age: If you're using a Web service for free, you're not the customer. You're ...
-
Rich text editors(RTE) can really save you a lot of work that is for those who do not like going the cms way.The cms comes comes with a RTE....
-
Install unrar Note:The commands work only with a full path to the archive directory. sudo apt-get install unrar Using unrar to extract t...
-
right click on the project >properties>run>then change console type to standard output
-
check the file permissions of the file. This means the file has only read/execute permissions for the owner. To fix this:you have to chan...
-
Client sided solution This error can simply be an issue with cookies in your web browser, so either delete all stored cookies or selecti...
-
An older version of java was copied into the home directory under .swt. By Creating a symbolic link to /usr/lib/jni/libswt I was able to sol...
-
FileZilla is open source client fast and reliable cross-platform FTPS, FTP, and SFTP also with lots of useful features and with graphical u...
-
First,you need to creat the file using gedit, Then open terminal, Then change directory to to the file location, Then type g++ <filena...
-
1.Install build-essential package apt-get install build-essential 2.Install g++ if not already installed apt-get install g++ 3.You can now c...
Recent Posts
Sample Text
Blog Archive
-
▼
2012
(37)
-
▼
May
(14)
- reverting a single file on svn
- Enabling writing into the /var/www directory
- SSH Access
- Fatal error: Call to undefined function pg_connect...
- POSTGRE SQL
- Enabling display of php Errors
- working with tar files in ubuntu
- Enabling writing into the var/www directory
- Installing Lamp
- Removing a folder with tis content
- Linux file permissions/Folder locks
- Subversion on Ubuntu
- security on php
- checking for errors
-
▼
May
(14)
Sample Text
Powered by Blogger.
Social Icons
Followers
About Me
Featured Posts
Popular Posts
-
(CNN) -- It's a truth of the modern digital age: If you're using a Web service for free, you're not the customer. You're ...
-
Rich text editors(RTE) can really save you a lot of work that is for those who do not like going the cms way.The cms comes comes with a RTE....
-
Install unrar Note:The commands work only with a full path to the archive directory. sudo apt-get install unrar Using unrar to extract t...
-
right click on the project >properties>run>then change console type to standard output
-
check the file permissions of the file. This means the file has only read/execute permissions for the owner. To fix this:you have to chan...
-
Client sided solution This error can simply be an issue with cookies in your web browser, so either delete all stored cookies or selecti...
-
An older version of java was copied into the home directory under .swt. By Creating a symbolic link to /usr/lib/jni/libswt I was able to sol...
-
FileZilla is open source client fast and reliable cross-platform FTPS, FTP, and SFTP also with lots of useful features and with graphical u...
-
First,you need to creat the file using gedit, Then open terminal, Then change directory to to the file location, Then type g++ <filena...
-
1.Install build-essential package apt-get install build-essential 2.Install g++ if not already installed apt-get install g++ 3.You can now c...
0 comments:
Post a Comment