LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2014, 04:50 AM   #1
tonytj
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Rep: Reputation: Disabled
How to password protect a folder in samba


I have been google and try a lot of examples and neither work as I want.

I want to have a password protected folder for a single user.

So when a user try to access this fileshare from Windows it must autenticate himself with a password before giving full access rwx access to the fileshare.

At the moment I run Linux Debian in virtual box in Windows Vista.

Can somebody help with the configuration of smb.conf so this works.

//Tony
 
Old 10-31-2014, 06:29 AM   #2
tonytj
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found a solution that works and I use this settings

[mnt]
comment = only valid for nisse
path = /mnt
public = no
guest ok = no
writeable = yes
browseable = yes
valid users = tony
host allow = 192.168.1.110
host allow = tony-dator
create mask = 0700
directory mask = 0700
 
Old 10-31-2014, 05:24 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,175

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Thanks for the update and solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect folder with password loveulinux Linux - Newbie 6 09-20-2011 12:53 AM
password protect folder anshutyagi Linux - Newbie 2 04-25-2011 03:01 AM
How to password protect a folder in samba? Jon W Linux - Server 6 10-27-2009 07:57 AM
Password protect folder? sall Linux - Security 4 07-18-2005 06:57 PM
Password Protect Folder?? sall Linux - Software 5 07-18-2005 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration