egrid-mkdirhier
NAME
egrid-mkdirhier - Make a directory tree conforming to EGRID RFC 2
SYNOPSIS
egrid-mkdirhier --type {R|D|P|U} [OPTIONS] DIRNAME [DIRNAME ...]
Options:
- -A, --args-from FILE
- Read additional non-option command-line arguments from FILE; only non-option arguments can be read this way.
- -C, --chdir DIR
-
cdto DIR first. - --help
- Print help text and exit.
- -k, --keep-going
- Don't stop at errors in shell commands.
- -L, --lfc
- Run (or print) commands to create the tree in the LFC catalog namespace instead of local filesystem.
- -p, --print
- Print shell commands that build tree, instead of executing them.
- -t, --type
- Which kind of directory tree to build. (Mandatory.)
- -V, --version
- Print version number and exit.
DESCRIPTION
egrid-mkdirhier makes all directories specified on the command line; makes subdirectories and sets permissions and ownerships according to EGRID RFC 2 http://www.egrid.it/sysadm/rfc/2 .
What exactly is created depends on the argument following --type.
TYPE CODES
The one-letter argument to --type can be one of the following:
- R
- Make the root directory of the EGRID storage area.
- D
- Make a ``raw & ascii'' data directory; assumes groups DIRNAME-ro and DIRNAME-rw exist, which are given ownerships of subdirectories of DIRNAME, according to EGRID RFC 2 http://www.egrid.it./sysadm/rfc/2 .
- P
- Make a ``project data'' directory; assumes a group DIRNAME exists, which is given ownership of the directory.
- U
- Make a ``user data'' directory; assumes DIRNAME is also a user and a group name.
For details on what exactly is built in each tree, how ownerships and permissions are set, and a rationale of all this, please see EGRID RFC 2 http://www.egrid.it/sysadm/rfc/2 .
BUGS
Tries to set ownership according to directory name, and the map
between directory names and user names is the trivial one: e.g. for a
directory of type U it assumes directory name == user name.
There is currently no way of specifing a different map.
When using --print, it may output the wrong ownership and
permissions for directories whose parent would have been created by
egrid-mkdirhier.
The use of this tool is very limited as it cannot parse a config file: the only way to change the structure and permissions of created directories is through hacking of the source code.
The --verbose option does not yet report more information.
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.
