LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 07-01-2010, 01:20 PM   #1
sanastar
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:

[ShareFolder]
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?


Thanks.
 
Old 07-01-2010, 01:47 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.16.2
Posts: 1,571
Blog Entries: 13

Rep: Reputation: 182Reputation: 182
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 www.samba.org It'll walk you through some simple examples, I've found it very helpful, I hope you do too.
 
Old 07-01-2010, 03:45 PM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
man smb.conf
http://www.samba.org/samba/docs/man/...VALIDATIONSECT

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 03:48 PM.
 
  


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 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 04:33 AM
Squirrelmail: Query: CREATE "INBOX.Sent" Reason Given: Cannot create this folder. Chiragrs Linux - Server 2 03-10-2008 12:37 PM
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 11:09 PM
how to create a share folder kumary Linux - Networking 2 01-29-2006 05: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 03:26 AM


All times are GMT -5. The time now is 06:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration