LinuxQuestions.org
Review your favorite Linux distribution.
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 02-13-2004, 12:27 PM   #1
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
Can only connect to win box read only


I know this has been covered but I can't find an answer anywhere. Samba seems to be working fine. . . . except: I can mount the shares on my Windows server but only read only. I don't think the problem is with my win box because I can read/write from all my windows boxes. I also can't connect to the printer on another workstation that I can use from other windows boxes.

Any ideas. I had this problem about a year ago on another linux box and I thought I had to change the I mounted the share, but I've fiddled with everything and can't get it to mount rw.
 
Old 02-13-2004, 01:32 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
What commands are you using to mount?
 
Old 02-13-2004, 01:46 PM   #3
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Original Poster
Rep: Reputation: 30
I have to admit that I used Mandrake's graphical utility to mount the share.

This is the line from fstab:

//server/Server /mnt/Server smbfs credentials=/etc/samba/auth.server.hosi\pat 0 0
 
Old 02-13-2004, 02:27 PM   #4
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
How I do it

I add it to the fstab file in a way that lets anyone mount it, but you do have to specify which account to mount if from as they will be the owner. Example using jsmith ( uid=501 )
and using an account called jsmith on the WIndows box as credentials to connect to the share.

//hostname/sharename /mnt/samba smbfs gid=501,username=jsmith,password=letmein,user,rw,noauto 0 0

this will let anyone ( the 'user' switch ) mount the share //hostname/sharename onto /mnt/samba with read/write permissions ( 'rw' ) but it will not mount automatically ( noauto ). Along with this entry you can add this line to /etc/rc.local ->
mount /mnt/samba

So it will mount on boot, but not until after the network services ( like the network card!!!) have been started, since they start before rc.local is run.

The syntax for the share name may not be familiar to you, so I will show you what it would look like to connect to ( using Windows UNC syntax ) share c$ on \\windowsbox ->
//windowsbox/c\$ (notice the forward slash before the $ sign, that is necessary because the $ has special meaning in Unix/Linux .

Hopefully this made sense to you.
 
Old 02-13-2004, 03:48 PM   #5
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Original Poster
Rep: Reputation: 30
Thanks for the info. I will try it when I get home. And let you know how it works out.
 
Old 02-14-2004, 06:21 PM   #6
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Original Poster
Rep: Reputation: 30
Here are the two entries in /etc/fstab:

//server/Server /mnt/Server smbfs gid=501,username=pat,password=******,user,rw,noauto 0 0
//server/Server /home/pat/server smbfs gid=501,username=pat,password=******,user,rw,noauto 0 0

I also edited rc.local to mount these two at boot.

Here's what I have. If I cd to the server from the command line, I can create and edit files. If I surf there with Nautilus or try to save a file there from Write, it comes up read only. Strange!

Last edited by patpawlowski; 02-14-2004 at 06:24 PM.
 
  


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
Cannot see my Win XP SP2 box with shared printer from my SUSE Pro 9.3 box thorlin Linux - Networking 3 09-11-2005 01:16 PM
can connect my win 98 laptop to my linux box newusermike Linux - Networking 1 09-06-2005 06:16 PM
How do I get my Suse 9.1 box to print to the printer attached to my Win XP box? PadreFabuloso Linux - Newbie 2 06-23-2005 04:06 PM
win XP can't connect to linux box using samba nebs Linux - Networking 3 02-20-2005 11:42 AM
Connect Red Hat box to Win XP box? VBAHole22 Linux - Newbie 6 05-09-2004 11:13 AM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration