Re: Users and groups properly organized?



Kristian Vaaf wrote:
[ ... ]
Have you all ever had a look at your /etc/master.passwd and /etc/group?

Yes. Most people who edit these files by hand try to keep them in order, but...

Stupid question. But notice the user and group identifications being thrown
about as if they didn't matter.

...it doesn't matter much to FreeBSD; the system doesn't care.

That information is generally accessed via a hash table in persistent service
daemons, although there is plenty of userland code which does linear access
patterns via getpwent(), getpwnam(), etc. Unless you've got thousands or tens
of thousands of user accounts, there won't be a noticeable difference.

To me they do, and I would like some order
in my system. Starting with my user and group identifications.

Can I do something like this?

find -s . -uid foo | xargs chown bar
find -s . -gid foo | xargs chgrp bar

I suppose, but I would avoid making sweeping changes like that outside of
people's home directories. You will reset (and therefore break) setuid- and
setgid- bits of executables if you run this against /usr.

To be able to arrange master.passwd like this,
where UIDs and GIDs go by a chronological order?

nobody:*:55555:55555::0:0:Unprivileged:/nonexistent:/usr/sbin/nologin
root:$1$xsL49xbt$of5hvUCiVT/b/D3B70bZv1:0:0::0:0:Core:/root:/usr/local/bin/zsh

Also, obviously one does not want to mail your root password, even encrypted, to
a public mailing list. You should promptly switch to using a new password....

[ ... ]
Maybe such order, harmony or balance or whatever will help
boost system performance? Just a superstitious thought. Cheers! :)

If you make a change and you feel your system is more organized as a result,
that's a fine thing. You might find using vipw to change the passwd file a good
idea.

--
-Chuck
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Cannot edit email address
    ... change it in Exchange. ... No matter how many times I edit this in Server ...
    (microsoft.public.exchange.admin)
  • Re: copy/ paste with keys in cmd.exe
    ... "Quick Edit" mode. ... Microsoft MVP [Windows] ... "Mike Maxwell" wrote: ... | modifiers I use (and no matter what setting I have on Properties | Quick ...
    (microsoft.public.windowsxp.general)
  • Re: OT (slightly): MP3 players
    ... a matter of urgency - I keep moving up/down one item when I try and press ... Edit for spelling... ...
    (uk.music.guitar)
  • Unable to move focus to another field
    ... I have a VS.NET 2003 Visual Basic form which keeps hanging. ... appear to matter what textbox I am on. ... When trying to edit the field I ...
    (microsoft.public.dotnet.languages.vb)
  • Euro Symbol not working in Word V. X
    ... In text edit I can press Option Shift 2 and get the? ... "Euro Symbol" and here ... for that matter. ...
    (microsoft.public.mac.office.word)

Quantcast