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.

Avatar
Benjamin Cane
Principal Engineer, Vice President

Benjamin Cane is Principal Engineer at American Express. He has more than 16 years of experience with roles in both systems and software engineering. He leverages both his systems and software skills to build end-to-end platforms. Platforms, purpose built for performance and resiliency. Benjamin is also the author of Red Hat Enterprise Linux - Troubleshooting Guide (2015, Packt Publishing), and he has published many popular articles on topics such as Linux, Docker, Python, Go and Performance Tuning. Thoughts and Opinions expressed in my articles are my own.

Next
Previous

Related