I need to write to a file present in Linux system having a Samba server from a windows system through C# code. I am just in the stating phase of evaluation, so I don't have a linux system with samba server now to test my code. I found 2 useful links which fits my scenario very much. http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/03bf0cf2-be80-43a4-870c-83727dee1c63 and How to read shared file from Ubuntu/Samba using C#?
Now my problem is : My C# application is not fixed at particular system. Its a desktop application which can be present in any system across domains. Do I need to pass 2 username/passwords ? 1 for unix system and 1 for windows(client) system? How do I do that through code?