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
-
FileZilla is open source client fast and reliable cross-platform FTPS, FTP, and SFTP also with lots of useful features and with graphical u...
-
check out this: www.phpgrid.org hey,and just before you go, IT IS COMPULSORY THAT YOU HAVE FUN WITH IT
-
First you need to make the file executable: by right clicking on the file->properties->enable executing the file as program using the...
-
Go to the Synaptic Packet Manager, System_administrator-synaptic packaet manager search for usb-mode-switch-data for my case,I installed ...
-
I was having the same problem after doing an update and an upgrade I finally opted to downloading a .sh file and then running it (right ...
-
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
-
How-to Install LAMP Server[Apache, MySQL, Php] On Ubuntu 10.10 14 Linux LAMP servers are also popular, flexible and reliable as WAMP server...
-
->http://www.yolinux.com/TUTORIALS/Subversion.html ->http://svnbook.red-bean.com/nightly/en/svn.intro.quickstart.html ->http://www....
-
sudo apt-get install lamp-server^
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
-
FileZilla is open source client fast and reliable cross-platform FTPS, FTP, and SFTP also with lots of useful features and with graphical u...
-
check out this: www.phpgrid.org hey,and just before you go, IT IS COMPULSORY THAT YOU HAVE FUN WITH IT
-
First you need to make the file executable: by right clicking on the file->properties->enable executing the file as program using the...
-
Go to the Synaptic Packet Manager, System_administrator-synaptic packaet manager search for usb-mode-switch-data for my case,I installed ...
-
I was having the same problem after doing an update and an upgrade I finally opted to downloading a .sh file and then running it (right ...
-
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
-
How-to Install LAMP Server[Apache, MySQL, Php] On Ubuntu 10.10 14 Linux LAMP servers are also popular, flexible and reliable as WAMP server...
-
->http://www.yolinux.com/TUTORIALS/Subversion.html ->http://svnbook.red-bean.com/nightly/en/svn.intro.quickstart.html ->http://www....
-
sudo apt-get install lamp-server^
0 comments:
Post a Comment