Linked Questions

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
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
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
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
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
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
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
0 votes
1 answer
27k 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 ...
Carlos's user avatar
  • 41
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
0 votes
1 answer
5k 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 ...
Martin Munka's user avatar
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
0 votes
1 answer
3k views

How to give root access to a wine application [duplicate]

I installed Dreamweaver 8 on Kubuntu with Wine, and I've already installed LAMP. Now I'm trying to give Dreamweaver root access to my var/www/html directory so I can write some PHP scripts but I can't ...
danidee's user avatar
  • 245
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
0 votes
2 answers
4k views

How to access my codeigniter folder in ubuntu?

I have deployed my codeigniter folder into /var/www/html . But when i am trying to access it using http://localhost/CodeIgniter/ this is showing Server error 500 The website encountered an error ...
Upendra Sharma'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
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
0 votes
1 answer
3k views

Why shouldn't I set 777 permission to /var/www?

I know I am not the first to ask about it, but it's still not clear to me. I mean, on this post we can read that 777 is a bad permission in general and I'll show you why. Despite how it may look in a ...
Edoardo Benedetti's user avatar
0 votes
1 answer
3k views

Why is everything write protected?

I have searched and searched and can't find anything specific to my problem. I am a Mac user, new to Ubuntu. I wiped my HP notebook and installed 32-bit (no choice) Ubuntu. Then I installed the ...
speedracer's user avatar
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
0 votes
1 answer
661 views

How to Remove Recursively grant ownership

I recently switched from Windows 8.1 to Ubuntu. Yesterday, I wanted to install PHP but during tutorial I did this: sudo chown -R joy /var/www but now onward for every command it ask for password $...
Zarron's user avatar
  • 1
0 votes
1 answer
90 views

Samba Sharing on Mapped Share

I am running Ubuntu Server 14.04 with the latest samba. I have a Windows 2008 Storage Server NAS with a shared drive, that I mount in fstab in my Ubuntu. Everything works great. My dilemma is that ...
Andy Schultheis's user avatar
0 votes
1 answer
109 views

How to create new files or modify existing files in a sym link?

I am new to the LAMP environment. I wanted to create files directly in my home directory instead of always copying it to /var/www. I created a sym link using the following command : ln -s /var/www ~/...
P.K's user avatar
  • 113
-1 votes
1 answer
77 views

Unable to open ubuntu in virtual box 6.1 after changing system permissions [duplicate]

I had virtual box previously installed and it worked fine until I created a new user and gave it permissions using: sudo chmod -R 777 / After that when I closed and reopened my virtual box I could not ...
Matix's user avatar
  • 3
0 votes
0 answers
42 views

Projects in /var/www folder are not accessible? [duplicate]

I am using Ubuntu 13.10 and come from Ubuntu 13.04. First check locahost, It's work fine. PhpMyAdmin is also work fine. I look some related problem here. But some similarities with this answer and ...
Zeb's user avatar
  • 203
1 vote
0 answers
35 views

alternative to chmod 777 in LAMP [duplicate]

Typically after installing LAMP I like to install phpmyadmin and be allowed to drop folders in var/www/. I run sudo chmod 777 only because the LAMP is on a LAN. I was curious to know what is the ...
user9447's user avatar
  • 1,905