who owns the web root? if the owner is root and is supposed to be root, are you logging in as root or have a user assigned for webroot? Changing the persmissions would need to be done via the command line with the "chmod" command.... however having files open to the public owned by root isn't exactly secure.
the user is webftp and a member of webftp group, i have the user root in a config file to stop anyone trying to login as root, the /var/www was created when i installed the web server. i am unsure who the owner is, the ls command say`s it is `root` if i look at the home directorys with the ls command it matches the user.......
Ok you've found your problem the webroot for the default webserver is /var/www and is owned by root, which means since you login as webftp you can't write to the directories. You need to use the "chown" command and change the ownership to webftp in order to upload to /var/www, if you want webftp's home directory /home/webftp/<htdocs or public_html> to be webroot for the default site, then you need to change that in apache.
in order to change permissions with "chown" you'd do the following.
chown -R webftp:webftp www
what this command does is change you to the /var directory, chown is the change ownership command, -R does it recursively meaning it changes the ownership in the directory you specify and any subdirectories. webftp:webftp is the owner:group that you want to own the directory and its contents.
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!