mount windows shares at login


Subject: mount windows shares at login
From: Tim Jordan, DOL&WD Network Services (Timothy_Jordan@labor.state.ak.us)
Date: Thu Mar 06 2003 - 02:20:48 AKST


I've tried putting together a script (my first) to map the windows
share. I know that I have to use root rights in order to mount the M$
share. So I tried this:

#! /bin/bash
su root
%rootpassword%
mount -t smbfs -o username=tim,password=******* //%server%/home
/home/tim/AD1
cd /home/tim/AD1
chmod a+rwx

It does not work as the root password prompt appears when I run the script.
* How do I pass the root password w/the su command?
*What directory would I put this script in once it works?.....a startup
directory?

Tim

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Mar 06 2003 - 14:14:58 AKST