Click to See Complete Forum and Search --> : User management


Hena
11-05-2001, 06:53 AM
I have two annoying things happening, that i would like to change.

1. How can i add commands to time when user is created. I could do a shell script, but is there a file or something that gets run automatically during user creation and can i add somethings to it?

2. I'm using bash as shell. I know that there is profile and bashrc files to make commands on login, but what about logoff. There are a few things i'd like to make sure happens (such as unmounting novell files) atleast during logoff, so they don't keep on hogging cpu.

Using RH7.1.

bdg1983
11-05-2001, 07:18 AM
#! /bin/sh
You can use ~/.bash_logout

I had the following script executed whenever I logged out from Netware. You may need to change a couple of lines since it's more specific to Caldera.

# logout PRODUCTION Netware

umount -a -t netware
umount /NetWare
rmmod nkfs
rmdir /.nwamd/*

/usr/bin/nwlogout -a