LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2003, 01:43 AM   #1
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Limitating Samba Access


Dear All,

Anybody have idea how do i setup a samba server with these criteria :
I have 4 users : A,B,C,D

1) I will share one directory called Public in my server
2) I want user A have the permission to write and read
3) Users B,C,D only have the permission to read

Here my condition :
1 pcs Linux Redhat as samba server --> 192.168.100.1
4 pcs windoze 98 (A,B,C,D)--> 192.168.103.2 till 192.168.100.5

Each of the users have their own password.


Anybody can help me to figure out or maybe someone can point another solutions for this problem ?
 
Old 11-20-2003, 08:08 PM   #2
theparadigm
Member
 
Registered: Nov 2003
Location: Australia :)
Posts: 36

Rep: Reputation: 15
solution:
either
a) read up about/install the "samba-swat" package, using it to setup your conf

b) install "webmin", use it to setup your conf

c) modify the /etc/samba/smb.conf file under redhat yourself.. example config would be something like:
[globals]
domain master = yes
encrypt passwords = yes
logon home = \\%N\%U\.profile
logon path = \\%N\%U\.ntprofile
netbios name = computername
workgroup - workgroup
unix password sync = yes
security = user
domain logons = yes
[homes]
valid users = %S
read only = no
browseable = no
[public]
path = /home/public
writable = yes
write list = user, user, @group
public = yes

remember to run "testparm" on the command line after editing the config manually.

hope some of this helps
 
Old 11-21-2003, 01:19 AM   #3
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
ok, now i am able to share one folder called public in home directory and everyone in mynetwork able to browse the folder.

when i add "write list = user1 user2"
It is always prompt a password in the windows computer, although i have entered the passwd same like the user in my linux box, it said passwd incorrect, can anyone tell me what's going wrong ?

This is my conf :

[globals]
encrypt passwords = yes
netbios name = computername
workgroup - workgroup
security = share

[homes]
writeable = no
read only = no
browseable = no
public = no

[public]
path = /home/public
writable = yes
write list = user1, user2, @group
public = yes
create mask = 0760
directory mask = 0760


And Also i just want to let only four user to access that folder, how ?

Last edited by joseph; 11-21-2003 at 01:21 AM.
 
  


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 access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 06:33 AM
call for SAMBA GURUs for wireless samba access netguy2000 Linux - Wireless Networking 0 01-16-2004 07:45 AM
access samba from network woja Linux - Newbie 4 11-05-2003 05:06 AM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 05:21 AM
samba - access vcheah Linux - Security 3 12-02-2002 08:46 AM


All times are GMT -5. The time now is 12:02 PM.

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