Restricting User Access To A Specified Root Directory; Configuring An Sftp Root Directory; Associating An Sftp Root Directory With A Local User; Associating An Sftp Root Directory With An Administrator - Cisco ASR 5500 System Administration Manual

Hide thumbs Also See for ASR 5500:
Table of Contents

Advertisement

System Settings

Restricting User Access to a Specified Root Directory

By default an admin user who has FTP/SFTP access can access and modify any files under the /mnt/user/
directory. Access is granted on an "all-or-nothing" basis to the following directories: /flash, /cdrom, /hd-raid,
/records, /usb1 and /usb2.
An administrator or configuration administrator can create a list of SFTP subsystems with a file directory and
access privilege. When a local user is created, the administrator assigns an SFTP subsystem. If the user's
authorization level is not security admin or admin, the user can only access the subsystem with read-only
privilege. This directory is used as the user's root directory. The information is set as environmental variables
passed to the openssh sftp-server.
You must create the SFTP root directory before associating it with local users, administrators and config
administrators. You can create multiple SFTP directories; each directory can be assigned to one or more users.

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
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:

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
subsystem sftp [ name sftp_name root-dir pathname mode { read-only | readwrite } ]
◦ /hd-raid/records/cdr
◦ /flash
Restricting User Access to a Specified Root Directory
ASR 5500 System Administration Guide, StarOS Release 21.5
39

Advertisement

Table of Contents
loading

Table of Contents