Linked Questions

6
votes
4answers
4k views

What “chmod 777 -R / ” does in /var/www/html/…/…/…/? [duplicate]

Unfortunately I was rushing and ran sudo chmod 777 -R / inside one project. Should I worry that it started to add 777 permission for all my folder starting from root (/) ?
0
votes
0answers
6k views

Htdocs permission [duplicate]

I am completely new to ubuntu... THough I installed htdocs and give it permission using command chmod -R 777 /opt/lampp/htdocs. It works fine. But I wish to avoid it doing again and again. Their ...
0
votes
0answers
87 views

Does installing Apache overwrite ALL (including mounts) www folders? [duplicate]

I have a old hard drive (with Ubuntu 32b) that was running my website. The site was located in /var/www/vhosts/debug.onlinelabtests.com I removed the hard drive, and dropped in a new one. Install ...
168
votes
7answers
99k views

How to avoid using sudo when working in /var/www?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
51
votes
6answers
970k views

How can I chmod 777 all subfolders of /var/www?

I’m running a webserver and FTP server, wherein /var/www is bound to /home/user/www. I set both directories to chmod 777 (which is fine since it’s for testing only). I can upload files into /home/...
24
votes
3answers
154k views

How to make a directory permanently writable?

I am using LAMP stack for development and I have a problem with making /var/www permanently writable. I use this command: sudo chmod -R a+rwX /var/www This works, but after putting a web app and ...
36
votes
2answers
29k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
20
votes
7answers
17k views

Should I symlink my /var/www directory to my home?

I have just installed Ubuntu Server 10.04 with a LAMP setup. I want to host a website there but I'm not sure which is the best way to get/edit my files on the server. Googling provides many options ...
10
votes
6answers
73k views

How to give read write permission to a folder and its sub folders and files?

I have changed ownership of my localhost file on /var/www/ and its sub folders and given it permission 777. However, whenever I add a new folder in it the new folder does not automatically get that ...
3
votes
2answers
23k views

How to repair “sudo: /etc/sudoers is mode 0640, should be 0440?”

Why might sudo chmod -R a+w * cause sudo: /etc/sudoers is mode 0640, should be 0440 sudo: no valid sudoers sources found, quitting and how might it be made to work?
2
votes
2answers
17k views

Setting directory file permissions in Ubuntu using chmod

whats the equivalent command of this (Fedora command) for Ubuntu: chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs When I try the above with Ubuntu (10....
0
votes
1answer
22k views

Read and write permissions for Owncloud www-data

I have owncloud running in Ubuntu server I have enabled external storage pointing to second hard drive in my machine and added a local storage I can see the folder in owncloud but when I click on it ...
1
vote
2answers
5k views

How to mkdir -p -m 777 to all missing pathname directories?

I'm putting a file in cron.hourly which needs to create a folder on the 1st time, and giving it access to an user so i don't need to use sudo if i want to remove all content in the folder. And in it ...
0
votes
1answer
4k views

Permanent chmod 777

How can I set chmod 777 for my lamp server? I am the owner of the www folder (sudo chown -R martin www). I have changed the permissions of all files (sudo chmod 777 -R www). I don't know why, but my ...
3
votes
1answer
2k views

Are world-writable folders safe?

Is it safe to chmod a directory 777, or is it a security risk? One of my scripts requires that in order to run in multi-user situations, and I'm wondering if it's okay.

15 30 50 per page