When you work with lots of server and setting permission with setfacl command, you may encounter with this error – “setfacl: Option -m: Invalid argument near character 3”. Are you thinking !? what happen here when the same command is working in other servers. Read the error carefully, it is telling ‘Invalid Argument’ means something is missing in your command line argument.
Whenever I find this error, it is only because of User is not created in system. So check the user in system , does it exist or not. Create user to fix this issue.
How to check user account in system
You can use any of the below given command. Replace
USER_NAME with the real system user which name you are using in setfacl command.
grep -w USER_NAME /etc/passwd
NOTE: If exist, the output will appear.
In case user do not exist then create a user and set its password.
We will recommend to read our other post on user creation which is written with detail information.
Check the search box for exploring other post written in our blog.