LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-24-2005, 06:10 PM   #1
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Rep: Reputation: 1
Smaba between two Linux machines - help needed


Right... I've been trying to solve what seems like it should be a fairly straighforward problem, but to no avail.

I'm running Samba on my fileserver, to share files to my other machine, which dual-boots between WinXP and Mandrake 10.1. I want to be able to have read and write access to the Samba files. In WinXP this works fine (I have both read and write access), but when mounting the share from Mandrake, I can only get read access when accessing the files while logged in as the local non-root user. This is because the folders in the Samba share have write access for root only.

How can I make the local user log in in such a way that it has write access to the files/folders which are owned by root on the fileserver?

I've posted this to another forum before, and there's a more detailed description of the problem there: http://forums.overclockers.co.uk/sho...php?t=17375954

Help on this would be really appreciated, as apart from this one issue, I'm really liking the transition to Linux, but this is completely stopping me from being able to use it....
 
Old 02-24-2005, 06:17 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Wouldn't it be so many magnitudes easier to use nfs when talking between two linux machines?
 
Old 02-24-2005, 08:04 PM   #3
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
if the share is only writable by root your must mount it as root. then those permissions must be passed to whatever local accounts you choose on the cleient machine by passing the uid and gid args to smbmount. permissions for the share are then determined by passing fmask and dmask.

mount -t smbfs //samba/share /mnt/share -o username=root,password=rootpass,uid=???,gid=???,rw,fmask=755,dmask=755

i saw somewhere in one of your posts about having to return and change permissions on files/directories created on the share. that can be controlled by using the force create, force user and force directory directives in your smb.conf file.

good luck

Tom
 
Old 02-26-2005, 02:05 PM   #4
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Original Poster
Rep: Reputation: 1
Well... I've tried that, and still no luck. I'm getting access to the share, and I have write access to any subfolders in the share which have write access for all users, but any folders which have write access only for root, I can't write to.

This happens regardless of whether I'm using the Samba share or the NFS share, so doesn't seem to be a network problem...

There must be a better solution that simply running "chmod a+w shareddir" at every login? Any ideas guys? Surely this is something which people have done before...
 
Old 02-26-2005, 02:43 PM   #5
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
>>but any folders which have write access only for root, I can't write to.
>>This happens regardless of whether I'm using the Samba share or the NFS share, so doesn't seem to be a network problem...

Try no_root_squash for NFS.

--Sarin
 
  


Reply



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
Smaba PDC Problem rshooper Linux - Software 8 08-17-2004 06:48 PM
smaba problam ! on suse 9.1 starking Linux - Networking 1 07-04-2004 08:04 AM
smbadduser in Smaba v.3??? jonfa Linux - Networking 1 06-13-2004 02:41 PM
Smaba and subnetworks linuxpyro Linux - Networking 15 05-20-2004 10:35 PM
smaba server config johnnycash Linux - General 3 03-23-2004 05:52 AM

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

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