LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-08-2007, 12:48 PM   #1
texas_44
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
add windows user to samba share


I have a samba share and do not know how to grant a windows user access

[spout]
path = /app/safepay/outbound
browseable = no
create mode = 750
directory mode = 750
user = @safepay
only user = yes
valid users = @safepay
comment = Safe Pay Outbound
write list = @safepay



Can someone tell me how to add a user to this share? thanks.
 
Old 06-08-2007, 06:00 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
- this config requires that users are member of the linux group "safepay", so you will have to create that if it's not already there.
(valid users = @safepay).

- furthermore only members of "safepay" have write-access granted by samba (write list = @safepay).
ordinary file permissions of linux need to be set properly as well !

- only user = yes : only users that match the ones in (user = @safepay) are allowed to make a connection.

so you have to make sure that the linux group "safepay" is present. any user you wish to grant access needs to be member of that group. so you need to create a linux user with proper group membership and file permissions first. then add that user to samba's user database to enable it.
depending on the type of password database you use you can use "smbpasswd" or "pdbedit".
the type of database should be in the smb.conf file (passdb backend = ....)

have a look at:

http://us1.samba.org/samba/docs/man/...mb.conf.5.html

Last edited by rtspitz; 06-08-2007 at 06:08 PM.
 
Old 06-08-2007, 06:24 PM   #3
texas_44
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
samba groups

Ahh, ok that makes sense to me. Thanks for the info.

this does raise a new question then, what commands do I use to add a user to a group?
 
Old 06-08-2007, 07:17 PM   #4
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
Quote:
Originally Posted by texas_44
Ahh, ok that makes sense to me. Thanks for the info.

this does raise a new question then, what commands do I use to add a user to a group?
to check the group membership of USER

Code:
groups USER
to add a USER to a GROUP:

Code:
groupmod -A USER GROUP
to remove a USER from a GROUP:

Code:
groupmod -R USER GROUP
maybe have a look at this as well:

http://www.tldp.org/

Last edited by rtspitz; 06-08-2007 at 07:34 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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba - add user script - User account does not exist itzamecwp Linux - Server 2 01-18-2007 10:52 PM
Samba - all user share where? yogaboy Linux - Server 5 12-15-2006 07:33 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
samba security: user vs share jiml8 Linux - Security 4 03-01-2005 06:12 AM
samba user and share access? Moebius Linux - Software 3 08-30-2004 02:09 PM


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

Main Menu
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