Operating System - HP-UX
1753731 Members
4588 Online
108799 Solutions
New Discussion юеВ

Setting proper home directory for FTP user..

 
Khalid A. Al-Tayaran
Valued Contributor

Setting proper home directory for FTP user..

Hello,

I have added a user "ftp_info" with the default directory as /dataload/infopoint/file_from_sap

but when the user logs in he gets: "
230-No directory! Logging in with home=/
230 User ftp_info logged in. "

How do I set the directory correctly ? Is the file /etc/ftpd/ftpaccess has any thing to do here?

Note that the /dataload directory is owned by adm user and sapsys group since this an SAP system.

Thanks,,,
7 REPLIES 7
Khalid A. Al-Tayaran
Valued Contributor

Re: Setting proper home directory for FTP user..


I forgot to mention the user should have read only access.

Robert-Jan Goossens
Honored Contributor

Re: Setting proper home directory for FTP user..

Hi,

Have a look at these docs.

Title: How to set up restricted or chroot'd user accounts with FTP
Document ID: emr_na-c01006067-1

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01006067-1

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01006067-1

Title: How to setup a restricted user for FTP access
Document ID: emr_na-c01032735-1

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01032735-1

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01032735-1

Regards,
Robert-Jan
Steven Schweda
Honored Contributor

Re: Setting proper home directory for FTP user..

> I have added a user "ftp_info" with the
> default directory as
> /dataload/infopoint/file_from_sap

Prove it. What, exactly, is in /etc/passwd
(or wherever)?

Does the directory exist? Who owns it? What
are its permissions? ("ls -dl".) If the
user can't access his own home directory,
then you can expect problems.

Can the user log in interactively, or is this
entirely an FTP problem? If it affects more
than FTP, then /etc/ftpd/ftpaccess is probably
not the cause.
Khalid A. Al-Tayaran
Valued Contributor

Re: Setting proper home directory for FTP user..


Hello,

Thank for the replies.. I remember in AIX we added the file: /etc/ftpaccess.ctl

with the lines:

useronly:FTP_INFO
readonly:/dataload/infopoint/files_from_sap


Can the same be applied in HP-UX ?
Steven Schweda
Honored Contributor

Re: Setting proper home directory for FTP user..

> Can the same be applied in HP-UX ?

"man ftpd".

> Thank for the replies..

If you really want answers, it might be nice
if you answered some of the questions.
Khalid A. Al-Tayaran
Valued Contributor

Re: Setting proper home directory for FTP user..


Thanks,

I did a man ftpd before posting here.

- Directory is owned by adm as mentioned above and exists.
- user ftp_info exists.

- I have fixed the error above. Now the ftp_info user can login to his home directory.

The only pending issue with me is the permissions. Since he can cd to other directories whereas I want to prevent this....
Steven Schweda
Honored Contributor

Re: Setting proper home directory for FTP user..

> I did a man ftpd before posting here.

Didn't seem to help.

> - I have fixed the error above.

I guess that I should have known that
already.

> [...] I want to prevent this....

Read more?

> Title: How to set up restricted or
> chroot'd user accounts with FTP [...]