Utilities in JRButils for Netware v16
A to F
Accexp
Accexp is intended for use in a login script where it displays a warning if the user’s account is about to expire. It may also be used to check the account status of a named user. The number of days before expiration at which warnings begin is adjustable and defaults to seven. Both text mode and GUI versions are available.
Appadd
Associates objects with ZEN applications. It can do the following:
- Associate users, group objects, all members of a group, and container objects with an application.
- Associate work station objects, workstation group objects and all members of a workstation group with an application.
- Use the default association flags of the application object.
- Use user-supplied association flags.
- Supports chained applications.
Appdel
Disassociates objects from ZEN applications. It can do the following:
- Removes associations between objects and ZEN application objects.
- Remove associations for users, group objects, all members of a group, and container objects.
- Remove associations for work station objects, workstation group objects and all members of a workstation group.
- Supports chained applications.
Applist
Lists the objects associated with ZEN applications. It can do the following:
- List the associated objects for one or more applications, and the association flags.
- Allows logical operators to be used so that you can list the associated objects common to two or more application objects, or those associated with any of the application objects.
- Allows sorting of the associated objects.
- May expand associated groups or containers, listing all members of the group, or all users in the container, to produce a complete list of associated users, whether associated directly, or via a group or container object.
- Can produce comma delimited output with fields optionally enclosed in quotes.
- Can list the associations as appadd or appdel commands.
Chkhome
Chkhome allows you to check that NDS “Home Directory” attributes and bindery HOME_DIR properties are set correctly and to display the paths contained therein. Specifically chkhome can:
- Display home directories for one or more users. When obtaining the home directory path from the “Home Directory” attribute, the name space in which the path is stored is also displayed.
- Check for each user that the directory stored in the NDS “Home Directory” attribute or in the bindery HOME_DIR property actually exists, and if it does not, it will scan other volumes on the server for a matching directory.
- For a single directory, or all subdirectories of a directory, check if there is a user in NDS corresponding to the lowest level directory i.e. for vol1:users\karen, it will check if user Karen exists somewhere in the tree.
- For each directory, check that the corresponding user’s “Home Directory” attribute or bindery HOME_DIR property contains that directory e.g. for vol1:users\karen it checks that Karen’s “Home Directory” contains vol1:users\karen.
- Can display each user’s default server and check that it is on the same server as the home directory.
- Can check the “Home Directory” attribute for lowercase characters in the path. Some NetWare tools allow a path in the DOS name space to be stored in lowercase, but NetWare itself require DOS paths in uppercase.
- Can check that the name space field is set correctly in the “Home Directory” attribute.
- Can check that the lowest level of the path from the “Home Directory” attribute matches the user name.
- Can check that each user has the required rights (e.g. RWCEMF) to their home directory.
Chrcheck
Scans all files in a directory structure and lists those with non-standard characters in the name. By default non standard characters are anything other than 0-9, a-z, space, ‘.’, ‘~’, ‘-’and ‘_’. Alternative sets of allowable and non-standard characters may be specified. Features include:
- Files may be renamed by removing the non standard characters.
- Files may be renamed by replacement of the non standard characters with a nominated character.
- Leading spaces in file names may also be identified, removed or replaced.
- Works on NetWare and Windows drives.
Con_ops
Con_ops allows you to add or remove one or more console operators for a server in a single command. Features include:
- May add or remove user or group objects as console operators.
- May list console operators and optionally sort them.
- Can display only the number of console operators on the server.
Copy_obj
Copies NDS objects. Its features include:
- New objects may have the same name in a different context, or a different name in the same context as the object being copied, or a different name in any other context.
- Can copy many classes of object, and copies all attributes making changes where necessary. For example any reference to the source object in attribute values (e.g. for ACLs) are changed to the new object’s name.
- If a user being copied is a GroupWise user, the new user will be added into GroupWise.
- Has various options to control what is copied e.g. it is possible not to add new users into GroupWise or to suppress copying of auxiliary classes belonged to.
Creatobj
Creatobj allows you to create NDS and bindery objects of almost any class or type. It is intended primarily for creating users in batch mode. See also jrbimprt. Creatobj can do the following:
- Set a password.
- Create a login script.
- Create a home directory and grant rights to it.
- Store the home directory path in the “Home Directory” attribute.
- Enable password expiration and either expire the password or set it to expire in n days time.
- Can copy attributes from a template when creating users.
- Can specify a time delay to occur after creating an NDS user, before attempting to create the home directory and grant rights to it. This gets around an NDS programming problem where a user creation request is directed to one server, the home directory is created on a second but the new user has not yet been replicated to that second server. An NDS request to create an object can be directed to a particular server and creatobj will attempt to do this.
- Can initiate a synchronization of the replica immediately after creation of the new object.
- Can add new users into GroupWise from a template.
- Sets the uniqueID attribute equal to the user name. This attribute is required for some products such as iPrint.
Decomp
This program decompresses compressed files by repeatedly reading them until they remain uncompressed on the volume. It can also list all compressed files in a directory structure or entire volume.
Deladdr
Deladdr can be used to overcome a problem caused by a bug in NDS where a user’s network address is sometimes not removed from NDS at logout. When a user logs in, the network address of the workstation is added to the user’s “Network Address” attribute. The number of addresses in this attribute is used at login to determine the number of concurrent connections and whether the user has reached their limit. When addresses are not removed, a user may be informed that they have reached their connection limit when in fact they have not. Deladdr can be used to remove addresses where there is no corresponding connection. Because the addresses cannot be linked back to the server to which the user connected, deladdr requires a list of servers to be scanned for connections with matching addresses to ensure addresses are not deleted for users currently logged in. Deladdr supports the use of IP connections under NW 5 and NW 6, as well as IPX.
Delattr
Deletes a selected attribute from one or more NDS objects. Delattr refuses to delete some attributes where their removal might cause problems. These exclusions include ACLs, “Security Equals”, and partition related attributes. This does not mean that it is safe to use delattr to delete all attributes which are not excluded. Many attributes are not set in isolation e.g. removing a user from a group requires modification of two user and two group attributes, and anyone using delattr needs to be aware of such relationships. Use delattr cautiously, and entirely at your own risk. Delattr supports the deletion of optional attributes associated with auxiliary classes.
Delobj
Delobj can delete almost any type of NDS or bindery object. For safety you may not use wildcards when deleting objects. Nor will delobj delete groups with members. Features include:
- When deleting users, delobj will delete the user’s home directory if it is stored in the NDS “Home Directory” attribute, or if a path is specified on the command line.
- Can delete each user’s mail directory and its contents.
- Can remove users and external entities from GroupWise.
- Multiple objects may be deleted using an input file.
Disable
Disable disables logins under all versions of NetWare. Use JRButils’ enable program to subsequently re-enable logins.
Domgrps
Adds users to, removes users from, and lists the users of Novell Account Management, Corporate Edition or NDS for NT local and global groups. Domgrps can also create and delete local and global domain groups, and allows addition of global groups to local groups.
Domusers
Adds users to, removes users from, and lists the users of NT domains when Novell Account Management, Corporate Edition or NDS for NT is installed.
Downsrvr
Downsrvr may be used by a console operator or supervisor equivalent user to down a NetWare server. By default it will ask for confirmation before downing the server, but you may suppress this.
Dquota
Dquota is intended for use in a login script to display the user’s quota, space used and space available. It can display both volume based and directory based quotas. The format of the output is extremely flexible, and it is possible to supply a text file with substitution parameters for the quota, space used or space available. It may also be used to display values for any subdirectory of each user’s home directory. Warnings may be given if the user’s free space falls below a certain threshold.
Edit_pjc
Allows the changing of parameters in NDS and bindery print job configurations. Multiple parameters can be changed on each invocation, and they may be changed for selected job definitions or for all definitions, and they may be changed for individual or multiple objects.
Extcheck
Scans all files in a directory structure and reports the number and size by extension. It can also report the number and size older than a given date. The results may be reported in columns or comma delimited for import to a spreadsheet. Extcheck supports both NetWare and Windows drives, and can process multiple directories via an input file.
Findref
Findref locates all references to a particular object in an NDS tree, and can optionally delete those references, or replace the object name with that of another object. The ability to replace all references may be useful for example, when replacing a volume and it is known that the volume object will be deleted and recreated. When a volume object is deleted, all attribute values containing that object name are deleted. This includes “Home Directory” attributes for users, and “Path” attributes for directory maps. Findref could be used to replace the volume object in those attributes with the name of a placeholder object, and when the new volume and its corresponding volume object have been created, replace the placeholder with the new volume object.
For another example of using findref, read Leonard Holling’s Cool Solutions article on “Removing Unwanted and Unknown ACLs”.
Fsrights
Displays the rights of selected objects to files and directories. These are the actual rights, not just the trustee assignments. The rights may be received via a trustee assignment to the target file or directory, via a trustee assignment at a higher level, they may be restricted via inheritance rights filters, they may be received through security equivalence to another object, or by the rights being granted to one of the object’s parent containers. Features of fsrights include:
- Can display the rights of one object or multiple objects to a single target directory or file, or to multiple directories or files.
- Can filter the results by rights e.g. show only those results where the objects have S rights, or eliminate results where the object has no rights.
- Can show how the rights are derived by displaying inherited rights filters and relevant trustee assignments at each level from the volume root down to the selected file or directory.
- Can show the rights in a directory tree at th startng level and thereafter only when the rights change. This is probably the most useful way to display an object’s rights to a directory structure.
- Can process multiple target servers in a single command.
- Can produce comma delimited output.
Fsupdate
Fsupdate allows you to perform file maintenance operations across multiple servers. Its features include:
- Can copy individual files, files selected via wildcards, or entire directory trees to multiple servers. Fsupdate attempts to retain all file attributes including ownership, creation and last update dates.
- Can delete individual files, files selected via wildcards, or entire directory trees on multiple file servers.
- Can selectively copy and delete files based on their creation date, modification date, archive date, last access date, owner, updater and archiver.
- Can show which files will be deleted for a delete operation without actually deleting the files. This option is intended for use with a selective delete and will show the value for the attribute on which the files are selected.
- Can rename files on multiple servers. This facility may be used to move files from one directory to another providing that the source and target directories are on the same volume.
- Can specify what attributes you want set on copied files and directories.
- Can overwrite, delete or rename files flagged read-only.
- Can copy trustee assignments.
- Can copy files larger than 4.3 GB under NW6 SP2 onwards. This feature is independent of the NetWare client version.
- Can purge files which have been deleted.
- Supports non-DOS name spaces including the extended Mac name space.
- Can copy compressed files without decompressing.
- Copies sparse files correctly.
- Has a mirroring option to remove non-matching files, directories and trustee assignments in the target directories.
- Can use an input file containing the names of files and directories when copying, deleting or setting attributes.
- Can skip selected directories when copying or deleting a directory structure.
- Works for both Windows and NetWare drives.
