Peter, <br><br>Thank you for your reply.<br><br>We actually ended up solving this by adding a line to /etc/gdm/PostSession/Default that calls the unmount script. <br><br>I do like your line of thinking though, the only big reason I wouldn't go that route is since I have already spent so much time writing the program to work the way it does. Everything seems to be running smoothly now though. When a user logs in, they have a "mount home directory" icon that accepts their username and password (and does an ldap lookup for the rest) and mounts the home directory and any other shares specified in their config file. When they log out then, the PostSession script calls my unmount script. The big advantage I see doing it your way though is that users never have to log out. I will have to do a little hacking and see if I can make my program work like that. The only stumbling block I see at this point is multiple mounts...
<br><br>Thanks again,<br><br>-Joe<br><br><div><span class="gmail_quote">On 8/15/07, <b class="gmail_sendername">Peter Scheie</b> <<a href="mailto:peter@scheie.homedns.org">peter@scheie.homedns.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Since you're using autologin, you could create a script that uses zenity<br>to query the user for an ID & PW (or just a PW if the user has logged in
<br>with his/her own ID), then uses those to mount the Netware directory,<br>then calls thunar and points it at the mountpoint with the Netware<br>directory, followed by an unmount of the Netware directory.  Then put an<br>
icon on the desktop that calls the script.  When the user clicks on it,<br>it will prompt for ID & PW and then open a file manager window on the<br>Netware directory.  Once the user closes the file manager, it's dismounted.
<br><br>Peter<br><br>Joe Korzeniewski wrote:<br>> Hello Everybody.<br>><br>> I have been working on a script to mount students' home directories from netware servers. I need to make an unmount script run at logoff to clear out their mounts. I tried using an entry in Xreset, but it doesn't work with that (neither the one on the server or in the client export). Right now I have it clearing their mounts at login (each computer will have an autologin user account) with a setting in /etc/profile. I can stand leaving it like this, but it would be sloppy. Just wondering if anybody can give me any insight into how to make this happen?
<br>><br>> Thanks<br>><br>><br>><br>> Joe Korzeniewski<br>> Network Administrator<br>> Battle Creek Public Schools<br>> p. 269-965-9667<br>> c. 269-209-9677<br>><br>> _______________________________________________
<br>> K12OSN mailing list<br>> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>> For more info see <
<a href="http://www.k12os.org">http://www.k12os.org</a>><br>><br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">
https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div><br>