Samba Shares - ARGH!


Recommended Posts

I've been reading up on samba shares. So I popped CentOS onto a VM and got busy.

At first I tried configuring it all myself using smb.conf ... the result was my windows pc would see the share, log in, but would not show the contents of the shared folder, or allow me to write with it.

So I gave up, reformatted, and used webmin instead.

I've got the same result.

I've checked unix user permissions, ownership, samba user/passwords. It's definitely writeable. Windows will open the folder, but not show the contents or allow me to write to it. I just get "This folder is empty" from windows explorer

:(

Help?

Link to comment
https://www.neowin.net/forum/topic/1068892-samba-shares-argh/
Share on other sites

1. Look at this: http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html

Also, is it possible to right click a folder on the desktop and click Share Folder?

If all of this fails (in fact try this first) chmod the folder to 777 (bit of a security risk but heh). So chmod 777 <folder name/path>

1. Look at this: http://www.cyberciti...nder-linux.html

Also, is it possible to right click a folder on the desktop and click Share Folder?

If all of this fails (in fact try this first) chmod the folder to 777 (bit of a security risk but heh). So chmod 777 <folder name/path>

1st link seems to be the wrong way round. I'm trying to share a folder from CentOS to Windows.

2nd no, terminal only.

3rd already tried

Did you check the logs? ;-)

I'm not quite sure where CentOS keeps them but SLES/SuSE has them in /var/log/samba/log.smbd

Just tail the file when trying to access the directory.

Logs - wiped them then logged in and tried to copy a file.


[2012/04/08 06:34:37.200963, 1] smbd/service.c:1251(close_cnum)
__ffff_192.168.1.84 (::ffff:192.168.1.84) closed connection to service share1
[2012/04/08 06:34:37.215009, 1] smbd/service.c:1251(close_cnum)
__ffff_192.168.1.103 (::ffff:192.168.1.103) closed connection to service share1
[2012/04/08 06:34:37.217456, 1] smbd/service.c:1251(close_cnum)
__ffff_192.168.1.84 (::ffff:192.168.1.84) closed connection to service share1
[2012/04/08 06:34:37, 0] smbd/server.c:1140(main)
smbd version 3.5.10-114.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/04/08 06:34:37.951673, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2012/04/08 06:34:37.971517, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2012/04/08 06:34:38.302699, 1] smbd/service.c:1070(make_connection_snum)
__ffff_192.168.1.84 (::ffff:192.168.1.84) connect to service share1 initially as user smbuser (uid=500, gid=500) (pid 4551)
[2012/04/08 06:34:38.442723, 1] smbd/service.c:1070(make_connection_snum)
__ffff_192.168.1.103 (::ffff:192.168.1.103) connect to service share1 initially as user smbuser (uid=500, gid=500) (pid 4552)
[2012/04/08 06:34:44.387638, 1] smbd/service.c:1070(make_connection_snum)
__ffff_192.168.1.84 (::ffff:192.168.1.84) connect to service share1 initially as user smbuser (uid=500, gid=500) (pid 4551)
[/CODE]

Have you mapped the smbuser to a local user or do you have an account on the centos boxed called that?

It's clearly a permission issue or a user mapping problem.

User on CentOS box called smbuser. Passwords on the centos box match with smbpasswd. Logging in on the windows box with the correct credentials.

There was one thing that popped into my mind, since I remember RedHat/CentOS using SELinux, this might help you;

http://wiki.centos.o...wTos/SetUpSamba

Take a peek at 2. SELinux

If it's merely a test box, you could also just try disabling SELinux (you should not do this on a production box however!)

There was one thing that popped into my mind, since I remember RedHat/CentOS using SELinux, this might help you;

http://wiki.centos.o...wTos/SetUpSamba

Take a peek at 2. SELinux

If it's merely a test box, you could also just try disabling SELinux (you should not do this on a production box however!)

You utter genius!

Works perfectly, thank you very much indeedy!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • HOLY THREAD REVIVAL   But yes, look for browser.nova.enabled and set it to true
    • 5-year subscription to AdGuard VPN price-dropped now 90% off by Steven Parker Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where you can save 88% off a 5-year subscription to AdGuard VPN. In the digital age where internet privacy is paramount, AdGuard VPN emerges as an essential tool. This virtual private network (VPN) is your encrypted gateway to the internet, helping your data stay secure and your online activities remain private, regardless of your location. More than just a privacy tool, AdGuard VPN is a robust solution packed with features that cater to a variety of internet needs. Why AdGuard VPN subscription deal over other VPNs: Exhaustive List of Locations: With 60+ locations available worldwide, you have the freedom to connect from anywhere you want, effectively bypassing geographically restricted content. Check complete list of servers here. Advanced Security Protocol: AdGuard VPN uses its own security protocol, guaranteeing a faster and safer VPN connection. This means you can browse, stream, and download with peace of mind knowing your data is secure. Zero-Logging Policy: Rest assured, your personal data is not collected and your internet traffic stays private at all times, thanks to AdGuard's strict zero-logging policy. Simultaneous Connections: Connect up to 10 devices simultaneously, providing protection for all your devices under just one account. Trusted Developer: AdGuard is a renowned name in the world of computer security, bringing their expertise and commitment to privacy and security to their VPN service. What You Get: Up to 10 devices connected simultaneously All locations Light-speed servers Unlimited data No logs policy Trusted developer Available on all platforms Privacy Created by a team from Russia, AdGuard software Limited is headquartered in Limassol, Cyprus. While the country does follow European privacy laws, it's not part of the 5/9/14 Eyes Alliance. Adguard may not properly work in China. Good to know Length of access: 5 years This plan is only available to new users Redemption deadline: redeem your code within 30 days of purchase Device per license: 10 Access options: desktop & mobile Updates included 5- years of AdGuard VPN normally costs $359.40 without discounts, but it can be yours just $39.97, that's a saving of $324.43 (90%) off. For full terms, specifications, and license info please click the link below. Get this 5-year AdGuard VPN deal for just $34.97 (was $359.40) Although priced in U.S. dollars, this deal is available for digital purchase worldwide. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • KillerPDF 1.5.1 by Razvan Serea KillerPDF is a lightweight, portable PDF editor for Windows built for users who want full control without subscriptions, installers, or telemetry. It runs as a single executable, making it ideal for USB use and field work. You can view PDFs with smooth PDFium rendering, navigate quickly with thumbnails, zoom, and shortcuts, and reorganize pages using drag-and-drop. It supports merging multiple PDFs, splitting documents, and extracting selected pages. KillerPDF also allows inline text editing with font matching to preserve the original layout, plus annotations like text boxes, freehand drawing, highlights, and reusable signatures. You can search full text, copy content easily, and print documents with flattened annotations. Designed as a free and open alternative to bloated PDF tools, it works fully offline on Windows 10/11 x64. No runtimes install. Everything needed is inside the EXE (targets .NET Framework 4.8, which ships with every supported Windows release). KillerPDF key features: High-quality PDF rendering via PDFium Edit PDF text inline (double-click to modify text) Page thumbnails and fast navigation with zoom and shortcuts Merge multiple PDFs into one Split PDFs and extract selected pages Drag-and-drop page reordering Font matching to preserve original document appearance Text boxes for notes Freehand drawing tools Highlight overlays with adjustable color, size, opacity Undo actions and clear per-page annotations Create, draw, and save reusable signatures Click-to-place signatures anywhere Full-text search with highlighted results Drag-select or Ctrl+A to copy text Print with annotations flattened Portable single-file app (~10 MB) No installer, no admin rights required No account, no telemetry KillerPDF 1.5.1 changelog: Performance Save Flattened PDF now uses multiple CPU cores. Page rasterization is parallelized (PNG encoding runs across cores; the PDFium render step stays serialized since the library isn't thread-safe), so large documents flatten significantly faster while the UI stays responsive (#68). Fixed PDFs that failed to open with "Unexpected EOF" now open (#72). The failure was PdfSharpCore's Flate inflater (SharpZipLib) rejecting the FlateDecode cross-reference stream on multi-revision PDFs - files that open fine in browsers, Acrobat, and Foxit. KillerPDF now detects this and re-opens the file losslessly through PDFium, preserving selectable text. Thanks to @javajon for the report and a detailed reproduction. Grid view renders every page. It was capped at the first 26 pages, so longer documents stopped loading partway through. Tiles also stream in progressively now instead of blocking until the whole document is rendered. Grid Ctrl+Scroll no longer reloads every page when the zoom is already at its limit and nothing would change. Removed a stray horizontal scrollbar (a thin green line) that could appear across the bottom of grid view. Files on UNC / network shares (including the WSL \\wsl$ filesystem) are copied locally before opening, avoiding partial-read failures on network filesystems. Changed Minimum zoom lowered from 10% to 5%, so grid view can pack more columns (helpful for wide/landscape pages) and single-page view can zoom out further. Download: KillerPDF 1.5.1 | 6.3 MB (Open Source) Link: KillerPDF Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You can enable the Nova redesign in Firefox 152 stable, under about:config.
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      520
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      111
    4. 4
      Steven P.
      89
    5. 5
      Nick H.
      71
  • Tell a friend

    Love Neowin? Tell a friend!