We have a web server running on Centos 6.3 and we intend to mount a shared Windows drive (Windows 2008) so that we can do our daily backups on to the shared drive. This is how I am mounting the drive at the moment.
mount.cifs //172.27.0.190/Moodle$ /srv/www/moodledata \
-o username=LHU/moodledata,password=<password> \
-o rw,dir_mode=0777,file_mode=0777,uid=root,gid=root
This allows me to mount the drive and I am able to create new directories and files. However I am unable to delete anything, move or replace any files or folders. This is problematic since we use a script to automatically backup our database and we have a weekly rotation schedule which at the moment cannot delete files, so the shared drive is filling up with database copies since the script cannot delete obsolete copies. Further more, we rsync the data from a folder on the server to a folder on the shared drive. This doesn't work either.
E.g.
rm: cannot remove `weekly/mysql/weekly_mysql_2012-10-26_13h15m_43.sql.gz': Permission denied
The user info is correct and has full control on the folder in Windows 2008.
I would be very grateful for any advice to fix this issue.
smbclient
. My bet is that the problem is on the Windows server side.=
with a space