Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-01-2010, 12:20 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
create share folder password

Dear Expers,

I use samba to share folder in centos to windows.
How can i create a password for each share folder?
Below are my config of that share folder:

Comment = ShareFolder
path = /root/Desktop/share
browseable = Yes
read only = No
guest only = No
create mask = 0755

if i set 'guest only = yes' , then no need password to access
if i set 'guest only = no', when i access from windows , it prompt guest login and password. But i haven't set guest password

How can i set a specific password to access this folder?

Old 07-01-2010, 12:47 PM   #2
Senior Member
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,781
Blog Entries: 14

Rep: Reputation: 278Reputation: 278Reputation: 278
Unfortunately, it's probably not that simple. Permissions on folders depend on the user and group, and passwords are tied to users, not folders. So what you probably need is to make sure the authorized users have accounts on the centos machine with access to the folder. Look at the "By-Example" section in It'll walk you through some simple examples, I've found it very helpful, I hope you do too.
Old 07-01-2010, 02:45 PM   #3
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
man smb.conf

create a linux user/group that owns the shared directory and give that user a password.
place that user name into the "user =" parameter for that share.
Ensure that "guest only = no" is set for that share.

I think that should do it.

Also samba really requires you to read the whole manual as there a many many options to set everything.

Last edited by lumak; 07-01-2010 at 02:48 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to share a folder in suse 10.0, folder defaults to not shared sirius57 Linux - General 1 05-15-2010 03:33 AM
Squirrelmail: Query: CREATE "INBOX.Sent" Reason Given: Cannot create this folder. Chiragrs Linux - Server 2 03-10-2008 11:37 AM
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 10:09 PM
how to create a share folder kumary Linux - Networking 2 01-29-2006 04:27 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM > Forums > Linux Forums > Linux - General

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

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