LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-18-2007, 06:27 AM   #1
sundar1712
LQ Newbie
 
Registered: Apr 2005
Location: INDIA
Posts: 12

Rep: Reputation: 0
how to restrict other users accessing my shared on samba


Hai,

I have downloaded Redhat 5.0 from internet. I installed the same, i didn't find any problem.

I have configured the samba. In this others should not access my share folder except me.

my configuration is:

[global]

work group = ssia
server string = samba server
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
domain master = yes
hosts allow = 192.168.100. 127.
dns proxy = no
writable = no
local master = yes
security = user
preferred master = yes
max log size = 50
domain logons = yes


[kannan]
comment = Admin Team
path = /home/user/Administration/Kannan
valid users = kannan
public = no
writable = no
printable = no
create mask = 0765


[intern]
comment = Admin Team
path = /home/user/Administration/intern
valid users = intern
public = no
writable = no
printable = no
create mask = 0765

I would like to configure my samba "kannan" should not be able to access "intern" share and vice varsa.

Kindly help me.

Thanks

A.K. Kannan
 
Old 08-25-2007, 04:14 PM   #2
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
add this to ur kannan share block

Code:
read list = kannan
writeable = kannan
and add this to intern block

Code:
read list = intern
writable = intern
think this shd work for u
 
  


Reply



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 PDC - how to restrict users with time lakshminarayan Linux - Server 0 04-18-2007 07:14 AM
Problems accessing Windows with SAMBA (group users) Micro420 Linux - Networking 3 06-15-2006 10:37 PM
Samba not accessing my Windows Shared folders Felpipe Linux - Networking 3 08-04-2005 08:34 AM
restrict/allow ssh users mike30188 Linux - Security 2 06-20-2005 08:37 PM
How can I restrict users from accessing particular webistes using squid. lyn Linux - Networking 0 02-24-2004 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:57 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
Open Source Consulting | Domain Registration