Samba config can read both directions but not write both directions
1 Attachment(s)
Good day everyone,
I have configured Samba and it works wonderfully from moving files from windows to Linux, however, I cannot get it to write from Linux to Windows. I have uploaded a sanitized version of my smb.conf (named smb.txt). I'm currently running Samba 3.6 on RHEL 6 (unfortunately, my licensing has expired and in the middle of getting it purchased) in a VmWare VM. I'm not running selinux. I'm having the following issues: 1. Cannot write to windows from linux 2. Cannot get the permissions correct. All attempts at changing them from 755 to 775 have failed. I have been working on this for over a week and have had no luck at all. Any and all assistance is greatly appreciated. Thank you in advance! Sincerely, lhiggie I have bigger issues, attempted to run the command: smbclient -L servername Connection to servername failed (Error NT_STATUS_CONNECTION_REFUSED) Any ideas on this one? |
O.k., I have found a couple of things I did wrong at the outset. I misread the smb.conf file and now see that a semicolon is just like a #. Therefore, I have removed the ; as follows:
... netbios name = SAMBA1 # Changed the interface to the IP address - LH interfaces = lo eth0 192.163.20.65/24 ... # security = domain security = ads passdb backend = tdbsam # realm = MY_REALM realm = ABC.PVT ... And: [lhiggie@servername ~]$ smbclient -L windowsservername Enter lhiggie's password: Domain=[ABC] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1] Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin Archive Disk C$ Disk Default share D$ Disk Default share F$ Disk Default share FileTransShare Disk IPC$ IPC Remote IPC Domain=[ABC] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1] Server Comment --------- ------- Workgroup Master --------- ------- [lhiggie@servername ~]$ So, I'm getting one step closer. |
Solved!
Thanks to all that replied!
I have it fixed and this is how I did it: As per the Using Samba 3rd Edition that I had to purchase to get the fix from pages 306 - 309. 1. I created a file in the /root directory named .cifsrc with the following parameters: username=zoe password=FY23d^g 2. I then used the following command to mount the share: mount -t cifs //fox/public /cifs/public -o cred=$HOME/.cifsrc,uid=aoe,gid=users I can now read and write both ways. |
All times are GMT -5. The time now is 10:09 AM. |