Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!multikabel.net!newsfeed20.multikabel.net!newsfeeder.ewetel.de!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: Sat, 02 Feb 2013 14:26:28 -0600 Date: Sat, 02 Feb 2013 20:26:11 +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> <510c483a$0$294$14726298@news.sunsite.dk> <2pKdnRaZE_H6SZHMnZ2dnUVZ8qidnZ2d@bt.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <5tednY7kibHp65DMnZ2dnUVZ7o-dnZ2d@bt.com> Lines: 25 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-j1PNiuSIK3u/d8wSCJrkBBhvvSsJlPs7XFq+RI6rlR2hXLHEwLR4Yt+fjelW5MBWcsVpkBj6LEziF3E!UJuybZVOh44KlSFLqiJ1Ntyg23uSyEj8BQI2iUNl/bQbcMfpbcPcW7ygr/AIAu/KQNGqa3HiB1s= 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: 2082 Xref: csiph.com comp.lang.java.programmer:22023 On 02/02/13 16:34, Roedy Green wrote: > On Sat, 02 Feb 2013 08:55:02 +0000, lipska the kat<"nospam at > neversurrender dot co dot uk"> wrote, quoted or indirectly quoted > someone who said : > >>> As owner and group are not in PosixFilePermission >>> then surely not. >> >> Ah yes, setPosixFilePermissions would be chmod. > > How about Files.setOwner ? The OP needed chown and chgrp chmod - Files.setPosixFilePermissions chown - PosixFileAttributeView.setOwner chgrp - PosixFileAttributeView.setGroup Seems to be one way to do it. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun