LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 05-07-2013, 09:59 AM   #1
lhiggie
LQ Newbie
 
Registered: Feb 2006
Location: Louisville, KY, USA
Distribution: RHEL 3, RHEL 4, RHEL 5, RHEL6
Posts: 10

Rep: Reputation: 0
Samba config can read both directions but not write both directions


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?
Attached Files
File Type: txt smb.txt (14.4 KB, 1 views)

Last edited by lhiggie; 05-07-2013 at 10:28 AM. Reason: Added information
 
Old 05-07-2013, 01:25 PM   #2
lhiggie
LQ Newbie
 
Registered: Feb 2006
Location: Louisville, KY, USA
Distribution: RHEL 3, RHEL 4, RHEL 5, RHEL6
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 05-14-2013, 12:33 PM   #3
lhiggie
LQ Newbie
 
Registered: Feb 2006
Location: Louisville, KY, USA
Distribution: RHEL 3, RHEL 4, RHEL 5, RHEL6
Posts: 10

Original Poster
Rep: Reputation: 0
Cool 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.
 
  


Reply

Tags
rhel 6, samba permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Since I follow directions maggie29 LinuxQuestions.org Member Intro 3 03-02-2006 03:13 PM
Directions.. Directions.. rizhun Linux - Certification 4 07-28-2005 04:55 PM
some squid directions darkleaf Linux - Networking 8 07-14-2005 02:10 PM
Partition directions Underworld Linux - Software 7 04-06-2004 09:35 PM
Seeking directions jk2silly Linux - Newbie 3 10-20-2003 10:05 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration