Sharing samba-folder with root access
Posted
by
Industrial
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Industrial
Published on 2011-02-27T13:01:36Z
Indexed on
2011/02/27
15:31 UTC
Read the original article
Hit count: 269
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.
© Ask Ubuntu or respective owner