LinuxQuestions.org
Visit Jeremy's Blog.
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 12-29-2005, 12:26 PM   #1
vibin
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Lightbulb Creating VSFTPD Full permission User to /var/www/html


Hi All,

I want to create a vsftpd user - user1 which needs full acces to /var/www/html which will be the home directory also.

The owner of /var/www/html is user owner1 and owner1.

Please help me to make a ftp user user1 which has full permission to /var/www/html

Regards, Vibin.
 
Old 12-30-2005, 06:20 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
It's probably better to make the user's home directory under the /home directory. There are usually a bunch of files in a home directory (especially if you log in using a gui). If you create the user the same way you've created other users, then create another group (maybe called ftpuser), then chgrp /var/www/html to ftpuser and give the ftpuser group write permissions to /var/www/html you should get the same result.
 
Old 01-01-2006, 04:17 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-02-2006, 01:21 AM   #4
vibin
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up Solved.......

Thanks glead, it worked. I just added the new user to apache group and gave the html folder writable for the group, is it fine? any security risk?

But can u advice the cmd to make www as the ftp root folder when the user log in using vsftp, now its logging to the user home folder which is the default.

Thanks Again, Vibin.
 
Old 01-02-2006, 02:15 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
Having the web user as a member of the same group as the group owning the web server files is not a problem. The easiest way to get to the web server files quickly from the home directory is to create a link:

Code:
ln -s /var/www/html /home/user/html
Now when you ftp into the box your default directory is still your home directory (/home/user), but when you type `cd html` you will be at /var/www/html

Will that do what you want it to?
 
Old 01-03-2006, 03:32 AM   #6
vibin
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks

Thanks.....it was exactly what i need. Thanks a lot.
 
  


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
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 09:45 PM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 05:37 AM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 12:02 PM
user/group permissions for /var/www/html/ illtbagu Linux - Software 6 11-12-2003 06:29 AM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 04:38 PM

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

All times are GMT -5. The time now is 02:26 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