LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting Permanently SMB share (https://www.linuxquestions.org/questions/linux-general-1/mounting-permanently-smb-share-707657/)

raji10k 02-26-2009 03:09 AM

Mounting Permanently SMB share
 
Hi Frndz

I am Just New to this forum and My Prob is

Am able to mount windows share in Red hat-4 through SMB temporarily, but when I tried permanently through "/etc/fstab" It halts, The syntex I followed in fstab is

# smbmount //200.200.2.143/Images(windows share) /wallpapers(Linux Share) -o username=admin,password=*********

I used the above syntax but after reboot It halts.
Help Me Frndz.

Webby

mesiol 02-26-2009 03:29 AM

Hi,

you cannot execute smbmount from within fstab.

Try this:
SERVER_NAME:/SHAREN_NAME_ON_SERVER /LOCAL_MOUNT_POINT cifs username=USERNAME,password=PASSWORD 0 0

This should look like:

200.200.2.143:/Images /wallpapers cifs username=admin,password=********* 0 0

mesiol 02-26-2009 03:33 AM

Hi,

you cannot execute smbmount from within fstab.

Try this:
Code:

SERVER_NAME:/SHAREN_NAME_ON_SERVER /LOCAL_MOUNT_POINT cifs username=USERNAME,password=PASSWORD 0 0
This should look like:
Code:

200.200.2.143:/Images /wallpapers cifs  username=admin,password=********* 0 0
in your case.

If you wish to prevent from username and password in fstab you can use:
Code:

credentials=PATH_TO_FILE
instead of username and password.

This file contains the following to lines:
username=Argument
password=Argument
This file can be located in a secure place.


All times are GMT -5. The time now is 03:34 AM.