Sharing samba-folder with root access
- by Industrial
Hi everyone,
I have a staging server in my network running Ubuntu server 10.10, being my main development area. As I need to access the files in the Apache root from other computers in the network, I have setup samba with the following settings:
[www]
comment = Apache root www
path = /var/www
writable = yes
force user = root
force group = root
On the host computer, running Ubuntu 10.10 desktop, I am trying to mount the drive with a bash file looking like below:
#!/bin/bash
sudo mount -t cifs //192.168.1.5/www /media/www/ -o username=myusername,password=mypassword,rw,iocharset=utf8,file_mode=0777,dir_mode=0777
What happens is that I get mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) thrown in my face whilst trying to execute the mount.
I've done exactly the same, with exactly the same smb.conf & mount-bash file on another computer in my network, but this just wont work.
What am I doing wrong? I am running out of ideas.