| Samba / CIFS mount point won't allow read/write for non-root user I've got a Windows Server 2003 R2 machine with a share. A user, let's call it "mang", is added in Windows' Computer Management, and the user is given Full Access to the share.
In Linux (using Red Hat Enterprise Server 5), in /etc/fstab I have the following:
//mangwin1/mang /mnt/mangwin1 cifs username=mang,password=mypass
Note that smbfs is not available in RHES5, only cifs -- that is, that's what I understood after an hour or two of research getting this thing initially set up and running, but I'm open for correction of course.
As root, I am able to navigate to /mnt/mangwin1 and it sees my share fine. I can add files, create directories, the whole nine yards. If I "su mang", though, at first it seems like I can do anything but then suddenly after the first write (or it seems that's when it happens, can't put my finger on the timing) suddenly everything becomes owned by root and read-only to me as 'mang'. If I had created a file called "foo", I cannot "touch foo" (Permission Denied). If I reboot, I can touch it, modify it, but if I create a foo2, the whole thing locks up again.
As root I tried running "chown mang /mnt/mangwin1 -R" which worked at first up until the "mang" user wrote to the file.
I also tried (in fstab):
//mangwin1/mang /mnt/mangwin1 cifs username=mang,password=mypass,file_mode=0777,dir_m ode=0777 0 0
No change.
I suspected perhaps it was SELinux. Setting that to "Disabled" as default and rebooting resulted in no change.
Help!! I'm still quite new to Linux and don't know what to guess anymore!
Thanks,
Jon |