Guest User

Untitled

a guest
Jan 8th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. === contents of file_permissions.bbclass, which is inherited by machine-image recipe ===
  2.  
  3. ROOTFS_POSTPROCESS_COMMAND += 'set_rootfs_file_permissions; '
  4.  
  5.  
  6. set_rootfs_file_permissions() {
  7. chmod 600 ${IMAGE_ROOTFS}/etc/shadow
  8. chmod 644 ${IMAGE_ROOTFS}/etc/passwd
  9. chmod 644 ${IMAGE_ROOTFS}/etc/group
  10.  
  11. # Setting suid bit for su and login, to allow regular users to use them.
  12. chmod +s ${IMAGE_ROOTFS_RW}${base_bindir}/su.shadow ${IMAGE_ROOTFS_RW}${base_bindir}/login.shadow
  13. }
Add Comment
Please, Sign In to add comment