Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 1999 00:40:01 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13889: /usr/bin/chmod +t and /usr/bin/chmod +s have no effect
Message-ID:  <199909220740.AAA79146@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13889; it has been noted by GNATS.

From: Ruslan Ermilov <ru@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909220740.AAA79146>