Please support our IT Professionals' Lounge advertiser: Programming Forums
![]() |
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?
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+
BA BizMg, MCSE, DCSE, Linux+, Network+
•
•
Join Date: Jan 2008
Posts: 38
Reputation:
Rep Power: 2
Solved Threads: 0
Last edited by williebens : Jan 16th, 2008 at 6:52 pm.
•
•
Join Date: Jan 2008
Posts: 38
Reputation:
Rep Power: 2
Solved Threads: 0
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
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.
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
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+
BA BizMg, MCSE, DCSE, Linux+, Network+
•
•
Join Date: Jan 2008
Posts: 38
Reputation:
Rep Power: 2
Solved Threads: 0
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
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
•
•
Join Date: Jan 2008
Posts: 38
Reputation:
Rep Power: 2
Solved Threads: 0
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
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
![]() |
Similar Threads
Other Threads in the IT Professionals' Lounge Forum
- Apache (Linux Servers and Apache)
- Setup Debian/Ubuntu Server within 24hrs (*nix Software)
- Configuring permissions for FTP (*nix Software)
- Server? (Getting Started and Choosing a Distro)
- which language ? (Computer Science)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- HOW TO: Start your own home server [both Windows & Linux] (Linux Servers and Apache)
- Mail Server... (Getting Started and Choosing a Distro)
- RedHat Network Server (*nix Hardware Configuration)
- Starting A New Web Server Need Help (Networking Hardware Configuration)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: CCProxy (dial-up)
- Next Thread: TCP Flags
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode