Samba Shares with Restricted Access

hi there this is not a reply to this question, but another question… if you guys could point me in the right direction… I would like to know how to setup a folder shares in the root of opensuse with a user and password that only that user has full rights to that folder… I can share folders files etc but I wish to make them private, to others user…

Regards
jabesza

On 09/11/2012 03:26 PM, Jabesza wrote:
>
> hi there this is not a reply to this question, but another question…

please do not post a new question buried inside a different thread…it
just gets the thread all confused with answers to questions that may not
exist

please ask your question in a new thread with a subject which is
related to your question.

thanks


dd

Make a directory e.g. fedreserve in the root with this command:

sudo mkdir /fedreserve

Make it owned by your user e.g. obama:

sudo chown obama:users /fedreserve

Add user obama to the Samba user database and give her a password with this command:

sudo smbpasswd -a obama

Create the share profile in the Samba configuration file to look like this:

[TheFunds]
path = /fedreserve
read only = no
force user = obama
valid users = obama

Only obama will be able to access fedreserve. If you want to make subtleties, look here: Secure Read-write Shares; no Guest Access (requires authentication)
and here: Special Purpose Modifications for Enhanced Privacy and/or Security

I will move this new thread to a new thread location in maybe 10 minutes, don’t fret dd

Thread has been moved to here: http://forums.opensuse.org/english/get-technical-help-here/network-internet/478281-samba-shares-restricted-access.html

thanks mate I will give it a try… I could kiss your feet! :X

I’ve sent my address in a PM