![]() |
SAMBA - unix user created, added to samba, and valid users on share, still cannot...
Okay, so I run a samba fileserver here at home for photo backups and what not. I'm working on adding a few account to some of the shares.
I went ahead and created a unix user, i then did "sudo smbpasswd -a <username>" and added the user to the valid users portion of the share. I rebooted samba and, those users still cannot access the samba shares, while my account works just fine. Note: i chmoded the root of the shares to 777, after making the shares (rebooted samba) and still have the problem. What could be wrong? Thanks in advance. |
what are the permisions of the files under the root of the share?
|
i chmoded the root folder of the shares to 777.
|
Also set the sticky bit on the directory. (This won't fix the problem, but is a step you missed)
Can the other users view files in the share or are they denied access? Post your smb.conf file. Your post implies you are using "Security = User". Is this correct? When you access your own share, are you doing so from a different computer? If you are access it from the Samba server, the problem could be due to your firewall settings. |
May be you need to check your SELinux context for samba.
|
Quote:
but how about the files or dictories that root contains? also are you able to access the share from the machine running smbd? |
I went through and did a recursive ChMod on the root folders, the problem persists exactly as described initially.
Code:
root@zango:~# chmod -R 777 /media/sdb1
Hopefully this will help you help me figure out what exactly is wrong. Thanks, MJ Here is my smb.conf Code:
# |
Quote:
As you have disabled the browseable option to no, users can't access these shares. Set browseable=yes and then restart the smb service. See if it works.......... |
Thanks for the recommendation, I tried that, but it didn't solve it.
Just a thought: From what I understand browseable sets visibility, so you have to know the name of the share to access it. -At least thats how it worked for me in the past; I'm sure there is something I did that I am forgetting, not to mention that KateShare was already browseable and that share is included in the problem. has anyone successfully done what i'm trying to do? If so, can you tell me what you did, maybe I'll see a mistake i made. Thanks, |
Quote:
Can you please post the command you are using to access samba shares, along with the error message. |
In Ubuntu, "Places" --> "Connect to Server" ---> ServiceType: Windows Share, Server: Zango, share: McL, I enter the password when prompt comes up.
I've also tried mounting in Windows 7 "net use x: \\zango\mcl In Ubuntu, I don't get an error, it just doesn't quit popping up the password prompt. Again, with my credentials either of these methods work fine. |
Can you please connect with smbclient with debugging enabled? Level 2 should do the trick. Something like:
Code:
smbclient --debuglevel=2 //zango/mcl |
I finally got it, the problem was in my fstab, as i am sharing the root of some partitions, you may have noticed the shares were /media/whatever. As it turns out I was mounting the drives with the equivalent of chmod 007, so only i could see anything. I changed my fstab to not include this restriction or a group requirement.
Thanks for your help! - |
| All times are GMT -5. The time now is 07:32 AM. |