LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-28-2004, 04:12 PM   #1
Wylz
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Winbind Samba - Access Denied Shares


Hi all hope you can help, I have configured samba to the point where i can see all shares, browse all shares. I have configured winbind to the point where I can can pol the users and groups using wbinfo -u and wbinfo -g. My problem is I don' know how to set the permission on shares for restricted access and how to confirm winbind is doing its job. I have a share, ksych, I can browse it but I can not read/write or delete with in that directory. Here is my smb.conf file, thanks in advance for any help. Oh yes, I am very green in the linux world, but love'n every minute of it!!

[global]
workgroup = SANDBOX
netbios name = TRAPPER
server string = Samba Server
security = DOMAIN
encrypt passwords = Yes
obey pam restrictions = Yes
password server = *
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
winbind uid = 10000-20000
winbind gid = 10000-20000
template shell = /bin/bash
winbind enum users = yes
winbind seperator = /
winbind enum groups = yes
winbind use default domain = Yes
read only = No
guest ok = Yes
printing = cups
printer admin = @"Domain Admins"
[homes]
comment = Home Directories
valid users = %S
create mask = 0664
directory mask = 0775
browseable = No

[ksych]
path = /home/sandbox/ksych
public = yes
writable = yes
create mask = 0700
directory mask = 0700
directory security mask = 0700
admin users = sandbox\ksych
 
Old 10-05-2004, 07:30 AM   #2
nordickiwi
Member
 
Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Posts: 39

Rep: Reputation: 15
Here are a few options for samba shares that you could use, they might help.

browseable = no/yes
guest ok = no/yes
read only = no/yes

As far as file permissions for the actual share is concerned what is it you want to do? I'll try to give a you a answer.

/nordickiwi
 
Old 10-05-2004, 09:21 AM   #3
Wylz
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Nordickiwi!.

Well I'm just trying to give myself read write access well denying everyone else.
 
Old 10-06-2004, 04:30 AM   #4
nordickiwi
Member
 
Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Posts: 39

Rep: Reputation: 15
Ok, I'm trying to figure things out in my head, but need more info after studying your smb.conf.
But don't know if i can help, I have a few questions that may seem basic or even stupid....but bare with me.
1, Is you samba server connecting to a Windows 2000/2003 Domain Controller?
2, From the workstation you are logging from, are you logging into AD with a user that has a local account on the samba file server?
3,If your not using Windows 2000/2003 Active Directory why are you using Winbind?
4, Did you write the smb.conf file yourself?

Apart from that, chmod 750 should give yout the desired effect for r/w access on /home/sandbox/ksych
But this can depend on your answers to the above questions.

/nordickiwi
 
  


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
Mounting W2K Shares failed: Access denied xunil321 Linux - Networking 8 11-02-2004 10:10 AM
winbind samba user vs. group permission denied prob pauljtester Linux - Software 1 09-30-2004 09:32 AM
Samba and MS Access Shares oneiltj Linux - Software 13 08-08-2004 08:11 PM
SAMBA access based on NT Domain groups [using winbind] tisource Linux - Networking 1 11-24-2003 12:34 AM
Access denied XP samba shares djtsa Linux - Software 0 10-02-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:07 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