Configuring an SFTP root Directory
The subsystem sftp command allows the assignment of an SFTP root directory and associated access privilege
level.
configure
context local
server sshd
subsystem sftp [ name sftp_name root-dir pathname mode { read-only | readwrite } ]
Notes:
•
sftp_name is an alphanumeric string that uniquely identifies this subsystem.
•
pathname specifies the root directory to which SFTP files can be transferred. Options include:
◦
/hd-raid/records/cdr
◦
/flash
Associating an SFTP root Directory with a Local User
The local-user username command allows an administrator to associate an SFTP root directory with a
specified username.
configure
local-user username user_name authorization-level level ftp sftp-server sftp_name password
password
exit
Associating an SFTP root Directory with an Administrator
The administrator command allows an administrator to associate an SFTP root directory for a specified
administrator.
configure
context local
administrator user_name password password ftp sftp-server sftp_name
exit
Associating an SFTP root Directory with a Config Administrator
The config-administrator command allows an administrator to associate an SFTP root directory with a specified
configuration administrator.
configure
context local
config-administrator user_name password password ftp sftp-server sftp_name
exit
ASR 5500 System Administration Guide, StarOS Release 21.4
59
System Settings
Restricting User Access to a Specified Root Directory