Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Script not setting ownship of new directory

by pc88mxer (Vicar)
on Jul 29, 2008 at 05:18 UTC ( #700732=note: print w/replies, xml ) Need Help??

in reply to Re: Script not setting ownship of new directory
in thread Script not setting ownership of new directory

chown will allow a user to change the group of a file to any group that the user is member of. But, in general, you need to have effective root privs to change the owner.

Replies are listed 'Best First'.
Re^3: Script not setting ownship of new directory
by graff (Chancellor) on Jul 29, 2008 at 05:29 UTC
    Right. It seems I misunderstood the OP's question. I thought (mistakenly) he was talking about changing user ownership. If it's just a matter of changing group ownership, then yes, chown should work fine without root privilege and without problems, so long as the current user is included in the target group.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://700732]
[shmem]: *if* there is a bonus due, they would pay 9.250
[shmem]: don't expect anything noteworthy from a countrie's elections in which such things are shrugged off.
[shmem]: otoh, hindering me from spending the money before due time is worth some fee, isn't it?

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-09-19 15:38 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (222 votes). Check out past polls.