Discussion Locked

Samba

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have Samba installed and running, and I am trying to share a folder. The problem is I can't save anything to the folder via Windows because it come back with an error about folder has only read permissions. I am using SWAT to set it up. I can get to the folder from NT just can't save anything to the folder. Any idea to what I am missing.

Thanks

9 replies

by kevin anderson

If Samba is sharing the folder as read/write, then check to see the permissions on the folder itself in Linux. Write down the current permissions and then Chmod it to 777. If that fixes the problem, then you know where the error is. If not, put it back, and assume I work with too much crazy glue.

Kev.

by mckaytech

I can't comment on how it works with SWAT, but my smb.conf looks like this for the shared public directories:

[conf]
comment = Web and FTP configuration files
path = /etc
read only = no
public = yes

However, to make this work, I still had to create a user account in Samba. I set that up to match my NT user id and password and now when I logon to the domain, I have full access to the Samba shares.

If you would like a copy of my full smb.conf, I would be glad to sendit to you.

paul

by lintadsl

Two things that I would like to let you know.

1)If you don't worry about security...do this. In smb.conf, make sure you see this line.

security=share

2) make sure the ownership of the folder is
nobody and group also nobody. You can change it using this command.

chown nobody:nobody "Foldername"

Hope this help.

Good luck.

by admin

SWAT is pretty cool, but try this manually.

Find
smb.conf
Probably the path is something like:
/etc/samba.d/smb.conf

Then go down to the Share Definitions section. It will probably look similar to this:

path=
valid users=
only user=browsable=
writeable=
create mask=

Check where it says: "writeable=" and if it says "no", change it to "yes"
In fact, I would even try changing it anyway and re-entering "yes" just i case. Then, of course kill and restart.
Make sure the folder is chmod to a share level too. You can try 777 for troubleshoting, but then set it to something reasonable for your enviroment if it works.

If you have questions, give me a "holler" :)

This discussion is closed to new replies.