Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

We need to transfer files from a Linux server to a Windows shared folder. we don't have any Samba server. Can you please explain a better way?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can mount a windows network share via the mount command:

mount -t cifs //server/share /mnt/ -o username=user
  • server can be the ip or the hostname of the windows server.
  • share is the name of the network share
  • /mnt/ is the mountpoint in the local linux machine
  • user is the username that has the needed privileges
  • you will be prompted for the password

After mounting just copy the file:

cp /path/to/file /mnt/wherever
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.