Sunday, July 30, 2006

Win XP Shares

Since i had my part of Harddisk failures i implemented a backup system (rsync and cron) to my linux server to prevent any dataloss. But i had some error messages and never got the time to look into that matter, until today.

I was never sure if it is a Windows or a samba problem but first what my script does:
1.) connect a windows share through samba mount.
2.) backup via rsync the data to my linux system
3.) disconnect.

So everythin i have to do is to share a directory under xp and that's all... or is it not. Working through my google results i learned that there are some difficulties to think of. First: i don't like the guest account and i left it disabled. I just used the "easy" sharing model of xp and that worked fine.

Ok, so where is the Problem: The Problem is when you are sharing directories under a folder that is not accessible by everyone (for example, individual folders under "Documents and
Settings").

Although i clicked on share this Directory and User have all rights, windows don't give you this rights. You have to disable the "easy sharing" model and then go to the folder permissions (of the shared directory) and on the security Tab.

There you can find a setting which tells that if there are permission settings on the parent directory (which there are for Documents and Settings) it will use them instead of anything else. Which meant: Nobody has rights on that Directory except the User who owns the individual parent folder...

%$&!! only windows can be so complicated. That's why i like linux. You tell the right permission to a folder and that's all, nothing more....

So all you have to do is to disable that parent overwrite.. (or to be exact: enable the overwrite parent settings checkbox).

Now i don't get any permission denied errors anymore!

No comments: