Linux tip: The simplest way to add files to “/var/www”

By Detector | 10 December 2011



If you have problems with adding and edit files in linux folder “/var/www” – web server folder you are at right place. Here are two simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www:

Method 1:

  1. Press ALT+F2 and enter gksudo nautilus and then click Run.
  2. It will open nautilus with root previleges.
  3. Goto Filesystem → var → www and now you can add/copy/paste your files.

Method 2:

  1. Install nautilus-gksu Install nautilus-gksu
  2. After installing type nautilus -q in your terminal to refresh right click menus.
  3. Now you will find ‘Open as administrator’ entry in your nautilus right-click menu.
  4. When you need to open any files with root permission, you just have to right-click on that file/folder and select ‘Open as Administrator’.
  5. It will open that file/folder with root permission.

Have a nice work.

Tags | , , , ,

| |

Comments are closed.





Archives

Add to Technorati Favorites
website stats
TwitterCounter for @ukion