Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6900491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:33:09+00:00 2026-05-27T07:33:09+00:00

I need to write to a file present in Linux system having a Samba

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:33:09+00:00Added an answer on May 27, 2026 at 7:33 am

    If it is possible for you to configure your Linux as you like, then you can configure the SAMBA share so that it doesn’t need a username or password at all. This has the drawback that anyone in the network can write and read your files.

    If you use the UNC path of the samba share (eg \\IP-address\sharename) than you don’t need to do anything special you can use the normal c# file system functions to access files by the UNC path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Both my Rails model and controller code need to write files to the file
I want to disallow access to file system from clients code, so I think
I need to write a rule to redirect any image file to a specific
I need to write an error log to a XML file using Visual Basic
I need to write an app that reads a config file with info on
Simply I need to write echo t${count} = $t${count} To a text file, including
I'm working with Quickbook's IIF file format and I need to write a parser
I need to have a newline every time I write to a file in
Do I need to malloc when creating a file to write to? The file
I'm trying to upload a file via URLConnection, but I need to read/write it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.