Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www
I gave myself administrative privileges in Ubuntu but it still doesn't allow copies.
|
Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www I gave myself administrative privileges in Ubuntu but it still doesn't allow copies. |
|||||||||||||
|
|
If you make /var/www writeable by its group and add the user to the group, that user will not have to use sudo. Try this:
The user should then be able to edit /var/www/ files without hassle. The first line adds the user to the www-data group, the second line clears up any files with messed up ownership, and the third makes it so that all users who are members of the www-data group can read and write all files in /var/www. If you are logged in as |
|||||||||||||||||||||
|
|
You can
And thats it. However, I preffer to create a virtualhost in my home folder, it's much easier. Basically it allows you to use any folder as a apache serving folder. To show it how it simple, lets assume that your username is username and that the folder that you want to serve is /home/username/www Create the following file (for instance
Now lets create the
And that it, now you dont need to go to |
|||||
|
|
Method 1:
Method 2:
|
|||||||||||||||||
|
|
It could be as simple as That takes a little work, though, to start. This is for Ubuntu 10.10 at least. First mount the file systems with the acl option in /etc/fstab.
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 defaults,acl 0 1
Then make a group to which a user may belong for this purpose.
The user needs to log out and in again to become a member of the developers group. Of course, do not do this if you have content in the /var/www directory that you want, but just to illustrate setting it up to start:
Then replace references to "/var/www" with "/var/www/public" in a config file and reload.
If we wanted to restrict delete and rename from all but the user who created the file:
This way, if we want to create directories for frameworks that exist outside the Apache document root or maybe create server-writable directories, it's still easy. Apache-writable logs directory:
Apache-readable library directory:
|
|||||||||||||||||
|
|
Easiest way to do is follow the steps given below:-
Hope this helps. :) |
|||||||||
|
|
Now the ownership of the folder |
|||
|
|
|
If you're using the server version, try webmin. It has a great web UI and file manager. Either that or Filezilla |
|||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?