Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22002

Re: How to do chown or chgrp

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 Sat, 02 Feb 2013 02:55:03 -0600
Date Sat, 02 Feb 2013 08:55:02 +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> <dc6dnZedsLT0CZfMnZ2dnUVZ7tKdnZ2d@bt.com> <510c483a$0$294$14726298@news.sunsite.dk>
In-Reply-To <510c483a$0$294$14726298@news.sunsite.dk>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
Message-ID <2pKdnRaZE_H6SZHMnZ2dnUVZ8qidnZ2d@bt.com> (permalink)
Lines 23
X-Usenet-Provider http://www.giganews.com
X-AuthenticatedUsername NoAuthUser
X-Trace sv3-NExzo0+/fd5rENw+JIEQ/Da9PGlCcD05foIn4M6EmVyDKv6yKYjbZnxtR0i4SHPDfcH/r69wX/bR8ZC!m0YoRd8pLPQK5dhBrIaoeFVdpULe8iQ2qcKQhTUtZYetP61XdsKrkRpy08s/z8tmLFHlu8VlcWo=
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 1949
Xref csiph.com comp.lang.java.programmer:22002

Show key headers only | View raw


On 01/02/13 22:56, Arne Vajhøj wrote:
> On 1/31/2013 10:57 AM, lipska the kat wrote:
>> 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
>
> As owner and group are not in PosixFilePermission
> then surely not.

Ah yes, setPosixFilePermissions would be chmod.

My mistake

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to do chown or chgrp loial <jldunn2000@gmail.com> - 2013-01-31 06:56 -0800
  Re: How to do chown or chgrp Arne Vajhøj <arne@vajhoej.dk> - 2013-01-31 10:37 -0500
  Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-31 15:57 +0000
    Re: How to do chown or chgrp Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:56 -0500
      Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-02 08:55 +0000
        Re: How to do chown or chgrp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-02 08:34 -0800
          Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-02 20:26 +0000
  Re: How to do chown or chgrp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-01 06:37 -0800

csiph-web