LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-21-2004, 02:16 AM   #1
julius
LQ Newbie
 
Registered: Mar 2004
Location: New Zealand
Posts: 8

Rep: Reputation: 0
Writing to a shared directory under Mandrake 9x


I am trying to run up a server to store and serve files for a small home network. The server (called Server) is running Mandrake 9.2 and samba 2.2.8a. One of the desktop machines is called Client runs Mandrake 9.1 and Samba 2.2.7a. The other desktop machine I'll call Winnie runs Windows XP Home. User Bob exists on all three machines, with the same password. On the two Mdk machines he has the same User ID and Group ID. I have created a folder called /home/bob/test1 on Server.

User Bob can open and read a text document in /home/bob/test1 on Server from both clients. He cannot create a document on the client and save it in test1 on Server. From Client (Mdk 9.1) this gives the error message “error saving the document.... write error. the file could not be saved”.

On Server, user Bob has shared /home/bob/test1 using gnome's file browser (Properties, Permissions) setting Owner (which is Bob) for rwx and Group rwx. Root has used Mandrake Control Centre (MCC) > Mount Points > Set up sharing of your hard disk partitions to “allow all users”. This caused Mandrake to set /etc/exports to show “home/bob/test1 *(ro, all_squash, sync).

As root I have amended this line in /etc/exports from ro to rw, and also tried commenting Mdk's effort out and using “/home/bob/test1 valid IP address (rw). Same result. I can read the test file but cannot save a file to that directory. [reboots were carried out between tests to ensure that appropriate services were restarted with the new settings].

After 18 months tinkering with Linux, I have collected a couple of excellent O'Reilly books and tried to move away from using my Windows server but this problem always beats me! It is obviously a DFU problem, but I can't figure out why. Whilst I am quite comfortable with the command line, I note Mandrake set up things differently from how an expert might do it (according to O'Reilly). I also quite like the flexibility of using LinNeighbourhood to attach to network shares when I want them, and not leave them lying about unnecessarily. So perhaps I am being a bit lazy in using the GUI's with the odd dabble at the command line, rather than setting everything up from scratch.

This has to be a permissions issue for both Samba (Winnie accessing via Samba) and Client accessing via NFS, as they can definitely open a file on the share, but not save there.

I have checked services running on both Mandrake machines - nfs, smb, portmap are all running. querying rpm nfs-utils shows it is installed on both Mdk machines.

I'll bet this really is a DFU (Dumb F User) problem, but it beats me at the moment. Has anyone experienced this situation with Mandrake - and how did you solve it?
 
Old 03-28-2004, 02:44 AM   #2
julius
LQ Newbie
 
Registered: Mar 2004
Location: New Zealand
Posts: 8

Original Poster
Rep: Reputation: 0
SORTED. Got advice from a couple of Linux gurus at work (i.e. use Webmin). I still don't know what the actual problem was, but there seemed to be a permissions issue with Samba. Made worse by my tinkering at the command line, possibly - it's all a learning curve. I have installed the version of Webmin that came with Mandrake - that's the key bit - use the Webmin version that is customised for your distro. This has allowed me to use a gui to get on with what I want to do. I am now using the command line to have a look at various files to learn what has been changed by Webmin to make it work. P.S. make sure you have a quick peek at the Webmin manual on the www (350 pages) it is a very useful download to guide us newbies in these early days.
 
  


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
Where to put shared directory? mikieboy Slackware 11 02-12-2005 03:07 PM
Shared directory Sir.Del Linux - General 1 07-27-2004 12:35 PM
Writing to a shared home folder confused_bof Linux - Networking 5 05-18-2004 06:50 AM
Problem with shared directory Tezdread Linux - Networking 5 03-16-2004 04:46 PM
problem writing to a shared windows folder doddy Linux - General 2 09-05-2002 06:43 PM

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

All times are GMT -5. The time now is 01:59 PM.

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