file change-permission
Syntax
file change-permission filename filename permission permission
Description
Change permission of file.
Options
| filename |
Filename to change mode. |
| permission |
File permission, either as symbolic (go+rw) or octal (642). |
Required Privilege Level
maintenance
Sample Output
file change-permission (Octal Mode)
The following sample command makes a file readable by anyone and writable by the owner only.
user@host> file change-permission /tmp/foo.txt permission 644
file change-permission (Symbolic Mode)
The following sample command makes a file readable or executable by everyone and writable by the owner only.
user@host> file change-permission /tmp/foo.txt permission u=rwx,go=rx
Release Information
Command introduced before Junos OS Release 7.4.