Click to See Complete Forum and Search --> : windows share, read only
adammc
11-29-2003, 07:10 PM
I've spent the past couple of hours trying to fix this, with no luck. My problem is that I am unable to write to a shared directory on a WinXP machine. My config is as follows.
In fstab:
//192.168.1.100/adamDoc /mnt/adamDoc smbfs credentials=/root/adamDoc,uid=adam,gid=users,rw 0 0
after mounting, /mnt/adamDoc is -w:
orion root # ls -l /mnt/
...
dr-xr-xr-x 1 adam users 4096 Nov 29 17:32 adamDoc
...
I'm unsure if this is a problem on my Linux machine, or on the Win machine, as there are two things which bug me. Firstly, according to the win file manager the shared directory is read-only; no matter what I do I can't seem to change that (even tried attrib -R). Secondly, when mounting I get the following:
orion root # mount /mnt/adamDoc/
INFO: Debug class all level = 1 (pid 20731 from pid 20731)
20731: session request to 192.168.1.100 failed (Called name not present)
20731: session request to 192 failed (Called name not present)
I can't seem to find what this means, so for all I know it's saying "write access not enabled" or something :roll:
someone must know how to fix this...
j79zlr
11-29-2003, 10:43 PM
what are the NTFS and/or share permissions of the folder on XP?
bandwidth_pig
11-29-2003, 11:23 PM
Although I have never done this (I do recall seeing something about it in MDWatts sig) I don't think you can just write to a NTFS partition on a shared drive as you would a FAT. I have never tried this, but upon compiling the kernel the other day, I noticed options for the NTFS file system (being able to write to it). Do you have this option enabled in the kernel?
bandwidth_pig
11-29-2003, 11:25 PM
http://linux-ntfs.sourceforge.net/rpm/index.html
j79zlr
11-29-2003, 11:26 PM
that is true for a mounted share on the same machine, but not for a networked share, file systems do not matter across the network.
If you write to an NTFS mounted partition, it will basically kill it :) it can screw up the MFT and force a format.
cowanrl
11-30-2003, 10:46 AM
Everything looks OK on your Linux machine. I would say the problem is on your XP machine.
I was helping a customer set up a share on a WinXP home machine the other day and ran in to a similar problem. In this instance it was Windows to Windows but the problem was the same. The share on the WinXP home machine always showed up as read only.
Judging from your error message, you need to be sure you are actually sharing out the directory. The easiest way to test this is to right click on the My Computer icon and select Mange from the menu. In the window that opens up, expand System Toos and Shared Folders, then click on Shares. You should see your shared folder in the list on the right. If it's not there, your folder is not shared out.
This is a problem we had with my customers computer. Even though we had created the share(or thought we did), it didn't get created. Every time we tried to access the share we got a network resource does not exist type error. So, we had to go in a recreate the share.
Once we got the share created properly, it would still come up as read only all the time. We could not copy any files to it or create new files. This turned out to be an option that needed to be set on the page where you share out the folder in WinXP home. I don't have a machine with WinXP home on it here so I can't remember exactly what it said. It was down near the bottom of the dialog box and had something to do with allowing others to write to the share over the network. I can't remember whether we had to check or unchek a box but once we did, we could then write to the share. You may want to check for that setting.
If you are using XP professional and are using the NTFS file system, you should check both the Share and Security permissions on the directory you are sharing out. Usually by default on an XP machine Everyone will have full R/W access to both the share and the directory so it's usually not an issue.
Another thing you may want to check is that you don't have the WinXP firewall set up on your network connection. You can find this option on the Advanced tab of the properties sheet for your network connection.
adammc
11-30-2003, 12:14 PM
at last! it works! :D it seems the directory I was trying to share ("Adam's Documents") wasn't actually owned by my user account on the WinXP machine - though why there was nothing to tell me that I don't know. So, I created a subdirectory in there and shared that instead which works perfectly.
thank you all for you help :)
Satanic Atheist
11-30-2003, 01:50 PM
This is one of those great moments where doing something in Linux is a helluva lot easier than in Windows!
Glad you got it to work.
James
j79zlr
11-30-2003, 05:02 PM
If this is XP home, you have to boot into safe mode to see all the permissions. I dont know why, but thats how it is.