every file has an owner and a group ownership

-rw-r--r--    1 root     admin          67 Dec  1 10:04 /etc/resolv.conf
                 ^        ^
              owner       group ownership


to change the group ownership of this file to hellokitty:

    chgrp hellokitty /etc/resolv.conf

to change the owner to damndog and group ownership to hellokitty, you can use
chown:

    chown damndog.hellokitty /etc/resolv.conf

i think colon works too.

    chown damndog:hellokitty /etc/resolv.conf

you can also use chown to change just the ownership as well:

    chown damndog /etc/resolv.conf

the rules over who can chown and chgrp are a little complicated.  best to do
this with root.

pete


On Mon 12 Mar 01,  9:11 PM, Larry Snyder said: 
> >> ...suggest you change group of /etc/resolv.conf to "dialout", make sure
> >> your user account belongs to group dialout...
> 
> Pete,
> 
>     The second half of this makes sense, since /etc/group contains the
> "dialout" key that Bill mentioned, and my username was already in it. But
> I'm not at all clear what it means to "change group of ...resolv.conf to
> 'dialout'." In my ignorance of the system, I can make the English syntax
> of that clause mean several different things, none of which fit with
> what I can see on the box.
> 
> Thanks for the tip on the book. I've also got an earlier edition of Matt
> Welsh's O'Reilly book here, which has been some help as a quick
> reference as well.
> 
> Larry
> 
> 
> 

-- 
"Coffee... I've conquered the Borg on coffee!"               [EMAIL PROTECTED]
       -- Kathryn Janeway on the virtues of coffee           www.dirac.org/p

Reply via email to