Cool Solutions

Mass Home Directory Scripts



By:

January 28, 2005 1:19 pm

Reads: 3520

Comments:0

License:
GPL

Download home_dirs

Mass Home Directory creator
File Name: home_dirs.sh

Script for the creation of home directories on NNLS. It uses the LDIF file you would have created to import large numbers of users into NNLS. It extracts the CN field to use as the Username. The Group field to use as the group. Creates the directory. Copies the skeleton files into the directory and then changes the permissions for the user and group.

It can create a single user if you specify the User name and Group or all users if you specify an LDIF file.

Rules:
There must be one LDIF file per LUM Group

Parameters: path to LDIF file (all users)
User Group (single user)

Mass Home Directory deleter
del_home_dirs.sh

Deletes the home directories of all users that were specified in the LDIF file. Useful if in the implementation phase you realize that you need to recreate the user set because of various issues.

Parameter: path to LDIF file.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS