To view the attributes of the /usr/sbin directory, use the following command:
lsattr /usr | grep sbin
s---ia-----I--e------- /usr/sbin
i (immutable): Prevents any changes, including file creation, modification, or deletion within the directory.
a (append-only): Allows only append operations; no overwriting or deletion is permitted.
These attributes are why you cannot create files under /usr/sbin.
To remove the restrictive attributes from /usr/sbin, run the following commands:
chattr -i /usr/sbin
chattr -a /usr/sbin
Re-check the attributes to ensure they have been cleared:
lsattr /usr | grep sbin
After clearing the attributes, you should be able to create files in /usr/sbin.