bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: random errors from "rm"


From: Gee M Wong
Subject: Re: random errors from "rm"
Date: Fri, 25 Feb 2005 19:57:46 -0500

From: "Bob Proulx" <address@hidden>
To: "Gee M Wong" <address@hidden>
Cc: <address@hidden>
Sent: Friday, February 25, 2005 11:03
Subject: Re: random errors from "rm"


> Gee M Wong wrote:
> > I updated to the setup 2.457.2.2 from 2.427 and started getting
> > random errors from "rm".
>
> What do the numbers "2.457.2.2 from 2.427" mean in this context?  I
> can't place them.  They don't seem to be related to GNU coreutils.

I was reading the version number displayed on the cygwin setup dialog that
is initially displayed when I run setup.exe.  To establish a known baseline,
I uninstalled everything, deleted the C:\cygwin folder, deleted the Cygnus
registries branches, deleted my local copy of  setup.exe and all the files
previously downloaded, and reinstalled from scratch.  I'm using cygwin
1.5.12-1 with bash 2.05b-16 and perl 5.8.6-4.

> > For example:
> >   address@hidden ~
> >   $ echo 123 > aaa
> >
> >   address@hidden ~
> >   $ ls -l
> >   total 1
> >   -rw-r--r--  1 Gee None 5 Feb 24 20:20 aaa
>
> It seems strange to me that your user name and group names are
> capitalized strings "Gee" and "None".  You have a group "None"?
> Strange but probably okay.

My Windows 2000 id is "Gee" and there is no group "None" defined in Windows
2000.  But "None" is defined in /etc/group as:

None:S-1-5-21-1085031214-1606980848-854245398-513:513:

>
> >   address@hidden ~
> >   $ rm aaa
> >   rm: cannot remove `aaa': No such file or directory
>
> That does seem strange.  You created the file so it should be in your
> default group.  Now you should be able to remove the file.  However I
> wonder about a few things.  What is the output of these commands?
>
>   id

uid=1000(Gee) gid=513(None)
groups=0(root),513(None),544(Administrators),545(Users)

>   ls -ld

drwxrwxrwx+ 2 Gee None 4096 Feb 25 19:27 .

>   ls -ldn . aaa

drwxrwxrwx+ 2 1000 513 4096 Feb 25 19:27 .

'aaa' did get removed by "rm".  But "rm" always returns an error, unless I
use "-f".

> I would also see if other commands also have errors.
>

>   perl -e 'unlink(@ARGV) or die "@ARGV: $!\n"' aaa

address@hidden ~
$ echo 123 > aaa

address@hidden ~
$ perl -e 'unlink(@ARGV) or die "@ARGV: $!\n"' aaa
aaa: No such file or directory

address@hidden ~
$ ls -l
total 0


I also cannot use here documents:

address@hidden ~
$ cat <<!
> 1
> 2
> 3
> 4
> !
bash: cannot create temp file for here document: No such file or directory

> But other than these things I can't imagine what would create the
> behavior you are seeing.
>
> Bob





reply via email to

[Prev in Thread] Current Thread [Next in Thread]