943,832 Members | Top Members by Rank

Ad:
You are currently viewing page 4 of this multi-page discussion thread; Jump to the first page
Jan 16th, 2008
0

Re: apache as an ftp server

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?
Moderator
Featured Poster
Reputation Points: 183
Solved Threads: 89
Posting Virtuoso
DimaYasny is offline Offline
1,772 posts
since Jan 2007
Jan 16th, 2008
0

Re: apache as an ftp server

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008
Jan 16th, 2008
0

Re: apache as an ftp server

Hello Dima:

I finally got it. FTP users can login to the ftp
server, but they cannot login to the linux box.
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008
Jan 16th, 2008
0

Re: apache as an ftp server

where and how do you configure the ftp users? say, if you need to add ftpuser2, how do you do that?
Moderator
Featured Poster
Reputation Points: 183
Solved Threads: 89
Posting Virtuoso
DimaYasny is offline Offline
1,772 posts
since Jan 2007
Jan 16th, 2008
0

Re: apache as an ftp server

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008
Jan 16th, 2008
0

Re: apache as an ftp server

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
Moderator
Featured Poster
Reputation Points: 183
Solved Threads: 89
Posting Virtuoso
DimaYasny is offline Offline
1,772 posts
since Jan 2007
Jan 16th, 2008
0

Re: apache as an ftp server

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
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008
Jan 16th, 2008
0

Re: apache as an ftp server

g'nite, mate

I'm off to sleep - setting up a room full of blades tomorrow
Moderator
Featured Poster
Reputation Points: 183
Solved Threads: 89
Posting Virtuoso
DimaYasny is offline Offline
1,772 posts
since Jan 2007
Jan 17th, 2008
0

Re: apache as an ftp server

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
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008
Jan 17th, 2008
0

Re: apache as an ftp server

When I click on pub, I get the following message:

Internet Explorer cannot display the webpage

Thanks.
--Willie
Reputation Points: 10
Solved Threads: 0
Light Poster
williebens is offline Offline
42 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: CCProxy (dial-up)
Next Thread in IT Professionals' Lounge Forum Timeline: TCP Flags





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC