Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-13-2004, 12:27 PM
|
#1
|
|
Member
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163
Rep:
|
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.
|
|
|
|
02-13-2004, 01:32 PM
|
#2
|
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
What commands are you using to mount?
|
|
|
|
02-13-2004, 01:46 PM
|
#3
|
|
Member
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163
Original Poster
Rep:
|
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
|
|
|
|
02-13-2004, 02:27 PM
|
#4
|
|
Member
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297
Rep:
|
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.
|
|
|
|
02-13-2004, 03:48 PM
|
#5
|
|
Member
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163
Original Poster
Rep:
|
Thanks for the info. I will try it when I get home. And let you know how it works out.
|
|
|
|
02-14-2004, 06:21 PM
|
#6
|
|
Member
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:09 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|