Operating System - Linux
1827855 Members
1662 Online
109969 Solutions
New Discussion

Re: Autofs Linux to windows

 
MarkW_1
Regular Advisor

Autofs Linux to windows

I have installed autofs on a Linux version 4 server. Added the required data to mount the windows share with username/password. I can see the share but I cannot cp any files. Also, is this the best approach for the need to copy files from the linux server to a windows share. I could not get smbmount to work.

[root@hmmdb1 HMMBackup]# cd /etc/samba
[root@hmmdb1 samba]# cp * /cifs/HMMDBBU/HMMBackup
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/credsfile' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/lmhosts' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/lmhosts.rpmnew' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/passdb.tdb' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/secrets.tdb' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/smb.conf' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/smb.conf_orig' with non-directory
cp: cannot overwrite directory `/cifs/HMMDBBU/HMMBackup/smbusers' with non-directory
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: Autofs Linux to windows

I think that the problems is related to what you are trying to copy.

¿Can you just create a new file on the mount point? If so, then the problem probably is what is indicated on the message.

"cannot overwrite directory with non-directory"

¿It seems that credsfile on the local host is a file, and on the remote host a directory? ¿Can you post a ls -la of the local and remote file?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
MarkW_1
Regular Advisor

Re: Autofs Linux to windows

Thanks for the info. I decided to go with Samba/Swat to do what I need.