LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Winbind Samba - Access Denied Shares (https://www.linuxquestions.org/questions/linux-software-2/winbind-samba-access-denied-shares-236329/)

Wylz 09-28-2004 04:12 PM

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

nordickiwi 10-05-2004 07:30 AM

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

Wylz 10-05-2004 09:21 AM

Thanks Nordickiwi!.

Well I'm just trying to give myself read write access well denying everyone else.

nordickiwi 10-06-2004 04:30 AM

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


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