From owner-freebsd-bugs Wed Sep 22 0:40: 3 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 223DF14F64 for ; Wed, 22 Sep 1999 00:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA79146; Wed, 22 Sep 1999 00:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 22 Sep 1999 00:40:01 -0700 (PDT) Message-Id: <199909220740.AAA79146@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/13889: /usr/bin/chmod +t and /usr/bin/chmod +s have no effect Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/13889; it has been noted by GNATS. From: Ruslan Ermilov To: vladimir@math.uic.edu Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/13889: /usr/bin/chmod +t and /usr/bin/chmod +s have no effect Date: Wed, 22 Sep 1999 10:34:25 +0300 On Wed, Sep 22, 1999 at 04:01:39AM -0000, vladimir@math.uic.edu wrote: > > >Description: > > /usr/bin/chmod +t filename and /usr/bin/chmod +s filename have no effect > on the file permission and do not give any error messages. I believe > the effect should be setting the sticky bit and setuid bit on the file > mode resp. > > >How-To-Repeat: > > >touch /tmp/file > >ls -l /tmp/file > -rw-r--r-- 1 vladimir wheel 0 Sep 21 22:59 /tmp/file > >chmod +t /tmp/file > >ls -l /tmp/file > -rw-r--r-- 1 vladimir wheel 0 Sep 21 22:59 /tmp/file > The sticky bit is ignored for regular files, see sticky(8) and chmod(2). To set set-user-ID or set-group-ID on a file: $ touch /tmp/file $ ls -l /tmp/file -rw-r--r-- 1 ru wheel 0 Sep 22 10:32 /tmp/file $ chmod u+s /tmp/file $ ls -l /tmp/file -rwSr--r-- 1 ru wheel 0 Sep 22 10:32 /tmp/file $ chmod g+s /tmp/file $ ls -l /tmp/file -rwSr-Sr-- 1 ru wheel 0 Sep 22 10:32 /tmp/file $ chmod ug+x /tmp/file $ ls -l /tmp/file -rwsr-sr-- 1 ru wheel 0 Sep 22 10:32 /tmp/file Can I close this PR? Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message