Re: Groups: Howto and New?
Marc
----------
Marc Mongeon <mongeon@bankoe.com>
Unix Specialist
Ban-Koe Systems
9100 W Bloomington Fwy
Bloomington, MN 55431-2200
(612)888-0123, x417 | FAX: (612)888-3344
----------
"It's such a fine line between clever and stupid."
-- David St. Hubbins and Nigel Tufnel of "Spinal Tap"
>>> J Horacio MG <homega@vlc.servicom.es> 05/18 12:51 PM >>>
> I have a directory within /home (ok, probably not the right place for
> it) which I use to store several documents and other stuff; I'd like to
> be able to read and write to it just from my user and from root, so I
> thought of making a new group and changing that directory and files group
> permissions to the newly created group. Is this a right way to do it?
Just make sure the owner is your user and disable all rights
for group and other. root can read anything, anytime, any-
where, regardless of privileges.
The day you decide to let *another* normal user access the
files, then you can start worrying about groups and group
access.
> Also, how can I have information about groups (other than the one
> provided in /etc/groups)?
Assuming that the /etc/groups file supports '#' comments at the end
of a line (I'm not certain that it does), I would put additional information
about the group after a comment and then write a utility that parses
the /etc/groups file and prints the group information. That's pretty
general, if you don't get any better suggestions, I would be happy to
elaborate.
Marc
Reply to: