Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2006 15:32:31 +0100
From:      Kristian Vaaf <vaaf@broadpark.no>
To:        questions@freebsd.org
Subject:   Users and groups properly organized?
Message-ID:  <7.0.1.0.2.20060303152354.022c0d48@broadpark.no>

next in thread | raw e-mail | index | archive | help

Hello.

Have you all ever had a look at your /etc/master.passwd and /etc/group?
Stupid question. But notice the user and group identifications being thrown
about as if they didn't matter. 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

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

daemon:*:1:1::0:0:System Processes:/root:/usr/sbin/nologin
operator:*:2:2::0:0:Operator:/:/usr/sbin/nologin
kmem:*:3:65533::0:0:KMem:/:/usr/sbin/nologin
bin:*:4:4::0:0:Binaries:/:/usr/sbin/nologin
tty:*:5:65533::0:0:Titty:/:/usr/sbin/nologin
news:*:6:6::0:0:News:/:/usr/sbin/nologin
man:*:7:7::0:0:Manuals:/usr/share/man:/usr/sbin/nologin

sshd:*:101:101::0:0:Secure Shell:/var/empty:/usr/sbin/nologin
www:*:102:102::0:0:World Wide Web:/usr/local/www:/usr/sbin/nologin
ftp:*:103:103::0:0:File Transfer Protocol:/home/websites:/usr/sbin/nologin
mysql:*:104:104::0:0:MySQL:/var/db/mysql:/sbin/nologin
proxy:*:105:105::0:0:Packet Filter:/nonexistent:/usr/sbin/nologin
smmsp:*:106:106::0:0:Sendmail 
Submission:/var/spool/clientmqueue:/usr/sbin/nologin
mailnull:*:107:107::0:0:Sendmail Default:/var/spool/mqueue:/usr/sbin/nologin
postfix:*:108:108::0:0:Postfix:/var/spool/postfix:/usr/sbin/nologin
cyrus:*:109:109::1111874400:0:Cyrus:/nonexistent:/usr/sbin/nologin
spamd:*:110:110::0:0:SpamAssassin:/var/spool/spamd:/sbin/nologin
vscan:*:111:111::0:0:Scanner:/var/amavis:/bin/sh
clamav:*:112:112::0:0:ClamAV:/nonexistent:/usr/sbin/nologin
tinydns:*:113:113::0:0:TinyDNS:/nonexistent:/usr/sbin/nologin
axfrdns:*:114:114::0:0:Transfers:/nonexistent:/usr/sbin/nologin
dnscache:*:115:115::0:0:Cache:/nonexistent:/usr/sbin/nologin
dnslog:*:116:116::0:0:Logging:/nonexistent:/usr/sbin/nologin

vaaf:*:1001:0::0:0:Kristian:/home/vaaf:/usr/local/bin/zsh
nomad:*:1002:1002::0:0:Hednod:/home/nomad:/usr/local/bin/zsh
polvott:*:1003:1003::0:0:Thomas:/home/polvott:/usr/local/bin/zsh
speak:*:1004:1004::0:0:Poetry:/home/speak:/usr/local/bin/zsh

And groups equally:

nobody:*:55555:
wheel:*:0:root

daemon:*:1:
operator:*:2:root
kmem:*:3:
bin:*:4:
tty:*:5:
news:*:6:
man:*:7:
sshd:*:101:

www:*:102:
ftp:*:103:
mysql:*:104:
proxy:*:105:
smmsp:*:106:
mailnull:*:107:
postfix:*:108:
cyrus:*:119:
spamd:*:110:
vscan:*:111:
clamav:*:112:
tinydns:*:113:
axfrdns:*:114:
dnscache:*:115:
dnslog:*:116:

nomad:*:1002:
polvott:*:1003:
speak:*:1004:

And so on ...

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

All the best,
Vaaf




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7.0.1.0.2.20060303152354.022c0d48>