FS_SETCELL(1)
π FS_SETCELL(1) π
AFS Command Reference β¨ this is the fs setcell page bestie, welcome to the group chat π«Ά
β¨ NAME β¨
fs_setcell β configures permissions for setuid programs from specified cells π
πΈ SYNOPSIS πΈ
fs setcell -cell <cell name>+ [-suid] [-nosuid] [-help]
fs setce -c <cell name>+ [-s] [-n] [-h]
π¦ DESCRIPTION π¦
okay so. fs setcell is the one that decides whether the Cache Manager lets programs (and other executable files, yes those too) from each cell you name with the -cell argument run with setuid permission. π
Here's the default tea β: the Cache Manager lets programs from its home cell run with setuid permission, but programs from any foreign cells? nope, absolutely not. π ββοΈ
And what even counts as a program's cell? A program belongs to the same cell as the file server machine that houses the volume where the program's binary file lives β as specified in that file server machine's /etc/openafs/server/ThisCell file. Meanwhile the Cache Manager figures out its own home cell by reading /etc/openafs/ThisCell at initialization. two different files, yes, keep up bestie π
- want programs from each cell you specified to run with setuid permission? include the
-suidflag β - want to prohibit programs from running with setuid permission? include the
-nosuidflag, or just omit both flags π«
The way that fs setcell is lowkey iconic: it directly alters a cell's setuid status as recorded in kernel memory, so you do not need to reboot the machine. slay. β¨
but bestieβ¦ π non-default settings do not persist across reboots of the machine unless the appropriate fs setcell command appears in the machine's AFS initialization file. put it in the file. do it. π«Ά
And if you wanna just look at a cell's setuid status? run the fs getcellstatus command. π
π CAUTIONS π (read these fr fr)
AFS does not recognize effective UID: if a setuid program accesses AFS files and directories, it does so using the current AFS identity of the AFS user who initialized the program β not the identity of the program's owner. Only the local file system recognizes effective UID. the way that's a whole different vibe π
Only members of the system:administrators group can turn on the setuid mode bit on an AFS file or directory. π
When the setuid mode bit is turned on, the UNIX ls -l command displays the third user mode bit as an s instead of an x. however β and this is the plot twist π β the s does not appear on an AFS file or directory unless setuid permission is enabled for the cell in which the file resides.
π OPTIONS π
-cell <cell name>+β names each cell for which to set setuid status. give it the fully qualified domain name, or a shortened form that disambiguates it from the other cells listed in the local/etc/openafs/CellServDBfile. π―-suidβ allows programs from each specified cell to run with setuid privilege. provide it or the-nosuidflag, or omit both flags to disallow programs from running with setuid privilege. β¨-nosuidβ prevents programs from each specified cell from running with setuid privilege. provide it or the-suidflag, or omit both flags to disallow programs from running with setuid privilege. π«-helpβ prints the online help for this command. all other valid options are ignored. β every single other one, ignored, no notes π
π EXAMPLES π
The following command enables executable files from the Example Organization cell to run with setuid privilege on the local machine:
% fs setcell -cell example.org -suid
and that's the whole recipe bestie. ate. π
π PRIVILEGE REQUIRED π
The issuer must be logged in as the local superuser root. that's it that's the requirement, no shortcuts, main character energy only π§
π₯ SEE ALSO π₯
fs_getcellstatus(1) β your bestie, your partner in crime, go read it π«Ά
π COPYRIGHT π
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. πΈ
and that's the page!! this was OpenAFS, dated 2026-07-27, page FS_SETCELL(1) β mwah, take care of your setuid bits bestie πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms