Path: utzoo!attcan!uunet!snorkelwacker!apple!mips!servitude!rogerk From: rogerk@mips.COM (Roger B.A. Klorese) Newsgroups: comp.sys.mips Subject: Re: sticky-bit directories not working? Message-ID: <41541@mips.mips.COM> Date: 17 Sep 90 18:14:17 GMT References: <1990Sep16.202103.8263@maytag.waterloo.edu> Sender: news@mips.COM Reply-To: rogerk@mips.COM (Roger B.A. Klorese) Organization: MIPS Computer Systems, Inc. Lines: 53 In article <1990Sep16.202103.8263@maytag.waterloo.edu> gamiddle@maytag.waterloo.edu (Guy Middleton) writes: >On an M/2000 with 4.50: > > $ wmi > news@xxx.mfcf (Group other) on ttyp0 at /usr/home/gamiddleton/tmp > $ which mv > /usr/bsd43/bin/mv > $ ls -lgd > drwxrwxrwt 2 root staff 512 Sep 16 16:07 . > $ ls -lg > total 0 > -rw-r--r-- 1 root staff 0 Sep 16 16:07 blah > -rw-r--r-- 1 news staff 0 Sep 16 16:08 foo > $ mv blah foo > mv: blah: rename: No permission match > $ ls -lg > total 0 > -rw-r--r-- 2 root staff 0 Sep 16 16:07 blah > -rw-r--r-- 2 root staff 0 Sep 16 16:07 foo > >Hmmm. I just tried this with /bin/mv, and it work as expected (that is, it >didn't work at all). This seems strange, since one would expect both programs >to work by using rename(2). Sorry, I couldn't duplicate this: Script started on Mon Sep 17 10:26:37 1990 csbug@servitude[1] whoami csbug csbug@servitude[2] ls -l /tmp/foo /tmp/bar -rw-r--r-- 1 rogerk mips 0 Sep 17 10:22 /tmp/bar -rw-r--r-- 1 rogerk mips 0 Sep 17 10:22 /tmp/foo csbug@servitude[3] ls -ld /tmp drwxrwxrwt 3 sys sys 14848 Sep 17 10:26 /tmp csbug@servitude[4] cd /tmp csbug@servitude[5] mv foo bar mv: cannot remove foo: Permission denied csbug@servitude[6] /bsd43/bin/mv foo bar override protection 644 for bar? y mv: foo: rename: No permission match csbug@servitude[7] ls -l foo bar -rw-r--r-- 1 rogerk mips 0 Sep 17 10:22 bar -rw-r--r-- 1 rogerk mips 0 Sep 17 10:22 foo csbug@servitude[8] exit csbug@servitude[9] script done on Mon Sep 17 10:27:26 1990 -- ROGER B.A. KLORESE MIPS Computer Systems, Inc. MS 6-05 930 DeGuigne Dr. Sunnyvale, CA 94086 +1 408 524-7421 rogerk@mips.COM {ames,decwrl,pyramid}!mips!rogerk "I'm the NLA" "Lead me not into temptation; I can find the way myself." --Rita Mae Brown