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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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) ?
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.
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 .
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 .
directory but it must contain bin/, etc/, lib/, usr/, exactly what you have now.
I recommend installing wu.ftpd .
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"