This has been causing me a few headaches lately, so hopefully someone can help me out.
I have a fileserver that has 4 hard drives mounted as directories in /fileserver. Their permissions are:
Code:
drwxr-xr-x 6 root root 4.0K Oct 3 2003 fileserver
$ ls -alh /fileserver/
drwxr-xr-x 5 root root 4.0K Mar 23 19:44 hdb
drwxr-xr-x 5 root root 4.0K Nov 1 19:05 hdc
drwxr-xr-x 10 root root 4.0K Apr 12 11:46 hdd
drwxr-xr-x 6 root root 4.0K Mar 30 21:34 hde
Their entries in /etc/fstab:
Code:
/dev/hdb /fileserver/hdb ext3 noatime 0 0
/dev/hdc /fileserver/hdc ext3 noatime 0 0
/dev/hdd /fileserver/hdd ext3 noatime 0 0
/dev/hde /fileserver/hde ext3 noatime 0 0
I plan to make 3 of them into a single RAID-0 drive in the future, but that's another post. Now in Samba I create a share, "Fileserver" as follows:
Code:
[fileserver]
force create mode = 777
comment = Fileserver
writeable = yes
create mode = 777
path = /fileserver/hdd
force directory mode = 777
directory mode = 777
/fileserver/hdd contains symlinks to other directories on the other drives.
As you might be able to tell, I want anyone on my LAN to be able to mount the share and have full read/write access without having to log in or have an account. Now, even
with logging in as it is now, I get permission errors when I try to write to the share. Is this because the actual directories are owned by root? I thought Samba would override that.
Basically what I'm asking is how do I need to set it up so that local computers can mount the /fileserver/hdd share and have full read/write access without an account?
Also if people want to share their fileserver setups I'd be interested in that as well.