Operating System - HP-UX
1753518 Members
4942 Online
108795 Solutions
New Discussion юеВ

Re: Query on SFTP with "FTPACCESS"

 
Md. Minhaz Khan
Super Advisor

Query on SFTP with "FTPACCESS"

Dear All,

I am able use "/etc/ftpd/ftpaccess" file by adding "-a" parameter at "ftpd" line in "/etc/inetd.conf" .

My query is how can i use ftpaccess file or similar file like "ftpaccess" in SFTP

Thanks
Minhaz
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: Query on SFTP with "FTPACCESS"

I know nothing, but I believe that the file
"/etc/ftpd/ftpaccess" is used by the FTP
server (ftpd) only. The SFTP server is
controlled by options in the SSH server
(sshd) configuration file.

man sftp-server
man sshd_config

What, exactly, would you like to do?
Md. Minhaz Khan
Super Advisor

Re: Query on SFTP with "FTPACCESS"

Using "ftpaccess" file i have used "upoload" parameters to upload file for specifice user, group & permission mode. But using SFTP i have already created Restricted SFTP user (Chrooted to it home directory) & only able to SFTP. But now i want to convert FTP user to SFTP because SFTP is more secured.

Thanks
Minhaz
Steven Schweda
Honored Contributor

Re: Query on SFTP with "FTPACCESS"

> [...] But now i want to convert FTP user to
> SFTP because SFTP is more secured.

If you have "already created Restricted SFTP
user (Chrooted to it home directory) & only
able to SFTP", then what else do you want to
do?
Md. Minhaz Khan
Super Advisor

Re: Query on SFTP with "FTPACCESS"

I want with SFTP is : Say "sft" is the SFTP user. Now when i upload file with "sft" user it will set permission "0646". I can do this using "/etc/ftpd/ftpaccess" file with below entries:

/etc/ftpd/ftpaccess:
====================
upload /home/sft /home/sft/upload yes sft users 0646 dirs


Thanks
Minhaz