LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2004, 10:29 AM   #1
cL4YmAN
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Debian, of course ;)
Posts: 7

Rep: Reputation: 0
Web-viewable ftp-accounts


I have tried making a user account that can be viewed from the webbrowser, (made only for the purpose of uploading web-files). But I don't understand how to do it. The idea is pretty simple, creating a user with his home directory under
/var/www/username. But debian locks it, so you have to have the password and such to reach it. How should i do it?

and, when im already writing a post i could make another related question at the same time;

People I have talked with says you can make "virtual directories" or something like it, so you can make adresses like mydomain.com/~the_folder but I dont know how, I have read the apache manual, but since Im a newbie I don't understand it.

Thanks anyway if you take your time answering



---------------
btw. hope you understand what I'm trying to say, my english isn't the very best, because Im from Sweden.
 
Old 06-06-2004, 10:34 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Almost all web browsers have FTP functionality. If the user has FTP access and can login thru an FTP client, well then they should be able to in a browser in this format:

ftp://<username>:<password>@ftp-server.com

And that will authenticate them and automatically give them access to their default home directory and usually will not allow them to go anywhere beyond that, as the browser will see their default home directory as the / folder, etc.
 
Old 06-06-2004, 10:39 AM   #3
cL4YmAN
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Debian, of course ;)
Posts: 7

Original Poster
Rep: Reputation: 0
well, now when i saw your answer, i believed how bad i have declared my problem

My problem is that i want to make web-folders, accessed through apache webserver. I Should be able to upload things to these folders through ftp. But i have tried making users that have their homedirectories in /var/www which is the html-root directory of apache. But debian believes this is normal "user" directories, and lock them for everyone except that user. I want these folders to be public, so anyone can view the webpages in that folder, not change them, ofcourse. I hope you understand now, otherwhise ask
 
Old 06-06-2004, 10:42 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Oh.. well, make them readable and executable for everyone as default they will only be readable by the owner if they are users home directories, but you most likely don't want to make them writable.

man chmod

chmod 755 <directory>
 
Old 06-06-2004, 10:51 AM   #5
cL4YmAN
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Debian, of course ;)
Posts: 7

Original Poster
Rep: Reputation: 0
I'm getting permission denied. I noticed know, i can't access /doc/apache/ either. I think a major setting has a problem, maybe?

btw man chmod was not much for a documentation
 
Old 06-06-2004, 10:53 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by cL4YmAN
I'm getting permission denied. I noticed know, i can't access /doc/apache/ either. I think a major setting has a problem, maybe?

btw man chmod was not much for a documentation
Well if your trying to change a directory's permission and your not logged in as the owner of that directory, your going to get a permission denied. Either login as that user or su to root to change, etc.
 
Old 06-06-2004, 10:53 AM   #7
cL4YmAN
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Debian, of course ;)
Posts: 7

Original Poster
Rep: Reputation: 0
im logged in as root, and you should be able to view the apache documentation from the web, since it is linked on the apache startpage you enter when you point you browser to the servers adress

Last edited by cL4YmAN; 06-06-2004 at 10:55 AM.
 
Old 06-06-2004, 01:35 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by cL4YmAN
im logged in as root, and you should be able to view the apache documentation from the web, since it is linked on the apache startpage you enter when you point you browser to the servers adress
Looking thru the page or browser, it doesn't know your logged in as root. You'll need to actually go to your directory on your system. I would think now it is a configurtion error in the httpd.conf file now..
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two ftp accounts in one site Roosta21 Linux - Newbie 3 03-24-2005 07:03 AM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
restricting accounts in wu-ftp dkc_ace Linux - Software 18 01-11-2003 11:14 PM
setting up accounts and partitions for FTP dkc_ace Linux - Software 7 01-10-2003 10:33 AM
guest ftp accounts scottp Linux - Networking 0 10-08-2001 05:34 AM


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

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