patacongo commented on PR #8924:
URL: https://github.com/apache/nuttx/pull/8924#issuecomment-1489218982

   It would help to understand exactly what you are trying to accomplish to 
forcing some UID defined in a configuration.
   
   NuttX supports standard /etc/passwd and /etc/group files for assigning UIDs 
and GIDs to users.  These are currently only used in NSH logins and do not for 
set UID and GID, but they should!  See configuration sim:nsh, 
boards/sim/sim/sim/include/nsh_romfsimg.h, and boards/sim/sim/sim/src/etc.
   
   The behavior that I would expect is that the UID and GID defaut to zero 
(root) but are set at login to the values in /etc.  Tasks run (in memory or in 
the file system) would (usually) take the UID and GID of the parent. But could 
be changed with ST_NOSUID logic or setuid() and setgid().
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to