Subject: bin/3020: chmod +t
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 12/11/1996 10:41:41
>Number: 3020
>Category: bin
>Synopsis: Setting sticky bit with chmod using a perm symbol requires a who symbol
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 11 07:50:01 1996
>Last-Modified:
>Originator: Kimmo Suominen
>Organization:
Kimmo Suominen
>Release: 1.2_BETA
>Environment:
System: NetBSD hrothgar.gw.com 1.2_BETA NetBSD 1.2_BETA (BEOWULF) #1: Thu Sep 26 20:54:43 EDT 1996 kim@ramoth.nyc.deshaw.com:/usr/src/sys/arch/i386/compile/BEOWULF i386
>Description:
One can usually set the sticky bit by executing "chmod +t foo".
This works on most systems:
- Dell SVR4 (USL SVR4.0/386)
- Linux
- HP-UX 9.x
- SunOS 4.1.x
- Solaris 2.5
are a few I've tried this on).
On NetBSD the "who" symbol "a" is required, i.e. "chmod a+t foo"
works. Using "chmod +t foo" silently fails.
>How-To-Repeat:
% mkdir foo
% chmod +t foo
% ls -ld foo
You will see no sticky bit set.
% chmod a+t foo
% ls -ld foo
You will see the sticky bit is set now.
>Fix:
>Audit-Trail:
>Unformatted: