LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2009, 04:09 AM   #1
raji10k
LQ Newbie
 
Registered: Feb 2009
Location: HYD
Distribution: RHEL-4
Posts: 1

Rep: Reputation: 0
Exclamation 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
 
Old 02-26-2009, 04:29 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
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
 
Old 02-26-2009, 04:33 AM   #3
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a SMB share with unicode charachters Simdude90015 Linux - Software 2 06-28-2007 12:54 AM
Mounting A Smb Share At Login - For Domain Users nm2588 Linux - Networking 3 12-07-2006 11:05 AM
Error Mounting Windows SMB Share plustiber Linux - Networking 1 06-27-2005 01:39 AM
Mounting a SMB Share? owoods Linux - Newbie 2 09-04-2004 09:03 AM
Auto mounting Linux smb share on Windows at startup neranjana Linux - Networking 1 07-02-2004 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration