Re: [9fans] Changing ownership of files or chown is missing

2012-05-20 Thread Anthony Sorace
On May 20, 2012, at 10:43 , Burton Samograd wrote:

> Could somebody explain to me why there is no concept of
> chown on plan9 and what is the plan9 way around changing
> the owners and groups of files?  Thanks.

it's simply not part of the model. we tend to use groups for many
things modern unixes use "special" users for. also our tools tend
to be less paranoid about such things.

you've discovered the most general-purpose alternative already:
copy the file. if you need something beyond that, you need to be
on the file server console (wstat, or srv a permissive version of
the tree).

anthony



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [9fans] Changing ownership of files or chown is missing

2012-05-20 Thread David du Colombier
> Could somebody explain to me why there is no concept of chown on
> plan9 and what is the plan9 way around changing the owners and groups
> of files?  Thanks.

You could use the "chgrp -u" command, but it will only
work if you mounted the file system allowing arbitrary
changes with wstat. The Fossil "srv" and "open" commands
take the "-W" parameter to do that.

Alternatively, you can use the "wstat" command in
your file system console.

-- 
David du Colombier



Re: [9fans] Changing ownership of files or chown is missing

2012-05-20 Thread erik quanstrom
On Sun May 20 10:44:12 EDT 2012, burton.samog...@gmail.com wrote:
> I had hg complaining about the owner of the system wide hgrc on 9front so
> I did what I thought was most obvious and tried a chown of the file.  No 
> chown.
> So I did a google and found that plan9 doesn't have chown or anything like 
> chown
> because that concept doesn't exist on plan9.  This seems a bit funny
> since an ls -l
> shows me file owners and groups.  I got around not having chown by copying the
> file and then moving it over the original file.
> 
> Could somebody explain to me why there is no concept of chown on plan9 and 
> what
> is the plan9 way around changing the owners and groups of files?  Thanks.
> 

iirc, add this to your system-wide hgrc and it'll shut up.

[ui]
reportoldssl = False
report_untrusted = False




Re: [9fans] Changing ownership of files or chown is missing

2012-05-20 Thread Connor Lane Smith
Hey,

On 20 May 2012 15:43, Burton Samograd  wrote:
> Could somebody explain to me why there is no concept of chown on plan9 and 
> what
> is the plan9 way around changing the owners and groups of files?  Thanks.

I think you're looking for chgrp -u.

cls



[9fans] Changing ownership of files or chown is missing

2012-05-20 Thread Burton Samograd
I had hg complaining about the owner of the system wide hgrc on 9front so
I did what I thought was most obvious and tried a chown of the file.  No chown.
So I did a google and found that plan9 doesn't have chown or anything like chown
because that concept doesn't exist on plan9.  This seems a bit funny
since an ls -l
shows me file owners and groups.  I got around not having chown by copying the
file and then moving it over the original file.

Could somebody explain to me why there is no concept of chown on plan9 and what
is the plan9 way around changing the owners and groups of files?  Thanks.

--
Burton Samograd