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 |
||
Line 21: | Line 21: | ||
groupadd -g 537 ledger | groupadd -g 537 ledger | ||
groupadd -g 538 nagios | groupadd -g 538 nagios | ||
groupadd -g 539 pad | |||
useradd -u 502 -g nofiles -d /var/qmail/alias alias | useradd -u 502 -g nofiles -d /var/qmail/alias alias | ||
Line 48: | Line 49: | ||
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 538 -g pad -r pad | |||
mkdir -p /usr/local/home/razor | mkdir -p /usr/local/home/razor |
Revision as of 23:03, 17 August 2014
#!/bin/sh 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 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 538 -g pad -r pad 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