Samba Confusion???
I've installed a second hard disk on my server at home to be used as a public file sharing location for my local network.
I edited fstab so that the hard disk (sdb1) gets mounted at /media/sdb1. I then created the folder /media/sdb1/Storage and changed it's ownership to nouser.nogroup and set permissions to 777. I edited /etc/samba/smb.conf and appended this to the end:
[Storage]
path = /media/sdb1/Storage
public = yes
create mask = 0600
directory mask = 0600
guest ok = yes
writable = yes
#inherit permissions = yes
#force create mode = 0600
#force directory mode = 0600
(the lines commented out are options I was experimenting with, but didn't seem to do what I wanted)
My questions are:
1) When I change the file permissions of Storage to 666 the share can no longer be accessed, it seems to only work when it is set to 777, but I don't want this folder to have any execution permissions, so why can't local network users access this share when permissions are 666?
2) When I copy a file, say /var/log/messages into the share they retain the permissions and ownership that they originally had, in this case root root and 600, if I remember correctly. How can I make it so that any file moved into this folder, whether it be from the server box or a local computer on the network, automatically receive permissions of 666 and ownership nobody.nobody?
3) Is it possible so that I can make the files in the share readable and retrievable, but that they can't be written to, or deleted?
Thanks in advance,
Johnny
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask jbowen7 for more information if necessary.