• 1 Post
  • 69 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle








  • First one sets it so that only the owner can read, (4), write (2), execute (1). That’s why it equals 7. The group and all others (the next two numbers) can do nothing (0 meaning they can’t read, write, or execute anything in there).

    The second sets ownership (ie. That adelie account will be both the user and group in the above scenario.)

    I’m coming in late in this but i don’t know why you’d really do the first. The second simply changes things so your user has permission to their own home directory.

    Lastly, names are meaningless in general. Things work on ids. You can run id to get a quick look at who you are. Same with echo $UID or $GID.

    Really long but useful article to wrap your head around permissions- https://www.redhat.com/sysadmin/linux-file-permissions-explained