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.
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.
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
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....
[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....
ASKER
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
smb.conf.txt
ASKER
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?
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.
ASKER
I tried that but its still not working
you probably have selinux enabled
post
/etc/sysconfig/selinux
and
/selinux/enforce
post
/etc/sysconfig/selinux
and
/selinux/enforce
ASKER
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?
What exactly is selinux?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I didn't actually try to configure SeLinux; instead I just disabled. When I have time I will try to configure selinux properly.
and the file permissions on the exported directories?