can't delete a file

2002-09-04 Thread Patrick Hsieh
Hello list, I created a file as root and chown it to a common account, then su to that account, trying to delete it as that account but failed. Any idea? # touch todel # chown pahud todel # ls -l todel -rw-r--r--1 pahud root0 Sep 4 16:08 todel # su pahud rm -f todel rm:

Re: can't delete a file

2002-09-04 Thread Amir Tal
On Wednesday 04 September 2002 11:14, Patrick Hsieh wrote: Hello list, I created a file as root and chown it to a common account, then su to that account, trying to delete it as that account but failed. Any idea? # touch todel # chown pahud todel # ls -l todel -rw-r--r--1 pahud

Re: can't delete a file

2002-09-04 Thread Pietro Cagnoni
Patrick Hsieh wrote: Hello list, I created a file as root and chown it to a common account, then su to that account, trying to delete it as that account but failed. Any idea? this is one of the most problems for unix newbies... basically, when you remove a file you don't modify it, but

Re: Can't delete a file

1997-08-12 Thread A. M. Varon
On Mon, 11 Aug 1997, Mike Miller wrote: I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How do I tell it not to use the hyphen as a switch? Use Midnight Commander. Type mc to run the

Re: Can't delete a file

1997-08-12 Thread Dan Dooher
Andre, Type: rm - -test A -- permits the user to mark explicitly the end of any com- mand line options, allowing rm to recognize file arguments that begin with a -. Regards, Dan A. M. Varon wrote: On Mon, 11 Aug 1997, Mike Miller wrote: I have a file on my machine that I created

Re: Can't delete a file

1997-08-11 Thread Andreas Nowack
I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How do I tell it not to use the hyphen as a switch? Try: rm -- -test Andreas -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word

Re: Can't delete a file

1997-08-11 Thread jdassen
On Aug 11, Mike Miller wrote I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How do I tell it not to use the hyphen as a switch? With most GNU tools, '--' means end option processing here.

Can't delete a file

1997-08-11 Thread Mike Miller
I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How do I tell it not to use the hyphen as a switch? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED]

Re: Can't delete a file

1997-08-11 Thread Richard . Dansereau
I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How do I tell it not to use the hyphen as a switch? The easiest (and more portable since not all versions of rm include the -- option)

Re: Can't delete a file

1997-08-11 Thread Geoff R Deasey
try rm -test Regards, | Debian GNU/ __ o .| R L / / _ _ _ _ _ __ __ Jeff | E I / /__ / / / \// //_// \ \/ / (FidoNet 1:3644/9) | D N// /_/ /_/\/ /___/ /_/\_\ ([EMAIL PROTECTED])

Re: Can't delete a file

1997-08-11 Thread Heikki Vatiainen
The universal answer comes from comp.unix.faq. Try rm ./-test This should work no matter which ls you are using. Mike Miller wrote: I have a file on my machine that I created that begins with a hyphen. How can I delete it. rm -test says can't delete est using option -t (or whatever). How