Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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....
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.
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...
>>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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.