[Lunar-commits] CVS: moonbase/devel/dbus POST_REMOVE, NONE,
1.1 BUILD, 1.3, 1.4
Chad Kittel
v3rt1g0 at lunar-linux.org
Sun Jan 16 02:37:16 UTC 2005
Update of /var/cvs/lunar/moonbase/devel/dbus
In directory espresso.foo-projects.org:/tmp/cvs-serv26765/dbus
Modified Files:
BUILD
Added Files:
POST_REMOVE
Log Message:
Make the created user have no shell or home directory. Also clean up
the user and group on removal of the module.
--- NEW FILE: POST_REMOVE ---
#get rid of that user and group
message "${MESSAGE_COLOR}Removing group: messagebus${DEFAULT_COLOR}"
groupdel messagebus
message "${MESSAGE_COLOR}Removing user: messagebus${DEFAULT_COLOR}"
userdel messagebus
Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/devel/dbus/BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- BUILD 16 Jan 2005 00:00:41 -0000 1.3
+++ BUILD 16 Jan 2005 02:37:14 -0000 1.4
@@ -12,8 +12,10 @@
# The following used to be in POST_INSTALL but the service wasn't starting
# on FIRST install due to the lack of existing /var/lib/dbus
+ message "${MESSAGE_COLOR}Adding new group: ${DBUS_GROUPNAME}${DEFAULT_COLOR}"
groupadd $DBUS_GROUPNAME 2>/dev/null
- useradd $DBUS_USERNAME -g $DBUS_GROUPNAME 2>/dev/null
+ message "${MESSAGE_COLOR}Adding new user: ${DBUS_USERNAME}${DEFAULT_COLOR}"
+ useradd $DBUS_USERNAME -g $DBUS_GROUPNAME -d /dev/null -s /bin/false 2>/dev/null
mkdir -p /var/lib/dbus
chown -R ${DBUS_GROUPNAME}:$DBUS_GROUPNAME /var/lib/dbus
More information about the Lunar-commits
mailing list