Operating System - HP-UX
1826397 Members
3558 Online
109692 Solutions
New Discussion

Re: How to set a default FTP directory for a user?

 
SOLVED
Go to solution
John O'Neill_6
Regular Advisor

How to set a default FTP directory for a user?

Hi,

I have the need for one of my users to FTP files onto our production server for harvesting by our application.

However I want the FTP session to have a new 'root' directory so that they can't go 'up' past their default to the '/' filesystem and so on, for obvious reasons.

For example, how can i set a users FTP 'root' (for want of a better word) to be something like /shared/interface/apps/live ?

We're running HP UX 11i 11.11 64 bit.

Simple 'baby step' instructions for 10 pts!

Thanks.

-John
5 REPLIES 5
morganelan
Trusted Contributor
Solution

Re: How to set a default FTP directory for a user?

Hi,

HP-UX Secure Shell A.03.91.008/009 supports chroot functionality for SSH, SFTP and SCP. The chroot functionality is mainly used as an added security measure.

For more detailed setup see this:
http://docs.hp.com/en/T1471-90011/ch01s12.html
Kamal Mirdad
Adisuria Wangsadinata_1
Honored Contributor

Re: How to set a default FTP directory for a user?

Hi John,

Good day to you !
Please check the document about 'configuring FTP sublogins' at the url below (docID : N2X941205009) :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080064538

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Adisuria Wangsadinata_1
Honored Contributor

Re: How to set a default FTP directory for a user?

Hi John,

You can use this document about 'setting up ftp sub logins' also (documentID : A4450878) :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080093715

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Gavin Clarke
Trusted Contributor

Re: How to set a default FTP directory for a user?

DCE
Honored Contributor

Re: How to set a default FTP directory for a user?

If you do not want the user to log in to the other than ftp

make the the users default shell /usr/bin/false, and the home directory/shared/interface/apps/live, either by vi'ing the /etc/passwd file or by using SAM to modify the user profile.

Yu may also need to create a file called /etc/shells, which is nothing more than a list of allowed shells for logins (use the fully qualified path listed in /etc/passwd)