LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-19-2007, 10:34 PM   #1
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

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

Last edited by chickenjoy; 09-20-2007 at 03:12 AM.
 
Old 09-19-2007, 11:06 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Do you have smbclient installed? I don't think you need full samba, just the client.
 
Old 09-20-2007, 03:08 AM   #3
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Original Poster
Rep: Reputation: 30
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-30-2006 11:30 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Apache alias point to mounted windows share johnnypezz Linux - Newbie 0 09-13-2004 02:04 PM
Process dies when i try to browse mounted SAMBA windows share poko Linux - Software 1 08-12-2004 11:40 PM
One Windows share getting mounted read-only - why? rparkes Linux - Networking 5 01-31-2004 02:07 PM

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

All times are GMT -5. The time now is 10:47 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