LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-04-2006, 08:10 PM   #1
animelook
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?

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

Rep: Reputation: 271Reputation: 271Reputation: 271
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.
 
  


Reply


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 06:40 PM
Problem writing to /var/www/* on Mandrake 10.1 atwookie Mandriva 0 12-19-2004 03:48 AM
user/group permissions for /var/www/html/ illtbagu Linux - Software 6 11-12-2003 06:29 AM
how to setup ftp user's diretory as /var/www/html lzyking Linux - Software 4 02-25-2003 01:58 PM
Allow Users FTP access to /var/www in Red hat 7.2 dsolecki Linux - General 6 02-04-2003 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:23 AM.

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