LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot mount Windows Share!! (https://www.linuxquestions.org/questions/linux-networking-3/cannot-mount-windows-share-505730/)

charles20hk 11-28-2006 08:43 PM

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.

kenji 11-28-2006 09:18 PM

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/

charles20hk 11-29-2006 02:02 AM

but how can I mount the drive when my linux workstation startup?

kenji 11-29-2006 03:03 AM

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


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