Using SMB to copy files from one linux machine to second linux machine.
This is a newbie question from somebody who has just added a second linux machine to his network.
This is the situation. I have a tiny home network -- 4 machines. I have two windows machines and two linux machines. I have samba up and running on one linux machine. I can access my samba server from my redhat machine using smbclient. I want to copy a file from my samba server to my redhat machine. How? Thanks. Sorry, you just use the get command. Very interesting. |
well you can use samba but i personally found a sweet little command a while ago.. scp (secure copy) You can copy a file from one machine to another with a simple command like this
scp copiedfile remotecomputerip_or_hostname:/path/for/file so if you want to copy /etc/hosts.allow from one computer to the /home/user directory on the host linuxbox2 scp /etc/hosts.allow linuxbox2:/home/user it's real handy... You may or may not be interested?? |
Quote:
Code:
man smbclient |
Thanks guys. I appreciate the replies.
I will try the secure copy "scp" command later. I was a little confused because I was reading a howto someplace and they said to use the cp command. Obviously, it doesn't work. I have a bad habit of anwering my own questions. Sorry. :study: |
You can also mount samba shares like nfs shares.
Code:
man smbmount |
Thanks. Mounting requires you to sign on as root, and the syntax seems a little clunky.
Using smbclient is almost like using FTP. Thanks again. |
Whichever you prefer, but a user can mount an smbfs on a directory that they own. All you have to do is "chmod u+s /usr/bin/smbmnt" (as root). An entry in /etc/fstab can make the syntax more manageable.
|
Thanks, I am learning. I appreciate your comments.
|
Quote:
mount -t smbfs -o username=user,password=user_password //remote/share /local/mountpoint and all, nothing clunky :) |
Or you can mount it with all the other filesystems in /etc/fstab
|
All times are GMT -5. The time now is 11:42 AM. |