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

    • If I could, I would commemorate it the best way possible: Replacing old machines that are still running Windows XP with something more modern, stable and better.     Noone and nothing should be running Windows XP in 2026.
    • Google's new hand-wave reCAPTCHA can be bypassed with a stock photo by Ivan Jenic Image: Screenshot Google is testing a new reCAPTCHA method that asks you to wave at your camera to prove you're human. So, besides solving puzzles and reading distorted text, you can now use your computer’s camera to pass the verification test. When the hand gesture verification is triggered, your browser asks for camera access and prompts you to perform a simple gesture, like a wave or an open palm. Google says it records a short video of the movement and uses AI to extract 21 hand-knuckle coordinates to complete the verification process. The video is then immediately deleted, and Google swears it doesn't keep it. The process alone can be uncomfortable for people who wouldn’t want their biometric data, which hand scans technically qualify as, recorded. But it gets even more nuanced, as early testers discovered that the new hand-waving reCAPTCHA can be passed with a simple stock image. A user on X tested the new challenge using a stock image of a hand fed through OBS Virtual Camera, and it passed. I wanted to verify it, so I tried the same thing. It took me a few tries and a few stock images, but in the end, I was also able to pass the test. I simply had to readjust the stock image of a generic person waving inside OBS, and Google’s mechanism registered it as a legitimate hand gesture. Once again, it didn’t even have to be a video or an AI-generated hand animation. Given the simplicity of the process, the entire action can be automated in minutes. All it takes is a simple Python script to render the new reCAPTCHA method obsolete. And it doesn’t even have to be an AI bot, which is usually used for solving puzzles and other verification methods. The new reCAPTCHA method is still in its early phase, and Google will, hopefully, update its AI to at least reject still images. However, this incident, combined with users’ initial skepticism about Google’s practices regarding user data, likely won’t make too many people wave at the camera anytime soon.
    • 🤣🤣🤣🤣🤣 "to fund healthcare and tuition" 🤣🤣🤣🤣 Who do you think you are talking about, some COMMUNIST? We are better than them, doG bless Murica!!! p.s. I'm from a country where government does exactly that, i.e. not form US.
    • Apparently not. I know it is on Edge for business at the moment, but how long will it be before it become on the home version of Edge?
  • Recent Achievements

    • First Post
      carols23 earned a badge
      First Post
    • One Month Later
      Tom Willson earned a badge
      One Month Later
    • Apprentice
      Asgardi went up a rank
      Apprentice
    • One Month Later
      sunrisea2milk earned a badge
      One Month Later
    • Week One Done
      sunrisea2milk earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      +Edouard
      255
    3. 3
      PsYcHoKiLLa
      152
    4. 4
      Steven P.
      90
    5. 5
      macoman
      66
  • Tell a friend

    Love Neowin? Tell a friend!