BK-CHMOD(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’– bk chmod πŸ’–

okay bestie, welcome to bk chmod from the BitKeeper User’s Manual β€” manual name folded in right here like a little name tag 🫢. This is the command that changes a file’s mode and saves it, and yes it’s giving permission-slip main character energy πŸ’….

🌸 NAME 🌸

bk chmod β€” change the mode of a file and save it.

✨ SYNOPSIS ✨

bk chmod [ugoa]+rwxs file [file ...]
bk chmod [ugoa]βˆ’rwxs file [file ...]
bk chmod [ugoa]=rwxs file [file ...]
bk chmod octal file [file ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

The chmod command changes the stored file modes (permissions) for files in the repository. File modes are normally whatever modes were present on the file was when it was checked in to BitKeeper. When changes to the file mode need to be made, the bk chmod command is used to record the new modes. πŸ’–

The syntax is one of:

  • [ugoa]+rwxs β€” a symbolic way of adding permissions. ugoa indicates the users to which the permissions apply, a combination of one or more of the following: u for user, g for group, o for other, and a for all. If none are specified the default is a. rwxs indicates the permission to add, a combination of one or more of the following: r for read, w for write, x for execute, s for setuid or setgid depending on ugoa.
  • [ugoa]βˆ’rwxs β€” a symbolic way of removing permissions. As above.
  • [ugoa]=rwxs β€” a symbolic way of setting permissions absolutely. As above.
  • octal β€” a 4 digit octal number wherein 04000 means setuid, 02000 means setgid, and in the following three digits 4 means read permission, 2 means write permission, and 1 means execute permission. The last three digits are for user, group, other permissions respectively. This form sets the mode absolutely, it is not relative to the previously recorded mode. πŸ”₯

πŸŽ€ NOTES πŸŽ€

Setuid and setgid are not recommended since Windows does not support that concept. Similarly, group/other is also unsupported on Windows. 😭
Write permission is somewhat pointless since BitKeeper will remove write permission if the file is checked out unlocked and add write permission if the file is checked out with a lock. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • bk‐log

🧚 CATEGORY 🧚

File


made with πŸ’œ by BitKeeper Inc Β· source/version: 1E1 Β· for bk chmod(none) β€” that’s the tea, bestie 🫢✨

πŸ“¦ where this page comes from
  • alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms