From owner-freebsd-questions Tue May 13 07:15:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA21732 for questions-outgoing; Tue, 13 May 1997 07:15:52 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA21716 for ; Tue, 13 May 1997 07:15:17 -0700 (PDT) Received: by mail.EUnet.hu, id QAA23794; Tue, 13 May 1997 16:14:47 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id NAA00310; Tue, 13 May 1997 13:26:31 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705131126.NAA00310@CoDe.hu> Subject: Re: permissions To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 13 May 1997 13:26:31 +0200 (MET DST) Cc: un_x@anchorage.net In-Reply-To: from Steve Howe at "May 13, 97 03:02:35 am" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Sun, 4 May 1997, Steve Howe wrote: > > regarding root being able to write r-- r-- r-- (owner root) files, > i don't see "chflags", or "ls -o" on other UNIX systems, > is this a BSD only type of thing - file flags? It's something from BSD 4.4. Of course, some other Unix(-like) opsys has such features (eg. Linux has it, too on ext2). Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"