Solved

FTP account

Posted on 1998-08-19
7
325 Views
Last Modified: 2013-12-16
I have just set up an FTP aacount, it works fine. However, I would like this account to log directly into /pub (/usr/ftp/pub) directory.
At the time FTP user logs he gets in / (/usr/ftp) but I dont want it.
I tried to change his home directory in /etc/passwd to /usr/ftp/pub but it did not worked well.
In /etc/passwd I have this:
ftp:*:15:15:Anonymous ftp:/usr/ftp/:

Example:
ftp 127.0.0.1
Name (127.0.0.1:root): anonymous
[...}
ftp>ls
bin
dev
etc
lib
pub

I want to get directly into pub directory!.


Thanks.
0
Comment
Question by:aacosta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:bchew
ID: 1812123
You were on the right track, I think.  It SHOULD work fine if you change
ftp:*:15:15:Anonymous ftp:/usr/ftp/:
to
ftp:*:15:15:Anonymous ftp:/usr/ftp/pub/:
Be sure you don't accidently delete any of the colons.

If this is what you have already done, please describe more what you mean by "I tried to change his home directory in /etc/passwd to /usr/ftp/pub but it did not worked well"
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1812124
use wu.ftpd, then change ftp user's home dir in passwd to:

ftp:*:15:15:Anonymous ftp:/usr/ftp/./pub/:/bin/false
0
 
LVL 1

Author Comment

by:aacosta
ID: 1812125
Hello.
Non of your answers worked.
I change my ftp user line in passwd and when I log to my FTP server I see nothing, why?.
Thanks again.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812126
Did you use wu.ftpd (see /etc/initd.conf) ?
0
 
LVL 1

Author Comment

by:aacosta
ID: 1812127
Hello again,
Do you mean /etc/inetd.conf?.
Yes, I lookup wu.ftpd and there is not. I just found this:
---
ftp     stream  tcp     nowait  root    /usr/etc/ftpd   ftpd -l
---

I am using Irix 6.3.

Thanks again.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812128
AFAIK SGI's ftpd can't do it this way. You may change to a users
directory but it must contain bin/, etc/, lib/, usr/, exactly what you have now.
I recommend installing wu.ftpd .
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812129
AFAIK SGI's ftpd can't do it this way. You may change to a users
directory but it must contain bin/, etc/, lib/, usr/, exactly what you have now.
I recommend installing wu.ftpd .
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question