Where to start First steps track · 15 stages
Linux Labs

namei — permissions at every step of a path

cheat sheet · Ubuntu 24.04 · util-linux 2.39 https://lab.dimsanych.ru/en/wiki/namei/

Cheat sheet

  • namei -l /etc/nginx/nginx.conf type, mode, owner of each part
  • namei -m /var/www/html/index.html modes only
  • namei -o /srv/app/data owner and group only
  • namei /bin/sh where symbolic links lead
  • namei -n /bin/sh don't follow links
  • namei -x /home/student mark mount points (D)
  • sudo -u www-data namei -l /srv/site/index.html as the service

Options

-l is -m -o -v together; it's usually all you need. Full list — man namei.

Loading…