Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 17 Nov 2004 10:30:35 -0500 (EST) From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> Reply-To: cygwin AT cygwin DOT com To: George <d1945 AT sbcglobal DOT net> cc: cygwin AT cygwin DOT com Subject: Re: chown In-Reply-To: <20041117122530.GA748@home> Message-ID: <Pine.GSO.4.61.0411171028210.1017@slinky.cs.nyu.edu> References: <20041117122530 DOT GA748 AT home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 17 Nov 2004, George wrote: > From the "Recovering from Windows penchant for spaces in user and file > names" Department: > > Maybe I'm being really dense, but the --from switch isn't quite > working as advertised: > > george AT home ~/test > $ ls -ln > -rwxrwxrwx 1 544 513 48 Nov 17 03:59 testfile > > george AT home ~/test > $ chown --from=514:513 1008:513 testfile > > george AT home ~/test > $ ls -ln > -rwxrwxrwx 1 544 513 48 Nov 17 03:59 testfile > > Thanks. What CGF said... However, as a datapoint, chown's --from switch works just fine for me, as long as I specify the current owner and group correctly... :-) I.e., in your case, you should have said $ chown --from=544:513 1008:513 testfile ^^^ Hope this helps, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/