Writing to Samba share as different user?
- by Hamid Elaosta
I have a Samba share on my NAS drive mounter as follows:
mount -t smbfs -o username=backup,password=backups_password //sharebox/SVNBackup /mnt/SVNBackup
I am then trying to run:
sudo svnadmin dump /usr/local/svn/repos/testrepo > /mnt/SVNBackup/test1.svn
but I get:
bash: /mnt/SVNBackup/test1.svn: Permission Denied
The backup location is setup to accept access only from the user "backup" (who doesn't exist on the local system)
How do I go about solving this problem? Thanks