Re: SFTP User with access to specific folders (186 Views)
Reply
Regular Advisor
Pramod M
Posts: 172
Registered: ‎05-17-2008
Message 1 of 3 (236 Views)

SFTP User with access to specific folders

Hello Experts,

 

The OS is HP-UX 11iV3.

I need to create a sftp user who can connect to the ftp server remotely and access some specified folders only.

ie the user 'sftptest' should able to connect to the ftpserver from externally and able to access /data/test/ftp/in and /data/dev/ftp/out.

 

Hope you can help on this..

 

Thanks in advance...

Pramod

Frequent Advisor
Chirag Parikh
Posts: 51
Registered: ‎11-06-2007
Message 2 of 3 (197 Views)

Re: SFTP User with access to specific folders

Hi,

 

By default any user configured with system access has ftp access unless you have put the username in /etc/ftpd/ftpusers file to block ftp acces of user. The user's shell, as defined in the user's passwd entry, should be a 'valid' shell defined in /etc/shells. And for specific directory access to FTP user, either one of them could be configure as users home directory and for second folder you may give specific folder rights - 770.

 

This should work.

 

Thanks & Regards,

Chirag Parikh

Advisor
bobjh
Posts: 14
Registered: ‎10-12-2011
Message 3 of 3 (186 Views)

Re: SFTP User with access to specific folders

My understanding is that OpenSSH 4.9p1 (HP A.05.90) allows you to chroot specific users. However, I have not yet tried out this setting.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.