Ubuntu 9.10 Karmic Koala

File/Folder permissions

Page 1 of 1

2 Replies - 581 Views - Last Post: 21 March 2010 - 09:21 AM

#1 1cookie   User is offline

  • D.I.C Regular

Reputation: -5
  • View blog
  • Posts: 338
  • Joined: 19-October 06

Ubuntu 9.10 Karmic Koala

Posted 21 March 2010 - 08:02 AM

hi

I'm doing some programming/web developing on my local machine and I want full read/write access to a folder @ /var/www - only the OS won't let me. See screen-shot. :rolleyes:

Ive looked in the manual, it just points me to: Right click -> Properties -> Permissions, every things greyed out, buh!

help please

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: Ubuntu 9.10 Karmic Koala

#2 moopet   User is offline

  • binary decision maker
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,190
  • Joined: 02-April 09

Re: Ubuntu 9.10 Karmic Koala

Posted 21 March 2010 - 08:37 AM

View Post1cookie, on 21 March 2010 - 02:02 PM, said:

hi

I'm doing some programming/web developing on my local machine and I want full read/write access to a folder @ /var/www - only the OS won't let me. See screen-shot. :rolleyes:

Ive looked in the manual, it just points me to: Right click -> Properties -> Permissions, every things greyed out, buh!

help please


The folder is owned by root. So you either need to run nautilus as root (hit alt-f2 and type "gksudo nautilus" without the quotes) and then you'll have full access to everything, or change permissions on the command line.
This will do what you want:
sudo chmod -R 777 /var/www



But this is just a straight answer to your question - you might want to read up on what permissions are for and which users should have what. There's probably a better solution to your problem than this sledgehammer approach. Also, be careful - a typo in that command can do serious damage to your files, and the copy of nautilus that you'd be running should be closed as soon as you finish changing permissions because it's too easy to forget and delete the wrong thing! With great power comes great responsibility.
Was This Post Helpful? 1
  • +
  • -

#3 1cookie   User is offline

  • D.I.C Regular

Reputation: -5
  • View blog
  • Posts: 338
  • Joined: 19-October 06

Re: Ubuntu 9.10 Karmic Koala

Posted 21 March 2010 - 09:21 AM

Very helpful post Moopet, many thanks...:)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1