LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Windows share cannot be mounted on linux? (https://www.linuxquestions.org/questions/linux-networking-3/windows-share-cannot-be-mounted-on-linux-585970/)

chickenjoy 09-19-2007 10:34 PM

Windows share cannot be mounted on linux?
 
This worked for me in one computer, but when I tried it on a production server of a friend's, it shows an error about the folder being read-only.

- Windows XP sp2 and a RHEL4 U4.
- I'm positive that I set the share folder to allow read and write access for Everybody (in windows)
- the shared folder is on a fat32 system
- created /mnt/winshare directory on the linux system already.

I'm using the command:
Code:

mount -t cifs -o username=Administrator,workgroup=WORKGROUP,uid=root,gid=root //202.57.35.10/winshare /tmp/winshare
This is the error when I'm mounting the folder:
Code:

Block device: //202.57.35.10/winshare is write-protected, mounting read-only
mount: cannot mount block device //202.57.35.10/winshare read-only

And this is the /var/log/messages
Code:

14:06:01 mail kernel:        CIFS VFS: Send error in SessSetup = -13
14:06:01 mail kernel:        CIFS VFS: cifs_mount failes w/return code = -13

What may be wrong?

btw samba is not installed in the linux system (maybe its due to that, but no I'm not hosting a share for windows to see, I'm accessing a share from windows to be mounted locally)

thanks in advance.

pljvaldez 09-19-2007 11:06 PM

Do you have smbclient installed? I don't think you need full samba, just the client.

chickenjoy 09-20-2007 03:08 AM

Ok I tried this again on another fresh installation of linux without any samba client or smb installed and it worked..... it asked for my password and then the mount was successfully created.

I was able to mount it using either cifs or smbfs. But in the production server that was trying to mount it on; smbfs was an 'unknown' syntax/option and only cifs would be accepted; but yet the mount was failed.

Is there any firewall ports that has to be opened in order to allow mounting of windows shares? that I didn't try but it sounds far fetched from the error "read-only" that it keeps on saying.


All times are GMT -5. The time now is 06:16 PM.