mikshaw


Group: Members
Posts: 4856
Joined: July 2004 |
 |
Posted: Nov. 29 2004,15:00 |
 |
Your original should still work, with a couple of exceptions. The mount command won't work as a regular user unless specifically allowed, e.g. in /etc/fstab. Also, I don't think the mountpoint should contain a tilde, but if I'm wrong, please correct me.
If you want to automate it, you could add the info to /etc/fstab and have it mount on boot....the password would be viewable by all users, though.
Something you might consider, since this is a script, is adding an argument test to the script, backed up by a password prompt:
if [ ! $1 ]; then echo "enter password" read pass else pass="$1" fi
I don't know what administrator%password means, though, so this might be unnecessary.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|