HP3000-L Archives

August 1999, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Sun, 29 Aug 1999 22:53:07 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (63 lines)
Here's my guess:

You logged on as MGR.TEST and you (presumably) have AM cap.  True,
you are not the owner of the file, but with POSIX the rules for
renaming have changed.  Prior to POSIX you had to be the owner no
matter what -- even an SM user could not rename a file that she
did not create.  With POSIX, you need the following to be able to
rename a file:
  .  CD permission in the target directory (group/account/dir)
     CD means "create directory entries", which means you can add
     objects (files, groups, dirs) under the target directory, and

  .  DD permission in the file's current directory (or group/acct).
     DD means "delete directory entries", which means you can delete
     objects (files, dirs) under the directory in question.

  .  probably need SF (save file) capability too.

  .  and I assume there are special rules for the file owner
     who does not have CD and/or DD but can still rename the file
     (at least within same group?)

So AM should be able to rename all files that are in her account
as long as the file's GID ("account name") matches the GID of the
AM user.

Jeff Vance, CSY

> I just came accross very curious behaviour of the rename
> command (MPE/ix 5.5 + PP7):
>
> MPE XL:hello manager.sys
> :newacct test,mgr
> :build x.pub.test
> :hello mgr.test
> :rename x,x/lock
> USER IS NOT CREATOR  (FSERR 94)
> RENAME failed due to file system error.  Not renamed. (CIERR 373)
> :comment ok, makes sense, since i (mgr.test) am not creator of file x
> :comment let's just make sure
> :listf x,-3
> ********************
> FILE: X.PUB.TEST
> FILE CODE : 0                   FOPTIONS: BINARY,FIXED,NOCCTL,STD
> BLK FACTOR: 1                   CREATOR : MANAGER.SYS
> REC SIZE: 256(BYTES)            LOCKWORD:
> BLK SIZE: 256(BYTES)            SECURITY--READ    : ANY
> EXT SIZE: 0(SECT)                         WRITE   : ANY
> NUM REC: 0                                APPEND  : ANY
> NUM SEC: 0                                LOCK    : ANY
> NUM EXT: 0                                EXECUTE : ANY
> MAX REC: 1023                           **SECURITY IS ON
>                                 FLAGS   : NO ACCESSORS
> NUM LABELS: 0                   CREATED : FRI, AUG 27, 1999,  9:26 PM
> MAX LABELS: 0                   MODIFIED: FRI, AUG 27, 1999,  9:26 PM
> DISC DEV #: 1                   ACCESSED: FRI, AUG 27, 1999,  9:26 PM
> SEC OFFSET: 0                   LABEL ADDR: $00000011.$00AB7E20
> VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET:DISC
>
> :comment ok. proves point about x being created by manager.sys
> :comment now, next command works. how cum??
> :rename x,y

ATOM RSS1 RSS2