Difference between revisions of "User Management Scripts"

From LinuxMCE
Jump to: navigation, search
 
(SetupUsers_Homes.sh)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>;RemoveUser.sh: Removes a pluto user from the linux system users. This script is executed from the pluto web-admin interface before the pluto user is removed from the databases.
+
{| align="right"
  RemoveUser.sh [OPTIONS] <PlutoUserID>
+
  | __TOC__
 +
  |}
 +
==SetupUsers.sh==
 +
* Call /usr/pluto/bin/SetupUsers_Homes.sh script: see below
 +
* Creates user voicemenu by calling:
 +
  /usr/pluto/bin/generate_users_voicemenu.pl
 +
===Log Location===
 +
  /var/log/pluto/SetupUsers_Homes.log
 +
==SetupUsers_Homes.sh==
 +
* Adds a LinuxMCE user to the system setting up a home user directory /home/user_* and adding the LinuxMCE subdirectories.  
 +
* Creates samba share
 +
* Creates permissions for newly created directories.
 +
 
 +
== Log Location==
 +
  /var/log/pluto/SetupUsers_Homes.log
 +
 
 +
==RemoveUser.sh==
 +
Removes a LinuxMCE user from the linux system users. This script is executed from the LinuxMCE web-admin interface before the LinuxMCE user is removed from the databases.
 +
  RemoveUser.sh [OPTIONS] <LinuxMCEUserID>
 
  -d            delete home directory
 
  -d            delete home directory
 
  -a            delete all files owned by user
 
  -a            delete all files owned by user
Line 6: Line 24:
 
                 the DIR directory. If no DIR is specified the backup should be placed
 
                 the DIR directory. If no DIR is specified the backup should be placed
 
                 /tmp directory
 
                 /tmp directory
 +
 +
 +
 +
[[Category: LinuxMCEBashScripts]]

Latest revision as of 07:57, 18 May 2010

SetupUsers.sh

  • Call /usr/pluto/bin/SetupUsers_Homes.sh script: see below
  • Creates user voicemenu by calling:
 /usr/pluto/bin/generate_users_voicemenu.pl

Log Location

 /var/log/pluto/SetupUsers_Homes.log

SetupUsers_Homes.sh

  • Adds a LinuxMCE user to the system setting up a home user directory /home/user_* and adding the LinuxMCE subdirectories.
  • Creates samba share
  • Creates permissions for newly created directories.

Log Location

 /var/log/pluto/SetupUsers_Homes.log

RemoveUser.sh

Removes a LinuxMCE user from the linux system users. This script is executed from the LinuxMCE web-admin interface before the LinuxMCE user is removed from the databases.

RemoveUser.sh [OPTIONS] <LinuxMCEUserID>
-d             delete home directory
-a             delete all files owned by user
-b[=DIR]       create at backup of user files before deleting them and place it in
               the DIR directory. If no DIR is specified the backup should be placed
               /tmp directory