Link to home
Start Free TrialLog in
Avatar of jlewi2009
jlewi2009

asked on

Samba Access Problems

I'm trying to set up Samba and am having access issues.

I can only share directories in /usr and /tmp; i.e I cannot share my home directory. That is if I create a share for /home/tom    then if I try to access /home/tom on a windows machine I get access denied.

So I created a directory /usr/data  and I share this. This directory is visible on Windows but I cannot write to this directory; I get an access denied issue.

My samba server is Fedora 11. I've tried windows XP and Vista Clients. I've tried mounting it on linux and have the same issues.

Avatar of nabeelmoidu
nabeelmoidu
Flag of United States of America image

can u post smb.conf
and the file permissions on the exported directories?
Avatar of jlewi2009
jlewi2009

ASKER

I'm attaching my smb.con file.
The share I'm trying to export is /usr/onenote
I've played around with a bunch of different settings hence the comments

The file permissions on /usr/onenote are
drwxrwxr-x.

I have tried recursively giving read/write/execute access to everyone.
smb.conf.txt
In the smb.conf, at the end of the file for example, you should create the share information. Something that looks like this:
[onenote]
   path = /usr/onenote
   valid users = tom dick harry nobody
   public = yes
   writable = yes
   printable = no
   create mask = 0777

Stop and start the Samba service.
Try it and let us know....
I followed OOsorio's instructions (see attached smb.conf file) and got the same response; i.e access denied when trying to write.
smb.conf.txt
Should it be writeable or writable?
I tried both and neither seemed to work.

When I run testparm here's what I get

[onenote]
      comment = samba test share
      path = /usr/onenote
      valid users = jlewi, nobody
      read only = No
      create mask = 0777

Does it make sense that it is not showing the writeable and public attributes as being set?
Yes. Try changing the permission settings of the folder to 777 as well and test.
I believe it's writable.
I tried that but its still not working
you probably have selinux enabled
post
/etc/sysconfig/selinux
and
/selinux/enforce

I disabled selinux and rebooted. It appears to be working now. Is there a proper way to configure selinux without disabling it?

What exactly is selinux?
ASKER CERTIFIED SOLUTION
Avatar of nabeelmoidu
nabeelmoidu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I didn't actually try to configure SeLinux; instead I just disabled. When I have time I will try to configure selinux properly.