Skip to content

Instantly share code, notes, and snippets.

@colemanjp
Created October 2, 2012 18:56
Show Gist options
  • Select an option

  • Save colemanjp/3822461 to your computer and use it in GitHub Desktop.

Select an option

Save colemanjp/3822461 to your computer and use it in GitHub Desktop.
RHEL 6
[jcoleman@gilda Misc]$ rpm -qp --scripts ~/Downloads/httpd-2.2.15-15.el6.x86_64.rpm
warning: /home/jcoleman/Downloads/httpd-2.2.15-15.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
preinstall scriptlet (using /bin/sh):
# Add the "apache" user
getent group apache >/dev/null || groupadd -g 48 -r apache
getent passwd apache >/dev/null || \
useradd -r -u 48 -g apache -s /sbin/nologin \
-d /var/www -c "Apache" apache
exit 0
postinstall scriptlet (using /bin/sh):
# Register the httpd service
/sbin/chkconfig --add httpd
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
/sbin/service httpd stop > /dev/null 2>&1
/sbin/chkconfig --del httpd
fi
posttrans scriptlet (using /bin/sh):
/sbin/service httpd condrestart >/dev/null 2>&1 || :
RHEL 5
preinstall scriptlet (using /bin/sh):
# Add the "apache" user
/usr/sbin/useradd -c "Apache" -u 48 \
-s /sbin/nologin -r -d /var/www apache 2> /dev/null || :
postinstall scriptlet (using /bin/sh):
# Register the httpd service
/sbin/chkconfig --add httpd
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
/sbin/service httpd stop > /dev/null 2>&1
/sbin/chkconfig --del httpd
fi
posttrans scriptlet (using /bin/sh):
/sbin/service httpd condrestart >/dev/null 2>&1 || :
FEDORA 17
[jcoleman@gilda Misc]$ rpm -qp --scripts /var/cache/yum/x86_64/17/fedora/packages/httpd-2.2.22-4.fc17.x86_64.rpm
preinstall scriptlet (using /bin/sh):
# Add the "apache" user
/usr/sbin/useradd -c "Apache" -u 48 \
-s /sbin/nologin -r -d /var/www apache 2> /dev/null || :
postinstall scriptlet (using /bin/sh):
# Register the httpd service
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable httpd.service httpd-worker.service httpd-event.service > /dev/null 2>&1 || :
/bin/systemctl stop httpd.service httpd-worker.service httpd-event.service > /dev/null 2>&1 || :
fi
postuninstall scriptlet (using /bin/sh):
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# Trigger for conversion from SysV, per guidelines at:
# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
posttrans scriptlet (using /bin/sh):
/bin/systemctl try-restart httpd.service httpd-worker.service httpd-event.service >/dev/null 2>&1 || :
@filler
Copy link
Copy Markdown

filler commented Oct 3, 2012

Meh!

[353] λ > vagrant status
Current VM states:

d7                       running

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
silkey@dhcp-128-36-182-234:~/Vagrant/d7 [0]
[354] λ > vagrant ssh
Last login: Wed Jun  6 13:43:58 2012 from 10.0.2.2
[vagrant@localhost ~]$ sudo bash
[root@localhost vagrant]# cat /var/log/yum.log 
Jun 06 13:04:25 Erased: system-config-network-tui
Jun 06 13:04:26 Erased: python-iwlib
Jun 06 13:04:26 Erased: fprintd-pam
Jun 06 13:04:26 Erased: fprintd
Jun 06 13:04:26 Erased: libfprint
Jun 06 13:04:26 Erased: gtk2
Jun 06 13:04:26 Erased: pango
Jun 06 13:04:27 Erased: libXft
Jun 06 13:04:27 Erased: cairo
Jun 06 13:04:27 Erased: libXcomposite
Jun 06 13:04:27 Erased: libXcursor
Jun 06 13:04:27 Erased: libXrandr
Jun 06 13:04:27 Erased: libXdamage
Jun 06 13:04:27 Erased: libXi
Jun 06 13:04:28 Erased: libXinerama
Jun 06 13:04:28 Erased: hicolor-icon-theme
Jun 06 13:04:28 Erased: libXext
Jun 06 13:04:28 Erased: libXfixes
Jun 06 13:04:28 Erased: libXrender
Jun 06 13:04:28 Erased: fontconfig
Jun 06 13:04:28 Erased: freetype
Jun 06 13:04:29 Erased: libX11
Jun 06 13:04:29 Erased: wireless-tools
Jun 06 13:04:34 Installed: cfengine-community-3.3.3-1.x86_64
Oct 02 11:40:46 Installed: apr-1.3.9-3.el6.x86_64
Oct 02 11:40:47 Installed: apr-util-1.3.9-3.el6_0.1.x86_64
Oct 02 11:40:47 Installed: httpd-tools-2.2.15-9.el6.x86_64
Oct 02 11:40:47 Installed: apr-util-ldap-1.3.9-3.el6_0.1.x86_64
Oct 02 11:40:47 Installed: mailcap-2.1.31-1.1.el6.noarch
Oct 02 11:40:47 Installed: httpd-2.2.15-9.el6.x86_64
Oct 02 11:40:47 Installed: 1:mod_ssl-2.2.15-9.el6.x86_64
Oct 02 11:41:07 Installed: php-common-5.3.3-3.el6.x86_64
Oct 02 11:41:07 Installed: php-cli-5.3.3-3.el6.x86_64
Oct 02 11:41:07 Installed: 1:php-pear-1.9.4-4.el6.noarch
Oct 02 11:41:14 Installed: libxslt-1.1.26-2.el6.x86_64
Oct 02 11:41:14 Installed: php-xml-5.3.3-3.el6.x86_64
Oct 02 11:41:20 Installed: php-pdo-5.3.3-3.el6.x86_64
Oct 02 11:41:20 Installed: php-mysql-5.3.3-3.el6.x86_64
Oct 02 11:41:27 Installed: php-5.3.3-3.el6.x86_64
Oct 02 11:41:34 Installed: libX11-1.3-2.el6.x86_64
Oct 02 11:41:35 Installed: libXpm-3.5.8-2.el6.x86_64
Oct 02 11:41:35 Installed: freetype-2.3.11-6.el6_0.2.x86_64
Oct 02 11:41:35 Installed: php-gd-5.3.3-3.el6.x86_64
Oct 02 11:41:42 Installed: php-pecl-apc-3.1.9-2.el6.x86_64
Oct 02 11:41:48 Installed: php-pecl-memcache-3.0.5-3.el6.x86_64
Oct 02 11:41:55 Installed: php-ldap-5.3.3-3.el6.x86_64
Oct 02 11:42:02 Installed: php-mbstring-5.3.3-3.el6.x86_64
Oct 02 11:42:09 Installed: varnish-libs-3.0.0-2.el5.x86_64
Oct 02 11:42:15 Installed: jemalloc-2.1.3-2.el6.x86_64
Oct 02 11:42:16 Installed: varnish-3.0.0-2.el5.x86_64
Oct 02 11:42:58 Installed: libXrender-0.9.5-1.el6.x86_64
Oct 02 11:42:59 Installed: libXext-1.1-3.el6.x86_64
Oct 02 11:42:59 Installed: jpackage-utils-1.7.5-3.12.el6.noarch
Oct 02 11:43:01 Installed: fontconfig-2.8.0-3.el6.x86_64
Oct 02 11:43:01 Installed: libICE-1.0.6-1.el6.x86_64
Oct 02 11:43:01 Installed: libXfixes-4.0.4-1.el6.x86_64
Oct 02 11:43:01 Installed: libSM-1.1.0-7.1.el6.x86_64
Oct 02 11:43:01 Installed: cairo-1.8.8-3.1.el6.x86_64
Oct 02 11:43:01 Installed: libXi-1.3-3.el6.x86_64
Oct 02 11:43:01 Installed: libXtst-1.0.99.2-3.el6.x86_64
Oct 02 11:43:01 Installed: libXrandr-1.3.0-4.el6.x86_64
Oct 02 11:43:01 Installed: giflib-4.1.6-3.1.el6.x86_64
Oct 02 11:43:01 Installed: libXcomposite-0.4.1-2.el6.x86_64
Oct 02 11:43:01 Installed: libXcursor-1.1.10-2.el6.x86_64
Oct 02 11:43:02 Installed: libXdamage-1.1.2-1.el6.x86_64
Oct 02 11:43:02 Installed: libXft-2.1.13-4.1.el6.x86_64
Oct 02 11:43:02 Installed: pango-1.28.1-3.el6_0.5.x86_64
Oct 02 11:43:02 Installed: libXinerama-1.1-1.el6.x86_64
Oct 02 11:43:02 Installed: jline-0.9.94-0.8.el6.noarch
Oct 02 11:43:02 Installed: rhino-1.7-0.7.r2.2.el6.noarch
Oct 02 11:43:02 Installed: tzdata-java-2011g-1.el6.noarch
Oct 02 11:43:03 Installed: hicolor-icon-theme-0.11-1.1.el6.noarch
Oct 02 11:43:04 Installed: gtk2-2.18.9-6.el6.x86_64
Oct 02 11:43:04 Installed: libsndfile-1.0.20-3.el6.x86_64
Oct 02 11:43:04 Installed: libart_lgpl-2.3.20-5.1.el6.x86_64
Oct 02 11:43:07 Installed: libgcj-4.4.5-6.el6.x86_64
Oct 02 11:43:08 Installed: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
Oct 02 11:43:08 Installed: 1:java_cup-0.10k-5.el6.x86_64
Oct 02 11:43:08 Installed: sinjdoc-0.5-9.1.el6.x86_64
Oct 02 11:43:09 Installed: xml-commons-apis-1.3.04-3.6.el6.x86_64
Oct 02 11:43:09 Installed: xerces-j2-2.7.1-12.5.el6.x86_64
Oct 02 11:43:09 Installed: xml-commons-resolver-1.1-4.18.el6.x86_64
Oct 02 11:43:10 Installed: libasyncns-0.8-1.1.el6.x86_64
Oct 02 11:43:10 Installed: pulseaudio-libs-0.9.21-13.el6.x86_64
Oct 02 11:43:15 Installed: 1:java-1.6.0-openjdk-1.6.0.0-1.39.1.9.7.el6.x86_64
Oct 02 11:43:17 Installed: 1:java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.7.el6.x86_64
Oct 02 11:43:17 Installed: ant-1.8.2-6.fc16.noarch
Oct 02 11:43:24 Installed: mysql-5.1.52-1.el6_0.1.x86_64
Oct 02 11:43:34 Installed: 1:perl-Error-0.17015-4.el6.noarch
Oct 02 11:43:34 Installed: git-1.7.1-2.el6_0.1.x86_64
Oct 02 11:43:34 Installed: perl-Git-1.7.1-2.el6_0.1.noarch
[root@localhost vagrant]# id apache
uid=48(apache) gid=48(apache) groups=48(apache)
[root@localhost vagrant]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@localhost vagrant]# rpm -q --scripts httpd
preinstall scriptlet (using /bin/sh):
# Add the "apache" user

getent group apache >/dev/null || groupadd -g 48 -r apache
getent passwd apache >/dev/null || \
  useradd -r -u 48 -g apache -s /sbin/nologin \
    -d /var/www -c "Apache" apache
exit 0
postinstall scriptlet (using /bin/sh):
# Register the httpd service

/sbin/chkconfig --add httpd
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
    /sbin/service httpd stop > /dev/null 2>&1
    /sbin/chkconfig --del httpd
fi
posttrans scriptlet (using /bin/sh):
/sbin/service httpd condrestart >/dev/null 2>&1 || :
[root@localhost vagrant]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@localhost vagrant]# yum list all httpd
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
mrg                                                                                                                                 | 3.7 kB     00:00  
redhat                                                                                                                              | 4.0 kB     00:00  
redhat-highavailability                                                                                                             | 3.7 kB     00:00  
yale                                                                                                                                |  951 B     00:00  
Installed Packages
httpd.x86_64                                                              2.2.15-9.el6                                                              @redhat
[root@localhost vagrant]# ```

@colemanjp
Copy link
Copy Markdown
Author

[jcoleman@gilda Misc_Wuala]$ which getent
/usr/bin/getent
[jcoleman@gilda Misc_Wuala]$ export PATH=/dev/null
[jcoleman@gilda Misc_Wuala]$ which getent
/usr/bin/which: no getent in (/dev/null)
[jcoleman@gilda Misc_Wuala]$ getent group apache || echo foobar
bash: getent: command not found...

[jcoleman@gilda Misc_Wuala]$
[jcoleman@gilda Misc_Wuala]$ /usr/bin/getent apache
Unknown database: apache
Try getent --help' orgetent --usage' for more information.
[jcoleman@gilda Misc_Wuala]$ /usr/bin/getent group apache
apache:x:48:
[jcoleman@gilda Misc_Wuala]$ /usr/bin/getent group apached || echo foobar
foobar

@filler
Copy link
Copy Markdown

filler commented Oct 3, 2012

[root@vm-wpprdapp-01 ~]# ls -ltr /etc/passwd*
-rw-r--r--. 1 root root 1456 Jun 30 2011 /etc/passwd.userdel.kickstart
-rw-r--r-- 1 root root 2558 Dec 12 2011 /etc/passwd.rc578.Tue_Jan_24_11_04_42_2012
-rw-r--r-- 1 root root 2613 Jan 24 2012 /etc/passwd.appa.Thu_Jul_12_10_04_54_2012
-rw-r--r--. 1 root root 2613 Jan 24 2012 /etc/passwd-
-rw-r--r-- 1 root root 2655 Jul 12 10:05 /etc/passwd
[root@vm-wpprdapp-01 ~]# diff /etc/passwd.userdel.kickstart /etc/passwd.rc578.Tue_Jan_24_11_04_42_2012
6,8d5
< sync:x:5:0:sync:/sbin:/bin/sync
< shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
< halt:x:7:0:halt:/sbin:/sbin/halt
10,14d6
< uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
< operator:x:11:0:operator:/root:/sbin/nologin
< games:x:12:100:games:/usr/games:/sbin/nologin
< gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
< ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
31a24,50

apache:x:48:553:Apache:/var/www:/sbin/nologin
nagios:x:546:546:Nagios:/home/nagios:/bin/bash
jbossa:x:549:549:Jboss A:/home/jbossa:/bin/bash
oracle:x:529:550::/home/oracle:/bin/bash
mifil:x:553:554:Kintana:/home/mifil:/bin/bash
meanbb:x:151:555:BigBrother User:/home/meanbb:/bin/bash
mockbuild:x:568:568:Build Account For Mock:/home/mockbuild:/bin/bash
jcoleman:x:1000:1000:John Coleman:/home/jcoleman:/bin/bash
jg685:x:1103:1103:Jessica Greer:/home/jg685:/bin/bash
long:x:1012:1012:Morrow Long:/home/long:/bin/bash
operator:x:1017:1017:Operator:/home/operator:/bin/bash
kr85:x:1021:1021:Kay Ratanasaka:/home/kr85:/bin/bash
mac256:x:1022:1022:Michael Caplin:/home/mac256:/bin/bash
cf322:x:1041:1041:Camden Fisher:/home/cf322:/bin/bash
rs253:x:1044:1044:Nick Silkey:/home/rs253:/bin/bash
ap349:x:1045:1045:Amit Poddar:/home/ap349:/bin/bash
boeher:x:1046:1046:Cheryl Boeher:/home/boeher:/bin/bash
ds292:x:1047:1047:David Swanson:/home/ds292:/bin/bash
fl63:x:1048:1048:Fan Li:/home/fl63:/bin/bash
kad36:x:1049:1049:Kathy Dobbins:/home/kad36:/bin/bash
nm64:x:1050:1050:Norman Morales:/home/nm64:/bin/bash
vl24:x:1061:1061:Vinnie Labonia:/home/vl24:/bin/bash
newman:x:1032:1032:Andy Newman:/home/newman:/bin/bash
jjv6:x:1033:1033:Joe Valerio:/home/jjv6:/bin/bash
rng3:x:1029:1029:Rod Gustavson:/home/rng3:/bin/bash
varnish:x:498:496:Varnish Cache:/var/lib/varnish:/sbin/nologin
memcached:x:497:495:Memcached daemon:/var/run/memcached:/sbin/nologin
[root@vm-wpprdapp-01 ~]# rpm -qa --last | head -60
gd-2.0.35-10.el6 Mon 09 Jan 2012 10:05:00 AM EST
php-gd-5.3.3-3.el6 Mon 09 Jan 2012 10:04:57 AM EST
libXpm-3.5.8-2.el6 Mon 09 Jan 2012 10:04:57 AM EST
ImageMagick-6.5.4.7-5.el6 Mon 09 Jan 2012 10:04:54 AM EST
ghostscript-8.70-11.el6 Mon 09 Jan 2012 10:04:53 AM EST
xorg-x11-font-utils-7.2-10.el6 Mon 09 Jan 2012 10:04:49 AM EST
ghostscript-fonts-5.50-23.1.el6 Mon 09 Jan 2012 10:04:49 AM EST
urw-fonts-2.4-10.el6 Mon 09 Jan 2012 10:04:45 AM EST
libwmf-lite-0.2.8.4-22.el6 Mon 09 Jan 2012 10:04:43 AM EST
php-ldap-5.3.3-3.el6 Mon 09 Jan 2012 10:04:34 AM EST
memcached-1.4.4-3.el6 Mon 12 Dec 2011 09:47:49 AM EST
tree-1.5.3-2.el6 Mon 12 Dec 2011 09:47:47 AM EST
php-pecl-memcache-3.0.5-3.el6 Mon 12 Dec 2011 09:47:45 AM EST
php-5.3.3-3.el6 Mon 12 Dec 2011 09:47:43 AM EST
php-pecl-apc-3.1.3p1-1.2.el6.1 Mon 12 Dec 2011 09:47:40 AM EST
jdk-1.6.0_21-1 Mon 12 Dec 2011 09:47:38 AM EST
php-mysql-5.3.3-3.el6 Mon 12 Dec 2011 09:47:24 AM EST
httpd-2.2.15-9.el6 Mon 12 Dec 2011 09:47:23 AM EST
httpd-tools-2.2.15-9.el6 Mon 12 Dec 2011 09:47:22 AM EST
apr-util-ldap-1.3.9-3.el6_0.1 Mon 12 Dec 2011 09:47:22 AM EST
mysql-libs-5.1.52-1.el6_0.1 Mon 12 Dec 2011 09:47:20 AM EST
mysql-5.1.52-1.el6_0.1 Mon 12 Dec 2011 09:47:20 AM EST
varnish-libs-3.0.0-2.el5 Mon 12 Dec 2011 09:47:17 AM EST
varnish-3.0.0-2.el5 Mon 12 Dec 2011 09:47:17 AM EST
jemalloc-2.1.3-2.el6 Mon 12 Dec 2011 09:47:16 AM EST
php-xml-5.3.3-3.el6 Mon 12 Dec 2011 09:47:13 AM EST
php-pear-CAS-1.2.2-1.el6 Mon 12 Dec 2011 09:47:13 AM EST
php-pdo-5.3.3-3.el6 Mon 12 Dec 2011 09:47:13 AM EST
php-pear-1.9.0-2.el6 Mon 12 Dec 2011 09:47:11 AM EST
php-cli-5.3.3-3.el6 Mon 12 Dec 2011 09:47:11 AM EST
php-common-5.3.3-3.el6 Mon 12 Dec 2011 09:47:10 AM EST
apache-maven-3.0.2-1 Mon 12 Dec 2011 09:47:07 AM EST
java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.7.el6 Mon 12 Dec 2011 09:47:05 AM EST
ant-1.8.2-6.fc16 Mon 12 Dec 2011 09:47:05 AM EST
java-1.6.0-openjdk-1.6.0.0-1.39.1.9.7.el6 Mon 12 Dec 2011 09:47:01 AM EST
rhino-1.7-0.7.r2.2.el6 Mon 12 Dec 2011 09:46:57 AM EST
jline-0.9.94-0.8.el6 Mon 12 Dec 2011 09:46:57 AM EST
tzdata-java-2011g-1.el6 Mon 12 Dec 2011 09:46:55 AM EST
giflib-4.1.6-3.1.el6 Mon 12 Dec 2011 09:46:54 AM EST
xml-commons-resolver-1.1-4.18.el6 Mon 12 Dec 2011 09:46:53 AM EST
xerces-j2-2.7.1-12.5.el6 Mon 12 Dec 2011 09:46:53 AM EST
xml-commons-apis-1.3.04-3.6.el6 Mon 12 Dec 2011 09:46:52 AM EST
sinjdoc-0.5-9.1.el6 Mon 12 Dec 2011 09:46:51 AM EST
java_cup-0.10k-5.el6 Mon 12 Dec 2011 09:46:50 AM EST
jpackage-utils-1.7.5-3.12.el6 Mon 12 Dec 2011 09:46:47 AM EST
java-1.5.0-gcj-1.5.0.0-29.1.el6 Mon 12 Dec 2011 09:46:47 AM EST
gpg-pubkey-fd431d51-4ae0493b Mon 12 Dec 2011 09:46:39 AM EST
gpg-pubkey-2fa658e0-45700c69 Mon 12 Dec 2011 09:46:39 AM EST
cfengine-community-3.1.2-1.el6 Mon 12 Dec 2011 09:41:24 AM EST
TWeagent-7.7.0-0 Mon 12 Dec 2011 09:40:50 AM EST
VMwareTools-8195-261974 Thu 30 Jun 2011 04:06:18 PM EDT
TIVsm-BA-6.2.0-0 Thu 30 Jun 2011 04:05:22 PM EDT
TIVsm-API-6.2.0-0 Thu 30 Jun 2011 04:05:19 PM EDT
gskssl32-8.0-13.3 Thu 30 Jun 2011 04:05:18 PM EDT
gskcrypt32-8.0-13.3 Thu 30 Jun 2011 04:05:16 PM EDT
libstdc++-4.4.5-6.el6 Thu 30 Jun 2011 04:02:58 PM EDT
compat-libstdc++-33-3.2.3-69.el6 Thu 30 Jun 2011 04:02:58 PM EDT
compat-libstdc++-296-2.96-144.el6 Thu 30 Jun 2011 04:02:58 PM EDT
libgcc-4.4.5-6.el6 Thu 30 Jun 2011 04:02:57 PM EDT
glibc-2.12-1.25.el6 Thu 30 Jun 2011 04:02:57 PM EDT
[root@vm-wpprdapp-01 ~]#

@filler
Copy link
Copy Markdown

filler commented Oct 3, 2012

Bingo.

[root@localhost vagrant]# id apache
id: apache: No such user
[root@localhost vagrant]# make -f users.mk
cp -p /etc/passwd /etc/passwd.userdel.kickstart
touch _users_prereqs
userdel sync
userdel shutdown
userdel halt
userdel news
userdel: user 'news' does not exist
make: [_users_rm_sys_users] Error 6 (ignored)
userdel uucp
userdel operator
userdel games
userdel gopher
userdel ftp
touch _users_rm_sys_users
groupdel games
groupdel: group 'games' does not exist
make: [_users_rm_sys_groups] Error 6 (ignored)
groupdel news
groupdel: group 'news' does not exist
make: [_users_rm_sys_groups] Error 6 (ignored)

-groupdel uucp Don't delete uucp group, some devs are root:uucp

touch _users_rm_sys_groups
groupadd -g550 oinstall
groupadd -g518 dba
groupadd -g529 oracle

kintana

groupadd -g551 miapps
groupadd -g552 devel
touch _users_add_local_groups

Create the default redhat apache user

apache:x:48:48:Apache:/var/www:/sbin/nologin

useradd -u48 -c 'Apache' -M -d /var/www -s /sbin/nologin apache
useradd -u546 -c 'Nagios' nagios
useradd -u549 -c 'Jboss A' jbossa
useradd -u529 -g oinstall -G dba,oracle oracle

kintana

useradd -u553 -G miapps,devel -c 'Kintana' mifil
useradd -u151 -c 'BigBrother User' meanbb
useradd -u568 -c 'Build Account For Mock' mockbuild
touch _users_add_app_users
useradd -u1000 -c 'John Coleman' -G meanbb jcoleman
useradd -u1103 -c 'Jessica Greer' -G meanbb jg685
useradd -u1012 -c 'Morrow Long' long
useradd -u1017 -c 'Operator' operator
useradd -u1021 -c 'Kay Ratanasaka' -G meanbb kr85
useradd -u1022 -c 'Michael Caplin' -G meanbb mac256
useradd -u1041 -c 'Camden Fisher' -G meanbb cf322
useradd -u1044 -c 'Nick Silkey' -G meanbb rs253
useradd -u1045 -c 'Amit Poddar' ap349
useradd -u1046 -c 'Cheryl Boeher' boeher
useradd -u1047 -c 'David Swanson' ds292
useradd -u1048 -c 'Fan Li' fl63
useradd -u1049 -c 'Kathy Dobbins' kad36
useradd -u1050 -c 'Norman Morales' nm64
useradd -u1061 -c 'Vinnie Labonia' vl24
useradd -u1032 -c 'Andy Newman' newman
useradd -u1033 -c 'Joe Valerio' jjv6
useradd -u1029 -c 'Rod Gustavson' rng3
touch _users_add_ITS_users
touch _users_add_local_users
[root@localhost vagrant]# id apache
uid=48(apache) gid=553(apache) groups=553(apache)
[root@localhost vagrant]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment