You can write-protect specific files, directories, and volumes to prevent unauthorized programs or users from changing them.
Task
Paths can include wildcard characters. When using wildcards, make sure that the specified string matches a limited set of file paths or file names. If the specified string matches many files, we recommend you revise the string.
- Paths can include the * wildcard character. Using/abc/*/def is allowed while /abc/*.sh, /abc/*.*, or /abc/doc.* is not supported.
-
# sadmin write-protect –i /etc/security/limits.conf
You can also write-protect network file systems by specifying the network path with the sadmin write-protect command to prevent any change to the network share.
| Syntax | Example |
|---|---|
| sadmin write-protect -i /mount-point |
Specify the mount point name on the Linux platform. For example: sadmin write-protect –i /nfs |