Mounting a network drive so a normal user can rwx it
At work I wrote a script for my boss so he can mount a shared folder from a machine running xp. I set up sudo so he could use the mount command and the script does something like
sudo mount -t smbfs //CompName/Folder /mount_drive -o username=uname
And then it prompts him for the password on that computer. Works great right? Almost.
When it is mounted the mount_drive and all of the files are root owned and everyone else has read and execute permissions but no write permissions.
Is there anything that can be done to make that directory and those files be owned by someone other than root?