Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 31 Jan 2013 09:57:29 -0600 Date: Thu, 31 Jan 2013 15:57:27 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: How to do chown or chgrp References: <713a2f2b-eaad-4689-9089-314683eac4b3@googlegroups.com> In-Reply-To: <713a2f2b-eaad-4689-9089-314683eac4b3@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 14 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-kBt710x5VHqJ2KExmC/jOOEmWYv2OZc0cML78xqhAG9+FCwKE4mZg2nq2jX2TFoUj2dFwlUzZLeo9Ut!NzQwJk8fUNpqItWGnM026Wu/JRv21dGuz23/pa8nIOi5u/Xvbl4WomQpJW7Gsf2HBI8N0ZXMYyI= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1632 Xref: csiph.com comp.lang.java.programmer:21926 On 31/01/13 14:56, loial wrote: > What is the best way to run the unix chown and chgrp commands in Java? > > I only need to run these commands on one file at at time. Surely the 'Java' way (in 1.7 at least) is java.nio.file.Files.setPosixFilePermissions lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun