Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ionos-performance domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /homepages/36/d199566830/htdocs/app199566839/wp-includes/functions.php on line 6121

Notice: Constant WP_SITEURL already defined in /homepages/36/d199566830/htdocs/app199566839/wp-content/plugins/ionos-sso/inc/DisableUrlChange.php on line 19

Notice: Constant WP_HOME already defined in /homepages/36/d199566830/htdocs/app199566839/wp-content/plugins/ionos-sso/inc/DisableUrlChange.php on line 20
Sneakernet, revisited – And Then…

Sneakernet, revisited


In case you read my post, Email, the New “Sneakernet”, you might have been left wanting to know more about how to use Samba. There are plenty of sites and books dedicated to the topic, but here’s a quicky post on how to most easily use Samba.

To make your Linux, UNIX or Mac files available to Windows clients, do this:

  1. Make sure you have a reasonably recent version of Samba on your Linux, UNIX or Mac machine. 3.x is generally good; 2.x is not.
  2. Edit or create /etc/samba/smb.conf to look like this:
  3. [global]
    workgroup = WGNAME
    netbios name = MYMACHINE

    [SHARENAME]
    path = /PATHTOSHARE
    public = yes
    guest ok = yes

    Where WGNAME is whatever you want to use as your Windows “workgroup name”, MYMACHINE is your computer’s “netbios” (short, network) name — one that ideally matches your DNS name, SHARENAME is the public name of your “share” (for example, “BobsHomeDir”) and PATHTOSHARE is the file system path that you want to make available as that share (for example, “/home/bob”).

  4. After creating or editing the /etc/samba/smb.conf file, you must start/restart the smbd daemon. Do this with:
  5. /etc/init.d/smbd restart

    (Note: Different versions of UNIX, Linux and Mac OS X do this differently).

  6. To access the files shared in step 2, on your windows machine, type:
  7. net use * \\MYMACHINE\SHARENAME

    Replacing MYMACHINE and SHARENAME as needed.

Doing the reverse, accessing Windows files from Linux/UNIX/Mac is easier. You don’t need to configure anything or run any daemons:

  1. As above, make sure you have a reasonably recent version of Samba.
  2. Run the smbclient program from the command line. It’s arguments look like this:
  3. smbclient -U DOMAIN\\username //WINCOMP/SHARENAME

    Replace DOMAIN and username with the Active Directory short domain name and username of a user that has access to the computer whose files you’re trying to reach . Replace WINCOMP with the name of that computer. You can use its short, Netbios, name or its fully qualified DNS name (e.g. wfsshare or wfsshare.corp.mycompany.com). Replace SHARENAME with the name of the “share” on the Windows computer. Note the use of a double “backslash” when specifying the username and domain. When using the command line shell on Linux/UNIX/Mac, you typically need to type in two backslashes when you want one. The backslash is a special “escape” character and you need two of them to end up with just one. No kidding.

  4. The smbclient program will prompt you for the password of the username that you specified. Type it in.
  5. The program will display a prompt and wait for you to type a command. At this point, pretend you are in ftp. Use the ls command to list available files. Use cd to change remote directories. Use get to retrieve a file. mget is also useful because it supports wildcards. put and mput can be used to copy files from Linux/UNIX/Mac to Windows. Use bye to quit.

There is an alternative to using smbclient. You can use the “smb filesystem”. This approach lets you “mount” a Windows disk into the Linux/UNIX/Mac filesystem so that you can access its files like you would any local file. Here’s how you do that:

  1. Create a “mount point” in your file system. This is where you want your Windows files to appear. On Linux, the media directory is often used for flash drives and other transient “disks”. You might want to use it for this purpose, too:
  2. mkdir /media/fromwindows

    (Replace fromwindows with whatever you want).

  3. Use the mount or mount.cifs command to mount your Windows share to the mount point. I’d try the second form first:
  4. mount.cifs //WINCOMP/SHARENAME /media/fromwindows -o user=USERNAME,password=PASSWORD

    WINCOMP and SHARENAME are as used earlier. USERNAME and PASSWORD are the username and password of a user that has permissions to access the given Windows file share.

  5. If your system complains that it doesn’t know mount.cifs try this instead:
  6. mount -t cifs //WINCOMP/SHARENAME /media/fromwindows -o user=USERNAME,password=PASSWORD

If this doesn’t work, try substituting smbfs for cifs. If that doesn’t work, just email the damned files!

,

154 responses to “Sneakernet, revisited”

  1. 947929 484884Discovered your weblog and decided to have a study on it, not what I usually do, but this blog is great. Awesome to see a website thats not spammed, and in fact makes some sense. Anyway, wonderful write up. 386842

  2. 257892 966324Hi, you used to write outstanding articles, but the last several posts have been kinda lackluster I miss your super writing. Past few posts are just just a little out of track! 682877

  3. 186883 934327Really well written story. It will probably be helpful to everyone who utilizes it, as effectively as myself. Maintain up the good work – i will surely read far more posts. 407464

  4. 208498 871127Ive applied the valuable points from this page and I can definitely tell that it gives a lot of assistance with my present jobs. I would be quite pleased to keep finding back in this web page. Thank you. 792801

  5. 810947 255994Greetings! Quick question thats completely off topic. Do you know how to make your site mobile friendly? My internet site looks weird when browsing from my apple iphone. Im trying to find a template or plugin that may well be able to correct this problem. In case you have any suggestions, please share. With thanks! 419879

  6. 286066 587344I want to admit that that is 1 fantastic insight. It surely gives a company the opportunity to have in about the ground floor and really take part in making a thing unique and tailored to their needs. 93423

  7. 709326 210067Hi there, just became aware of your weblog via Google, and identified that it is truly informative. Im gonna watch out for brussels. I will appreciate in case you continue this in future. Lots of individuals will likely be benefited from your writing. Cheers! 556609

  8. 34142 468724Hmm is anyone else having troubles with the images on this weblog loading? Im trying to figure out if its a difficulty on my end or if it is the blog. Any responses would be greatly appreciated. 414667

  9. 450475 49580This is actually fascinating, You are a very skilled blogger. Ive joined your rss feed and look forward to seeking much more of your magnificent post. Also, Ive shared your internet internet site in my social networks! 814190

  10. 520250 243963This design is spectacular! You obviously know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job. I really loved what you had to say, and more than that, how you presented it. Too cool! 450313

  11. 268910 810384Hey, you used to write wonderful, but the last several posts have been kinda boringK I miss your tremendous writings. Past several posts are just a little bit out of track! come on! 710470

  12. 456671 217830Wow, amazing weblog layout! How long have you been blogging for? you make blogging appear straightforward. The overall appear of your web website is wonderful, let alone the content material! 868567

  13. 482501 458075Wow, wonderful weblog layout! How lengthy have you ever been running a blog for? you make running a blog glance easy. The total look of your internet internet site is magnificent, nicely the content material material! 570708

  14. 978467 752304Hey. Neat post. There is really a issue together with your web site in firefox, and you might want to check this The browser is the market chief and a large component of other folks will omit your excellent writing because of this issue. 173536

  15. 414734 667901If you happen to significant fortunate people forms, referring by natural indicates, in addition you catch the attention of some sort of envy in consideration of those types the other campers surrounding you which have tough times about this subject. awnings 440543

  16. 918542 296487Really man or woman speeches need to have to seat giving observe into couples. Brand new sound system just before unnecessary folks need to always be mindful of usually senior common rule from public speaking, which is to be the mini. best man speaches 687096

  17. 293547 156726This sort of wanting to come to a difference in her or his lifestyle, initial generally Los angeles Excess weight weightloss scheme is really a large running in as it reached that strive. weight loss 109307

  18. you’re truly a good webmaster. The site loading pace is amazing. It sort of feels that you’re doing any unique trick. In addition, The contents are masterwork. you have done a great activity in this subject!

  19. A person essentially help to make seriously articles I would state. This is the very first time I frequented your web page and thus far? I amazed with the research you made to make this particular publish amazing. Great job!

  20. If the CONEVAL forecast were to come to pass, it would be a sharp reversal of the progress made in recent years. According to the report, Mexico reduced extreme poverty to 7.4% of its population or to 9.3 million people by 2018, from 11% of the population or 12.3 million people a decade earlier.
    https://www.best373.com

  21. I think this is among the most significant information for me.
    And i am glad reading your article. But want to remark on few general things,
    The site style is wonderful, the articles is really great : D.

    Good job, cheers

  22. The collector head made direct contact during the event Tuesday — and then some. Over the course of the six seconds when the head touched down, it sank 5 centimeters into the asteroid’s surface. When the pressurized nitrogen gas bottle fired, designed to lift up material from the surface, the head sank an additional 24 to 48 centimeters into the surface material.
    https://www.qqueen700.com

  23. After looking into a few of the blog posts on your web page, I really like your way of blogging. I saved as a favorite it to my bookmark webpage list and will be checking back soon. Please visit my website too and let me know how you feel. https://www.bbdd66.com

  24. I wanted to post you that tiny remark to say thanks a lot over again just for the pleasant solutions you have featured in this case. It was really shockingly open-handed with you to grant publicly just what many of us might have offered for an ebook to generate some cash for themselves, most importantly given that you could possibly have done it if you ever decided. These inspiring ideas also served like the fantastic way to comprehend other people have similar eagerness like my own to know great deal more on the topic of this issue. I am certain there are millions of more fun opportunities in the future for individuals who look over your blog post.

  25. I needed to post you the very little remark to be able to thank you the moment again on your pretty suggestions you have provided on this page. This has been simply strangely open-handed with you to offer unhampered precisely what many people would’ve offered for sale for an ebook to help make some money on their own, particularly seeing that you might have tried it in case you desired. Those strategies in addition worked to become good way to know that some people have the identical keenness really like my personal own to realize much more when considering this matter. I believe there are several more pleasant sessions up front for people who read through your site.

  26. A lot of thanks for all your valuable hard work on this web page. Kim really likes getting into investigation and it’s really easy to understand why. Many of us know all of the dynamic medium you make invaluable steps on this web blog and as well as improve participation from people on that idea so our girl is certainly learning a lot of things. Have fun with the remaining portion of the new year. You are conducting a pretty cool job.

  27. I am glad for writing to make you know what a incredible encounter my friend’s girl gained studying your web site. She learned plenty of pieces, which include what it’s like to possess an awesome helping nature to let other folks very easily know just exactly several multifaceted subject matter. You truly exceeded people’s expectations. Thank you for presenting these powerful, safe, explanatory and in addition fun tips about this topic to Julie.

  28. Thanks for the suggestions about credit repair on this particular web-site. The things i would offer as advice to people is usually to give up this mentality that they buy at this point and fork out later. As being a society most of us tend to make this happen for many factors. This includes trips, furniture, in addition to items we’d like. However, it is advisable to separate one’s wants from the needs. As long as you’re working to raise your credit ranking score you really have to make some trade-offs. For example you may shop online to economize or you can check out second hand outlets instead of high priced department stores intended for clothing.

Leave a Reply

Your email address will not be published. Required fields are marked *