On 4/25/2021 12:31 PM, Alan Carvalho de Assis wrote:
Hehehe, you are not the first one to notice it, in fact I commented that this kind of code exist but is not implemented: https://issues.apache.org/jira/browse/NUTTX-8
To be a POSIX, Unix-like system, NuttX should support privileges. Adding privileges to the NSH login would be pretty easy (I actually started that one time in the past).
There has been no motivation to implement this feature, mostly because the only file system with privilege information is ROMFS. But privileges are more than just file privileges: I could be useful to have super-user capabilities in NSH for many things, not just file access.