frente69
February 16th, 2010, 07:08 PM
Hi,
I am building a headless ubuntu nas.
I have been making a script to do the following:
- create soft raid array
- create default folders
- install and configured supporting services like minidlna, torrent, mysql, apache etc etc etc etc
- install/create web guis for supporting services
- create users and groups
- create shares and set permissions
The last point is where i am having issues. As this is a nas device the only real permissions I want to fiddle with (after initial setup) are the samba shares.
I am having problems getting the correct combination.
I have a folder at /data(a link to the raid array) where all the shares are going to be kept.
So i thought i could just create the subfolders and then "chmod -R 666 /data"(current owner is root) and then add the shares to /etc/samba/smb.conf like so:
[documents]
comment =
path = /data/documents
browsable = yes
public = yes
invalid users = guest
read list =
write list = @"administrators",@"documentusers"
valid users = @"administrators",@"documentusers"
inherit permissions = yes
[public]
comment = Full Read Write for Everyone
path = /data/public
browsable = yes
writable = yes
public = yes
[downloads]
comment = Downloaded files
path = /data/downloads
browsable = yes
public = yes
writable = yes
but it doesn't seem to work. It won't let me access the shares from Win7.
Can anyone help me please?
PS
- I know setting 666 is considered a security risk but this is what companies like QNAP seem to do to simpilyfy permissions management
- I have a Qnap 209 which is where i am taking my design insperation from.
I am building a headless ubuntu nas.
I have been making a script to do the following:
- create soft raid array
- create default folders
- install and configured supporting services like minidlna, torrent, mysql, apache etc etc etc etc
- install/create web guis for supporting services
- create users and groups
- create shares and set permissions
The last point is where i am having issues. As this is a nas device the only real permissions I want to fiddle with (after initial setup) are the samba shares.
I am having problems getting the correct combination.
I have a folder at /data(a link to the raid array) where all the shares are going to be kept.
So i thought i could just create the subfolders and then "chmod -R 666 /data"(current owner is root) and then add the shares to /etc/samba/smb.conf like so:
[documents]
comment =
path = /data/documents
browsable = yes
public = yes
invalid users = guest
read list =
write list = @"administrators",@"documentusers"
valid users = @"administrators",@"documentusers"
inherit permissions = yes
[public]
comment = Full Read Write for Everyone
path = /data/public
browsable = yes
writable = yes
public = yes
[downloads]
comment = Downloaded files
path = /data/downloads
browsable = yes
public = yes
writable = yes
but it doesn't seem to work. It won't let me access the shares from Win7.
Can anyone help me please?
PS
- I know setting 666 is considered a security risk but this is what companies like QNAP seem to do to simpilyfy permissions management
- I have a Qnap 209 which is where i am taking my design insperation from.