Okay so I decided to turn my NAS over from Windows Server 2003 to Ubuntu 11.04 Desktop. This was a big leap for me as I'm still quite new to Linux, but I thought it'd be worth it. I've got everything working pretty good such as Apache2, SSH and converting my disks to ext4.
My problem however is Samba. I've got it to share out my hard drives okay but haven't got effective permissions just yet. All drives and the documents storage folder have write permissions by everyone at the moment but I'm the only one that really uses them in the LAN. What I need to do is be able to do what can be done on Windows Server, create a share, set who can access it (user or group) and then under Windows Explorer change folder permissions so say Elliot can access the share and folder Stuff but Sandra can access the share and not Stuff. Which is easy enough on Windows but I need the folders under that share to work the same with Samba. Here is how the drives are mounted and where the documents folder is located:
"Samba share name" at "mount/folder"
"datastore1" mounted at "/srv/ds1"
"datastore2" mounted at "/srv/ds2"
"datastore3" mounted at "/srv/ds3"
"documents$" located at "/srv/ds1/userdata"
All drives mounted with full read/write permissions. I need the separate users folders in the documents folder only accessible by root and that user. I managed to do this with chown and chmod in the terminal but this only applies to the local system and not Samba. I was thinking separate shares for the users but if I wanted to create a folder somewhere in the data drives such as "Administrators" then I would need separate folder permissions under that share.
Anyone got any ideas?
Thanks,
dglad4.
Bookmarks