LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Smaba between two Linux machines - help needed (https://www.linuxquestions.org/questions/linux-networking-3/smaba-between-two-linux-machines-help-needed-294501/)

The Belgain 02-24-2005 06:10 PM

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....

ToniT 02-24-2005 06:17 PM

Wouldn't it be so many magnitudes easier to use nfs when talking between two linux machines?

odious1 02-24-2005 08:04 PM

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

The Belgain 02-26-2005 02:05 PM

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...

sarin 02-26-2005 02:43 PM

>>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


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