Link to home
Start Free TrialLog in
Avatar of aacosta
aacosta

asked on

FTP account

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.
Avatar of bchew
bchew
Flag of United States of America image

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"
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aacosta
aacosta

ASKER

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.
Did you use wu.ftpd (see /etc/initd.conf) ?
Avatar of aacosta

ASKER

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.
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 .
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 .