Linux - NewbieThis 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
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.
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.
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.
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.
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.
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 ...
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.