Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!umn-d-ub!nic.MR.NET!umn-cs!uf!brant From: brant@uf.msc.umn.edu (Gary Brant) Newsgroups: comp.sys.amiga Subject: Re: Moving directories Message-ID: <11719@umn-cs.CS.UMN.EDU> Date: 21 Mar 89 00:54:09 GMT References: <614@ivucsb.UUCP> <11651@umn-cs.CS.UMN.EDU> <363@sagpd1.UUCP> Sender: news@umn-cs.CS.UMN.EDU Reply-To: brant@uf.msc.umn.edu (Gary Brant) Organization: Minnesota Supercomputer Center, Inc. Lines: 53 In article <363@sagpd1.UUCP> monty@sagpd1.UUCP (Monty Saine) writes: > >>In article <614@ivucsb.UUCP> ivucsb!dan@anise.acc.com (Dan Howell) writes: >>> [example of moving directory on Amiga deleted] >>>And voila, no more useless top level directory. Try that on an IBM! >>> >>>(and by the way, I also noticed that you can do this on BSD Unix, but not >>>on Sys V! Why would AT&T do this? Are they trying to be IBM compatible? :-) >> >>Sys V requires you be Super User to mv directories. Dunno why, it's >>a pain. > >Thats funny, I just suspended news for a moment on my system V Unix system >and created a directory, moved up to its parent and then did a mv and it moved >it with no problem. True you can't move a directory unless you have the >correct permission, but in a multi-user system you don't want just anyone You probably just used mv to change its name; this is allowed. What you can't do is to *move* the directory into a different directory without superuser permissions. In order to achieve the same funcionality, I have to create a new directory at the location where I wanted to move this one and then move all the files to the new directory, finally I need to delete the now empty directory. Note that no such contortions are needed on BSD systems; I need only type: mv dir1 dir2 & the system will cause dir1 to become a subdirectory of dir2. On Sys V, I just get the error message, mv: directory rename only - even though I own both directories & have chmod 777 on both of them. I repeat, this is a pain. >moving around the common directories so they are only accessable by the >superuser, not a pain but a protection. [irrelevant stuff deleted to make pnews happy] It should still let me move my own directories around. > Flame me via e-mail and don't tie up the net. > >Monty > >" All side effects are effects." >" We can never do merely one thing." >" --First Law of Ecology" -Gary Brant ARPA: brant@uf.msc.umn.edu