setfacl: Option -m: Invalid argument near character 3

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.

Solution:

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.

id USER_NAME

OR

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.

useradd USER_NAME
passwd USER_NAME

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.

1. Create and delete user
2. How to set -m option as default in useradd command in linux
3. Create a system account below uid 500

2 thoughts on “setfacl: Option -m: Invalid argument near character 3”

Comments are closed.