LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autofs (https://www.linuxquestions.org/questions/linux-software-2/autofs-365221/)

kemkem42 09-20-2005 09:28 AM

autofs
 
Hi there,

I'm tryin to do some special stuff using autofs/automount.

I access a share via samba on my fileserver.
I want an automounter on my server, mounting partition as needeed.
BUT, I want to execute a script before mounting..

Is that possible ??
and... How ??

Thanks for help..

marc

teckk 09-22-2005 01:22 PM

I'm not sure what you are wanting to do. You can make a script to mount shares with.
Code:

mount -t smbfs //machinename/share /mounting/point
If you are using KDE
Code:

kdesu mount -t smbfs //machinename/share /mounting/point
and you will be prompted for root psswrd.

Then there is
LinNeighborhood
smb4k
Konqueror will mount shares with fish://machine/share
There is also the Lisa demon, but I've never had much luck with it.
And you can make an entry in your /etc/fstab to mount a share.

You say auto mount shares. Do you mean as soon as the share turns on you want the linux box to mount it?


All times are GMT -5. The time now is 08:06 AM.