Tuesday, October 23, 2012

Setuid/gid script is writable by world. when executing a perl script on a cifs mount

Wow. It took me a few hours to figure this out. Doing search after search on Google but did not find any solution. By chance, I saw the 'file_mode' and 'dir_mode' in the Google search results. I set them to 0777 and the script started to run fine.

Here is what I used:

mount -t cifs //servername/sharename -o username=username,password=password,file_mode=0777,dir_mode=0777 /mountpoint


-->

No comments:

Post a Comment