Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
User Creation Script: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
groupadd -g 600 maxproc | |||
groupadd -g 500 qmail | groupadd -g 500 qmail | ||
groupadd -g 501 nofiles | groupadd -g 501 nofiles | ||
Line 21: | Line 22: | ||
groupadd -g 537 ledger | groupadd -g 537 ledger | ||
groupadd -g 538 nagios | groupadd -g 538 nagios | ||
groupadd -g 539 pad | |||
groupadd -g 540 haproxy | |||
groupadd -g 541 mailconf | |||
groupadd -g 542 time | |||
groupadd -g 543 fa | |||
groupadd -g 544 movies | |||
groupadd -g 545 cap | |||
groupadd -g 546 tables | |||
groupadd -g 547 observer | |||
groupadd -g 548 obplayer | |||
groupadd -g 549 elasticsearch | |||
groupadd -g 550 solr | |||
useradd -u 502 -g nofiles -d /var/qmail/alias alias | useradd -u 502 -g nofiles -d /var/qmail/alias alias | ||
Line 48: | Line 61: | ||
useradd -u 537 -g ledger -r ledger | useradd -u 537 -g ledger -r ledger | ||
useradd -u 538 -g nagios -r nagios -d /usr/local/nagios | useradd -u 538 -g nagios -r nagios -d /usr/local/nagios | ||
useradd -u 539 -g pad -r pad | |||
useradd -u 540 -g haproxy -r haproxy | |||
useradd -u 541 -g mailconf -r mailconf | |||
useradd -u 542 -g time -r time | |||
useradd -u 543 -g fa -r fa | |||
useradd -u 544 -g movies -r movies | |||
useradd -u 545 -g cap -r cap | |||
useradd -u 546 -g tables -r tables | |||
useradd -u 547 -g observer -r observer | |||
useradd -u 548 -g obplayer -r obplayer | |||
useradd -u 549 -g elasticsearch -r elasticsearch | |||
useradd -u 550 -g solr -m -d /usr/local/solr -r solr | |||
useradd -u 551 -g dcc -m -d /usr/local/dcc dcc | |||
mkdir -p /usr/local/home/razor | mkdir -p /usr/local/home/razor |
Latest revision as of 13:47, 2 November 2022
#!/bin/sh groupadd -g 600 maxproc groupadd -g 500 qmail groupadd -g 501 nofiles groupadd -g 509 vmail groupadd -g 510 dovecot groupadd -g 511 dovenull groupadd -g 512 clamav groupadd -g 513 simscan groupadd -g 514 spamd groupadd -g 520 asterisk groupadd -g 521 phnmngr groupadd -g 522 ups groupadd -g 530 davical groupadd -g 531 roundcube groupadd -g 532 fetch groupadd -g 533 rt groupadd -g 534 ob groupadd -g 535 wiki groupadd -g 536 files groupadd -g 537 ledger groupadd -g 538 nagios groupadd -g 539 pad groupadd -g 540 haproxy groupadd -g 541 mailconf groupadd -g 542 time groupadd -g 543 fa groupadd -g 544 movies groupadd -g 545 cap groupadd -g 546 tables groupadd -g 547 observer groupadd -g 548 obplayer groupadd -g 549 elasticsearch groupadd -g 550 solr useradd -u 502 -g nofiles -d /var/qmail/alias alias useradd -u 503 -g nofiles -d /var/qmail qmaild useradd -u 504 -g nofiles -d /var/qmail qmaill useradd -u 505 -g nofiles -d /var/qmail qmailp useradd -u 506 -g qmail -d /var/qmail qmailq useradd -u 507 -g qmail -d /var/qmail qmailr useradd -u 508 -g qmail -d /var/qmail qmails useradd -u 509 -g vmail -d /home/mail -r vmail useradd -u 510 -g dovecot -r dovecot useradd -u 511 -g dovenull -r dovenull useradd -u 512 -g clamav -s /bin/false -d /tmp/clamav -G simscan clamav useradd -u 513 -g simscan -r simscan useradd -u 514 -g spamd -r -d /etc/mail/spamassassin spamd useradd -u 515 -N -g nogroup -d /usr/local/home/razor -s /bin/sh -c razor-agent razor useradd -u 521 -g phnmngr -d /IPPhones phnmngr useradd -u 522 -g ups --no-create-home ups useradd -u 520 -g asterisk --no-create-home -G phnmngr asterisk useradd -u 530 -g davical -r davical useradd -u 531 -g roundcube -r roundcube useradd -u 532 -g fetch -r fetch useradd -u 533 -g rt -r rt useradd -u 534 -g ob -r ob useradd -u 535 -g wiki -r wiki useradd -u 536 -g files -r files useradd -u 537 -g ledger -r ledger useradd -u 538 -g nagios -r nagios -d /usr/local/nagios useradd -u 539 -g pad -r pad useradd -u 540 -g haproxy -r haproxy useradd -u 541 -g mailconf -r mailconf useradd -u 542 -g time -r time useradd -u 543 -g fa -r fa useradd -u 544 -g movies -r movies useradd -u 545 -g cap -r cap useradd -u 546 -g tables -r tables useradd -u 547 -g observer -r observer useradd -u 548 -g obplayer -r obplayer useradd -u 549 -g elasticsearch -r elasticsearch useradd -u 550 -g solr -m -d /usr/local/solr -r solr useradd -u 551 -g dcc -m -d /usr/local/dcc dcc mkdir -p /usr/local/home/razor mkdir /home/mail mkdir /home/data mkdir /IPPhones mkdir /home/webDAV chown -R razor:nogroup /usr/local/home/razor chown -R vmail:vmail /home/mail chown -R asterisk:phnmngr /IPPhones/ chown -R files:files /home/webDAV chmod -R 2770 /IPPhones/ chmod -R 2770 /home/webDAV