[X-Unix] setting groups OSX Panther

William H. Magill magill at mcgillsociety.org
Sun Jan 4 07:31:57 PST 2004


On 04 Jan, 2004, at 00:41, Philip Ershler wrote:
> If you've tried the suggestion below and it still won't let you change 
> things, try this
>
> sudo chflags nouchg Audio\ 1_02.wav
>
> and so on.

Note that there are two issues here. One is the space in the file name.

"Normally," in Unix one "quotes" the space - which is what the 
backslash (\) in front of the space in the above example does. An 
alternative would be to quote the entire file name...

            sudo chflags nouchg "Audio 1_02.wav"
or wildcard it...

            sudo chflags nouchg Audio*

This syntax can be used when the filenames all "match."

In this case, the sudo should not be necessary since the file is owned 
by the user performing the operation.

The second (and probably your problem) is the "Locked" attribute. The 
above command clears the "locked" bit, after which one applies the 
chmod and chown or chgrp commands.
If you want/need to change both the owner and group, the chown command 
can be used.
Note that the syntax in Panther has changed. The owner and group are 
now separated by a colon (:) rather than a period (.).

chflags nouchg Audio*
chown davidgil:staff Audio*

T.T.F.N.
William H. Magill
# Beige G3 - Rev A motherboard - 768 Meg
# Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a
# XP1000 - [Alpha EV6]
magill at mcgillsociety.org
magill at acm.org
magill at mac.com


> On Jan 3, 2004, at 10:26 PM, Thomas W Noel wrote:
>>> On 03 Jan, 2004, at 23:18, David Gilden wrote:
>>>  I copied some files off a CD ROM to my HD and they showed up like :
>>>
>>> -rw-rw-rw-   1 davidgil  unknown  40653710 20 Dec 11:44 Audio 
>>> 1_02.wav
>>> -rw-rw-rw-   1 davidgil  unknown   9124092 20 Dec 11:38 Audio 
>>> 2_01.wav
>>> -rw-rw-rw-   1 davidgil  unknown  40653710 20 Dec 11:44 Audio 
>>> 2_02.wav
>>> -rw-rw-rw-   1 davidgil  unknown   9124092 20 Dec 11:38 Audio 
>>> 3_01.wav
>>> -rw-rw-rw-   1 davidgil  unknown  40653710 20 Dec 11:44 Audio 
>>> 3_02.wav
>>>
>>>
>>> Now I can not rename them in the finder (for some unknown reason),
>>> and would like to also change the group settings to the example 
>>> below:
>>>
>>>
>>> -rw-r--r--   1 davidgil  staff     4816445 15 Dec 23:22 DLS61aMac.sit
>>>
>>> I am guessing that this will solve the problem with renaming.
>>>
>>> How do I do this (I am in Panther using Bash shell)
>>>
>>  dadvidgil%    chgrp staff (filename)		see man chgp
>>
>> davidgil%	  chmod 644 (filename)		see man chmod
>>
>> Tom
T.T.F.N.
William H. Magill
# Beige G3 - Rev A motherboard - 768 Meg
# Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a
# XP1000 - [Alpha EV6]
magill at mcgillsociety.org
magill at acm.org
magill at mac.com




More information about the X-Unix mailing list