Bug 156815 - chmod(1): manpage should describe that chmod kicks +t for file
Summary: chmod(1): manpage should describe that chmod kicks +t for file
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 15:20 UTC by naruse
Modified: 2018-04-11 20:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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