LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2006, 08:43 PM   #1
charles20hk
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Cannot mount Windows Share!!


I newly installed Suse 10.1, and I put

Code:
//MyWindowsWorkStation/sharedFolder /mnt/share smbfs auto,uid="root",username="username",password="passwd",fmask=777,dmask=777 0 0"
in /etc/fstab, however it can't mount it and promopt this error

Code:
mount: can't find /mnt/share in /etc/fstab or /etc/mtab
What can I do? Actually I can mount the drive with the following command:
Code:
mount -t smbfs -o uid="root",username="username",password="passwd" //MyWindowsWorkStation/sharedFolder /mnt/share/
Furthermore, how can I let the other Linux user can write files on the windows shared folder?

Thx a lot.
 
Old 11-28-2006, 09:18 PM   #2
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
try this and it will ask you for your password. it is more secure
because it doesnt expose your password in your shell screen and
in the bash_history hope this helps| £Ä3

mount -t smbfs -o username=user //MyWindowsWorkStation/sharedFolder /mnt/share/
 
Old 11-29-2006, 02:02 AM   #3
charles20hk
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
but how can I mount the drive when my linux workstation startup?
 
Old 11-29-2006, 03:03 AM   #4
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
try editing /etc/fstab. hope this helps| £Ä3

/dev/hda2 / ext2 defaults 1 1
/dev/hdb1 /home ext2 defaults 1 2
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto rw,noauto,user,sync 0 0
proc /proc proc defaults 0 0
/dev/hda1 swap swap pri=42 0 0

//MyWindowsWorkStation/sharedFolder /mnt/share/ smbfs 0 0
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
user can't mount windows share Abyteapart Slackware 17 11-15-2006 12:08 PM
when trying to mount a windows share I'm getting jcombs_31 Slackware 11 01-04-2006 06:48 PM
auto mount windows share bloodhound1600 Linux - Networking 1 11-26-2002 04:16 AM
mount windows share smbmount dc2447 Linux - Newbie 1 09-08-2002 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 AM.

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