Bug 156815

Summary: chmod(1): manpage should describe that chmod kicks +t for file
Product: Documentation Reporter: naruse
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: doc
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description naruse 2011-05-04 15:20:08 UTC
FreeBSD's chmod(1) and chmod(2) can't set sticky bit to non-directories not in jail. (ufschmod in sys/ufs/ufs/ufs_vnops.c)
But manpages doesn't describe about it.

How-To-Repeat: % touch /tmp/a                                                                     % chmod +t /tmp/a                                                                  chmod: /tmp/a: Inappropriate file type or format
Comment 1 pluknet 2011-05-04 15:57:03 UTC
From 4.4BSD as a historical reference:

     The ISVTX (the sticky bit) indicates to the system which executable files
     are shareable (the default) and the system maintains the program text of
     the files in the swap area. The sticky bit may only be set by the super
     user on shareable executable files.

Though, it has long obsolete since then.

-- 
wbr,
pluknet
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:43 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped