egrid-mkhomes
NAME
egrid-mkhomes - Front-end to egrid-mkdirhier for creating user homes
SYNOPSIS
egrid-mkhomes [OPTIONS] --dir DIR USERNAME [USERNAME ...]
egrid-mkhomes [OPTIONS] --dir DIR --passwd FILE [FILE ...]
Creates home directories for specified users. By default, assume
options --create and --remove.
Options:
- -A, --args-from FILE
- Read additional command-line arguments from FILE as if they were typed on the command-line.
- --passwd
-
Non-options arguments are files in
/etc/passwdformat from which user names are read; ignore all users whose home directory is not a subdirectory of DIR, create homes for the remaining ones. - --relocate DIR2
- When used in conjunction with --passwd, make home directories as subdirectories of DIR2.
- --create
- Create home directories which do not exist;
- --remove
- Remove directories whose name does not match any of the specified users.
- --nocreate
- Do not create any directory.
- --noremove
- Do not remove any directory.
- --ignore SUBDIR
- Do not remove subdirectory SUBDIR of DIR. May be given multiple times, with cumulative effect.
- --fast
- If a directory already exists, which should be created, assume it is correctly set-up and do not invoke egrid-mkdirhier on it.
- --print
- Print shell commands instead of executing them.
- --help
- Print help text and exit
- -V, --version
- Print version number and exit
DESCRIPTION
Invokes egrid-mkdirhier to create homes for all users specified on the command line; invokes rm -rf to remove subdirectories for DIR which are not home directories for a user specified on the command line or via passwd-style files.
N.B.: The command egrid-mkdirhier must be on the system PATH; egrid-mkhomes only acts as a front-end!
BUGS
The map between user names and directory names is the trivial one; there is no way to specify a more complex map.
The --verbose option does not yet report very much information.
This man page is not very clear, nor accurate.
DOWNLOAD
You can download RPM packages of the EGRID SE Tools from http://www.egrid.it/download/rpm/RPMS.egrid; Debian packages from http://www.egrid.it/download/deb/egrid.
You can browse the source code for this software from the EGRID CVS at http://www.egrid.it/cvs/middleware/se/
COPYRIGHT AND LICENSE
Copyright (c) 2004,2005 Riccardo Murri riccardo.murri@ictp.it for the EGRID project http://www.egrid.it/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
