Hi,

OpenBSD 6.4

I have a strange behavior on chflags.

If I run:

chflags schg /usr/sbin/pkg_add

This works fine and the schg flag is set.


But if I run it recusively, as in:

chflags -R schg /usr/sbin/

I get the following error on pkg_add and a number of other files:

chflags: /usr/sbin/pkg_add: Operation is not permitted


Still the schg flag is set.


How come I get an error when running recurively but not when I run it on the 
same single file?


I hope this will help you and if I have posted to the wrong address I 
apologize!!

Please, tell me where to post this if it is wrong!


Best regards

Marcus Pedersén

---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina 
personuppgifter. För att läsa mer om hur detta går till, klicka här 
<https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more 
information on how this is done, click here 
<https://www.slu.se/en/about-slu/contact-slu/personal-data/>

Reply via email to