Title: Mounting (and unmounting) SMBFS

In ~/.profile I'm using several commands like

mount -t smbfs //server/share ~/share -o credentials=~/.credentials

to mount various Windows network shares when a user logs on.

Question 1: ~/.credentials contains the username and password because I can't find a way of getting the logon password. Is there a solution to this?

Question 2: Since I'm mounting the network shares when the user logs on, should I umount them before he/she logs off, and if so, how can I do this automatically?

Cheers,

Tom Munro Glass

Reply via email to