setfacl: Invalid argument near character

Found out today that sometimes setfacl doesn’t return an informative error.

Example:

# setfacl -m u:someguy:rx test2  
setfacl: Option -m: Invalid argument near character 3

The reason you get this error is because the someguy user does not exist. Setfacl will give the same error for groups that do not exist as well.

About Benjamin

Benjamin is a Infrastructure and Software Engineer. On this blog he writes about Linux, Docker, Programming as well as other Systems topics.

Learn more about Linux

If you liked this article, check out Benjamin's book: Red Hat Enterprise Linux Troubleshooting Guide. Where you can learn a lot more about troubleshooting Linux systems. This book is filled with tips and techniques he has learned over years of managing mission critical systems.

Related