Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-04-2006, 07:10 PM   #1
LQ Newbie
Registered: Aug 2006
Distribution: Debian
Posts: 12

Rep: Reputation: 0
FTP user writing to /var/www

I created a user "webadmin" with the home folder as /var/www so I can upload stuff via FTP to my website. However, webadmin cannot write to /var/www- how can I make it so webmin can write to this directory?

Old 08-04-2006, 07:38 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
You would have to change the group ownership and permission. chown :webadmin /var/www as root. Then chmod g+w /var/www. This is assuming that webadmin has a default group of "webadmin".

A better approach might be to create a new directory under /var/www or some other place and give ownership to webadmin, then change the DefaultRoot in the /etc/apache2/sites-available/default configuration file to that directory.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ProFTPD on Debian: FTP Straight to /var/www chatmasta Debian 4 07-02-2005 05:40 PM
Problem writing to /var/www/* on Mandrake 10.1 atwookie Mandriva 0 12-19-2004 02:48 AM
user/group permissions for /var/www/html/ illtbagu Linux - Software 6 11-12-2003 05:29 AM
how to setup ftp user's diretory as /var/www/html lzyking Linux - Software 4 02-25-2003 12:58 PM
Allow Users FTP access to /var/www in Red hat 7.2 dsolecki Linux - General 6 02-04-2003 01:12 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration