Linked Questions

196 votes
8 answers
124k 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.
TaylorOtwell's user avatar
  • 2,095
88 votes
6 answers
1.6m 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/...
user1645034's user avatar
  • 1,049
53 votes
2 answers
61k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
guillermooo's user avatar
48 votes
3 answers
337k 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 ...
potomato's user avatar
  • 581
21 votes
7 answers
20k 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 ...
Craig's user avatar
  • 1,306
13 votes
6 answers
84k 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 ...
kamal's user avatar
  • 391
7 votes
4 answers
11k 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 (/) ?
πter's user avatar
  • 179
4 votes
2 answers
34k 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?
jacknad's user avatar
  • 305
4 votes
1 answer
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.
configurator's user avatar
3 votes
2 answers
3k views

WordPress asks for FTP credentials, even though owner of the whole /var/www is www-data

I'm trying to get WordPress to run on my local Ubuntu 12.10 installation. When I try to install themes/plugins, it asks me for FTP credentials. I've been trying to get this to work for 2 days now. ...
Dmitry Shvedov's user avatar
2 votes
2 answers
19k 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....
Homunculus Reticulli's user avatar
1 vote
1 answer
2k views

How to fix sudo after “chmod -R 777 /var”?

I executed chmod 777 /var and now Ubuntu won't start, can anyone tell me what I did wrong? And if there is a way of going back?
Rayan's user avatar
  • 11
1 vote
2 answers
8k 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 ...
Kangarooo's user avatar
  • 5,075
1 vote
1 answer
1k views

Open serial port without root priviledges on Ubuntu (udev rules)

I was following this tutorial to setup access to Flir Boson camera serial port from userspace: https://www.forecr.io/blogs/connectivity/how-to-integrate-flir-boson-thermal-camera-to-nvidia-jetson-...
Aros's user avatar
  • 13
1 vote
2 answers
2k views

Skype fails to start after installation from downloaded deb package

i installed skype wiht the amd64.deb file that i downloaded from skype.com but when i click it via dash it wont start. after that i tried it from the gnome-terminal i get this i have a dutch Ubuntu i ...
blade19899's user avatar
  • 26.7k

15 30 50 per page