problems with script writing to network share
This has probably been answered adequately elsewhere in the forum, but I can't seem to find the answer I need.
I have a linux server which is set to load 3 windows shares on developer's machines through /etc/fstab with the following options: //dev1/projects /var/www/dev1/projects smb auto,user,exec,rw,async 0 0 When they load, they've only got write access to the root user. I have a script which updates these shares, but its unable to run as root. chmod/chown'ing the directory with permissions doesn't seem to help. Is there any way I can get my script to write to these shares? |
Are you able to mount the directories manually and able to write to them? I wonder if the user your using to open these shares have priveleges to write. You may also want to check that the user also has write priveleges to the directory on your windows box. Sometimes I forget that you need to check both the share and ntfs rights to the directory your sharing.
|
I can mount them if I do "sudo mount -a" and enter the password a few times. without sudo they won't mount. forgot to mention, i'm on Ubuntu/Debian.
|
All times are GMT -5. The time now is 03:28 PM. |