LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2012, 08:33 PM   #1
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Rep: Reputation: Disabled
samba smb share between redhat 5 and windows 2003


I am still not able to access I am trying to back up redhat to windows.

I have installed samba. I have opened up rules for windows in iptables. I have accessed the smb.conf files. They both can ping each other. It might be in the backend for user name and password? are there any sites that will show me how to do that? I just want to back up files from basically redhat to windows. I have read a lot of sites and etc and still not working. Thanks in advance.
 
Old 02-09-2012, 06:36 AM   #2
WSmart
Member
 
Registered: Oct 2009
Posts: 34

Rep: Reputation: 0
Firewall, linux as server, isolate odd OS

Greetings,

Do you have redhat setup to act as the SMB server? It might not work the other way. It's been years since I set my systems up, but I couldn't get the Xbox retailer's OS to act as a sever.

One of the most common problem with setting up any sort of network share is the firewall. Even for experienced user this can be difficult with all the different and ever changing firewall interfaces from places like Symantic. Generally you have to call out the IP address as friendly on both client and sever machines, unless there's no firewall.

If you have a spare system that you could install another Linux OS on, you might try getting samba working that way first, isolate the odd OS factors. I don't recommend making changes to a working system that you depend on though, because that's asking for problems, especially when it comes to cheesy operating systems. I have an xbox OS machine setup up with a second hard drive running Linux and all that is stable, most of the time, but that's it's own project.

Thanks for posting, and thanks all.

Be real, be sober.
 
Old 02-09-2012, 07:04 AM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
please let us see the smb.conf
 
Old 02-09-2012, 07:18 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
How are you trying to access the windows computers?
Are you trying to mount a windows share?
what are the errors?

smb.conf is just for configuring the server and not the client.
 
Old 02-09-2012, 07:33 AM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
If the smb.conf isnt setup correctly then the clearly the clients wont be able to connect...thus the need to see the smb.conf
 
Old 02-09-2012, 07:58 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The OP wants to backup files from Redhat to Windows. So the client is the Redhat computer.
 
Old 02-09-2012, 08:27 AM   #7
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
If he has a folder on rehat and then wanted to share it on the windows pc and then just add files he wanted to backup from linux to the folder which is accessible on windows he would be on the right track.The very fact he installed samba suggests that.
 
Old 02-09-2012, 08:37 AM   #8
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Rep: Reputation: 6
Where cant you acess it from?

Can you connect from windows to Redhat or the other way around? Or does it just not connect at all?

If you want just a simple connection you should be able to leave everything in the top of the smb.conf alone and just change the share information at the bottom and workgroup name.

Here is an example of my public configuration with no password to acess for my home network(you really should use a password if its connected to the internet)

Code:
[server]
   comment = server
   path = /bigdrive
   public = yes
   writable = yes
   printable = no
   browseable = yes
   guest ok = yes
When I build my home server with samba I usualy just have to put this in and it works as long as my firewall isnt blocking it.

you may have to find an allow guest option also

I always use the gentoo site
http://en.gentoo-wiki.com/wiki/Samba
I use it on non gentoo systems also. Just skip all the building instructions.

Good luck

Last edited by Adol; 02-09-2012 at 08:40 AM.
 
Old 02-09-2012, 08:18 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Like the OP & michaelk said, he wants to backup TO MS, so samba sharing with Linux as server isn't the soln; that just makes disks ON Linux avail to MS ...

He should be able to use the samba client on Linux to connect to an MS share ...
 
Old 02-09-2012, 08:37 PM   #10
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
if he wanted to do that, he wouldn't have installed samba...he can still accomplish what he wants to do in the way I proposed 2 posts up...I guess the OP needs to comment and explain more clearly,because there are atleast 2 ways of backing up FROM linux to MS

If all you need to do is connect to a windows share(no need to install samba)...

smbclient -L ipaddress of the windows machine


and connect to the share you want:

mount -cifs --username=username --password=password Windows_IP/Share /linux/location//



..If you want to do it complicated way and install samba, please post the smb.conf so we can have a look

Last edited by cbtshare; 02-09-2012 at 09:47 PM.
 
  


Reply



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
connecting via samba to share on windows 2003 draelo Linux - Networking 3 04-29-2009 06:43 AM
Windows 2003 - Linux Samba share f0rmat Linux - Software 0 10-13-2006 03:47 PM
windows 2003 and debian share nadirm Linux - Networking 3 01-25-2005 04:58 PM
SAMBA: Connecting from rh9.0 smb 3.0 > windows xp share shookie Linux - Software 3 05-16-2004 07:01 PM
unable to browse samba share from windows 2003 kfloda Linux - Software 1 08-16-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration