l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Nameserver confusion with non-root users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Nameserver confusion with non-root users

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 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.


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!"               p@dirac.org
       -- Kathryn Janeway on the virtues of coffee           www.dirac.org/p

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!