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

    • Marshall Major V Bluetooth headphones are now up to 47% off on Amazon by Ivan Jenic The Marshall Major V in Midnight Blue is currently $89.99 on Amazon, down from $169.99. That's 47% off and $80 saved on a pair of wireless on-ear headphones from one of the most recognizable names in audio. The Major V is Marshall's take on a long-lasting everyday headphone. The headphones deliver 100+ hours of wireless playtime, which puts them in a completely different category from most Bluetooth headphones that hover around 30-40 hours. You’re charging this thing once a week at most, and with wireless charging supported, you don’t have to worry about additional cables. Marshall promises its signature sound profile, with strong bass, smooth mids, and clear highs. There’s a customizable M-button, which you can set to quickly access Spotify Tap, your EQ settings, or a voice assistant. The design is foldable and lightweight at 186 grams, so it’s easy to pack for travel. And finally, the faux leather finish gives the Major V a sleek, premium look. At $89.99, the Major V Midnight Blue is a genuinely strong buy for anyone who wants a reliable daily headphone without paying premium prices. It’s also worth mentioning that the Cream and Brown variants are also discounted to $89.99, though from a lower original price of $99.99. Marshall Major V Midnight Blue - $89.99 | 47% off on Amazon This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • +1 on XVI. I still use it. 
    • Age 16, old enough to get a full-time job, your own bank account, a passport, get married, even join the military and go to war. But talking to your friends on the internet? Oh hell no!
    • I remember when all games had demos; it was a normal thing, not a limited time promotion.
    • Forza Horizon 6 gets big bug-fixing and balancing update by Taras Buria Today, Playground Games released a big Forza Horizon 6 update with a long list of fixes, patches, and balancing tweaks that the studio promised earlier. Version 375.327 is now available on Steam, Microsoft Store, and Xbox, offering users improvements for AI, audio, design, performance, road discovery, upgrades, visuals, online play, and more. Some of the most notable changes in the Series 2 update include rebalanced drivatars, particularly their difficulty and race start behavior. As such, the game should be more balanced on higher difficulty levels, and AI cars should not shoot out when the race starts as if they have rocket boosters. Speaking of difficulty, developers nerfed Drag Tires physics for a more expected and realistic behavior. They are no longer the go-to option for record-breaking times in road racing, and all leaderboard entries with drag tires will be removed. Completionists will also be glad to get a new feature that lets you see road discovery percentage in each region, which should make discovering all roads easier while keeping it quite challenging and interesting (I spent quite a long time finding the last road). Festival Playlist is also getting some much-needed fixes, including patches for bugs that allowed completing Seasonal Jobs ahead of time or where weekly challenges would not unlock for some players. Developers will retroactively give reward points to all who could not complete all challenges due to these bugs. Other changes include changes to Horizon Play progression so that it is easier to reach Level 100, audio improvements on lower-spec devices, fixes for visual glitches, including pixelated smoke, and more. Developers also addressed the currently non-working Eliminator, an online mode gamers used to farm credits with a Hummer EV exploit. Playground Games plans to re-enable it soon. As a gesture of goodwill, players will get a free McLaren Sabre. Those who used the exploit will not be banned, but developers plan to roll back credits to a maximum of 10M for all who farmed credits using the exploit. You can find the complete changelog for the latest Forza Horizon 6 update here.
  • Recent Achievements

    • Reacting Well
      Almohandis earned a badge
      Reacting Well
    • First Post
      Cosminus earned a badge
      First Post
    • One Year In
      ThatGuyOnline earned a badge
      One Year In
    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • Week One Done
      rolfus earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      484
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      122
    4. 4
      Steven P.
      83
    5. 5
      neufuse
      73
  • Tell a friend

    Love Neowin? Tell a friend!