RSS Forums RSS
Please support our IT Professionals' Lounge advertiser: Programming Forums
Views: 5616 | Replies: 43 | Solved | Thread Tools  Display Modes
Reply
Join Date: Jan 2007
Location: Israel
Posts: 1,677
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 77
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

  #31  
Jan 16th, 2008
did you do "useradd ftpuser1" to create the user, and now when you try to log onto the ftp server the user that can login is ftpuser1 with his passwd?

this site is too slow, do you have some kind of IM?
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #32  
Jan 16th, 2008
Hello Dima:

I have yahoo messanger.
This is my username: willielinux@yahoo.com[/email]
Last edited by williebens : Jan 16th, 2008 at 6:52 pm.
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #33  
Jan 16th, 2008
Hello Dima:

I finally got it. FTP users can login to the ftp
server, but they cannot login to the linux box.
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,677
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 77
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

  #34  
Jan 16th, 2008
where and how do you configure the ftp users? say, if you need to add ftpuser2, how do you do that?
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #35  
Jan 16th, 2008
After creating the ftp user account, this is what I did:

I edited the /etc/shells file and added
/bin/true to it.

I then went to the /etc/passwd file and changed:

ftpuser:x:501:501::/home/ftpdocs:/bin/bash

to

ftpuser:x:501:501::/home/ftpdocs/./:/bin/true

I then changed the shell of user by running the following command:

chsh ftpuser (press enter)

Then, when prompted for a new shell, I entered:
/bin/true

End of this story.

Now, I am going to work so that users can upload to the ftp user. They can download, but so far no uploading.

Thanks a lot for yor support so far Dima, and all others
Please keep the feedback.
--Willie
Last edited by williebens : Jan 16th, 2008 at 7:36 pm.
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,677
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 77
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

  #36  
Jan 16th, 2008
this is not user creation, this is changing the ftp user's shell to /bin/true instead of bash. just a security setting.

the link I sent you earlier shows how to set up ftp to use user directory stored in mysql, instead of the linux internal user lists (/ets/passwd + /etc/groups)

that is more secure, and faster as well.

the way you did it will work too, but for every user you create , you will need to run the whole procedure of rewriting the shell etc. and it is less secure, since potentially the ftp users are still unix users.

as for the uploading issue - check the permissions on the ftpdocs directory. as a test, chmod -R 777 /home/ftpdocs and try to upload
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #37  
Jan 16th, 2008
Hello Dima:

I just tried your suggetion, and it did work.
I really thank you.

I will look into using mysql for user authentication regarding the ftp server as you
indicated in your previous post and pointed on one of the how-tos.

Right now the way the users are set up is that they are all sharing one folder in the ftp server.

I think the way my supervisor wants this server to be is having each user with its own folder. I will look into that along with your suggestion about using a database.

I am now going home. I am really tired, but happy things are working out with this ftp server assignment.

I will come back tomorrow.

Thanks again to you Dima, and all others.
--Willie
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,677
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 77
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: apache as an ftp server

  #38  
Jan 16th, 2008
g'nite, mate

I'm off to sleep - setting up a room full of blades tomorrow
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #39  
Jan 17th, 2008
Hello there:

I would like to be able to see my ftp files on a browser. When I do ft.IP, all I see is:

-----------------------------------------
FTP root at ftp.192.x.x.x
To view this FTP site in Windows Explorer, click Page, and then click Open FTP Site in Windows Explorer.

01/16/2008 09:44AM Directory pub
--------------------------------------------------------

The directory /pub has a file under it that should show on the browser. However, it is not happening. Would anyone please let me know how to go about solving this problem?

Thanks.
--Willie
Last edited by williebens : Jan 17th, 2008 at 1:43 pm. Reason: When I click on pub, I get the message Internet Explorer cannot display the webpage
Reply With Quote  
Join Date: Jan 2008
Posts: 38
Reputation: williebens is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: apache as an ftp server

  #40  
Jan 17th, 2008
When I click on pub, I get the following message:

Internet Explorer cannot display the webpage

Thanks.
--Willie
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC