[Samba] Cannot access share
Chris Boyd
chris.boyd at usit.ie
Wed Dec 5 12:30:28 GMT 2007
Running openldap/samba/smbldap-tools/debian etch:
The users can access their home drives and logon.bat maps but not the
share. I can see the share in explorer but prompts for a password when
try to access it. I had them working fine a while back. The only user
that can access the share is admin. The only thing that's happened that
I can think of is that a script changed the whole directory tree on the
server as owned by root. I think the ownership on the share is correct
though.
Here's the setup:
---------------------------------------------------------
smb.conf
[netlogon]
comment = Network Logon Service
path = /data/samba/netlogon
guest ok = yes
writable = no
share modes = no
write list = "@MYDOMAIN\admins"
[profiles]
comment = Users profiles
path = /home/%U/profiles
; path = /
; path = %H
guest ok = no
browseable = no
writeable = yes
; store dos attributes = Yes
create mask = 0600
directory mask = 0700
hide files = /desktop.ini/outlook*.lnk/*Briefcase*/
[shared]
comment = Shared folder
path = /data/Shared
force group = domusers
read only = no
browseable = yes
create mask = 0770
directory mask = 0770
valid users = @MYDOMAIN\admins, at MYDOMAIN\domusers
getent passwd
admin:*:0:20000:Administrator:/home/admin:/bin/bash
bob.newhart:x:30302:20001:Bob Newhart:/home/bob.newhart:/bin/bash
----------------------------------------------------------
getent group
admins:*:20000:
domusers:*:20001:
-----------------------------------------------------------
net groupmap list -l
Domain Admins
SID : S-1-5-21-1953726507-754737620-746616776-512
Unix gid : 20000
Unix group: admins
Group type: Domain Group
Comment :
Domain Guests
SID : S-1-5-21-1953726507-754737620-746616776-514
Unix gid : 20002
Unix group: guests
Group type: Domain Group
Comment :
Domain Users
SID : S-1-5-21-1953726507-754737620-746616776-513
Unix gid : 20001
Unix group: domusers
Group type: Domain Group
Comment :
it
SID : S-1-5-21-1953726507-754737620-746616776-41007
Unix gid : 20003
Unix group: it
Group type: Domain Group
Comment :
accounts
SID : S-1-5-21-1953726507-754737620-746616776-41009
Unix gid : 20004
Unix group: accounts
Group type: Domain Group
Comment :
marketing
SID : S-1-5-21-1953726507-754737620-746616776-41011
Unix gid : 20005
Unix group: marketing
Group type: Domain Group
Comment :
incprogs
SID : S-1-5-21-1953726507-754737620-746616776-41013
Unix gid : 20006
Unix group: incprogs
Group type: Domain Group
Comment :
products
SID : S-1-5-21-1953726507-754737620-746616776-41015
Unix gid : 20007
Unix group: products
Group type: Domain Group
Comment :
retail
SID : S-1-5-21-1953726507-754737620-746616776-41019
Unix gid : 20009
Unix group: retail
Group type: Domain Group
Comment :
training
SID : S-1-5-21-1953726507-754737620-746616776-41021
Unix gid : 20010
Unix group: training
Group type: Domain Group
Comment :
uas
SID : S-1-5-21-1953726507-754737620-746616776-41023
Unix gid : 20011
Unix group: uas
Group type: Domain Group
Comment :
services
SID : S-1-5-21-1953726507-754737620-746616776-41025
Unix gid : 20012
Unix group: services
Group type: Domain Group
Comment :
programmes
SID : S-1-5-21-1953726507-754737620-746616776-41019
Unix gid : 20008
Unix group: programmes
Group type: Domain Group
Comment :
--------------------------------------------------------------------
ls -la /data/Shared/
total 80
drwxrwxr-x 15 root domusers 4096 2007-11-29 13:44 .
drwx------ 5 root domusers 4096 2007-07-09 16:33 ..
drwxrwx--- 51 root accounts 4096 2007-06-07 13:17 accounts
drwxrwx--- 5 root domusers 4096 2007-06-08 11:52 email
drwxrwx--- 2 root domusers 4096 2007-07-16 15:56 everyone
drwxrwx--- 43 root incprogs 4096 2007-06-07 14:26 incprogs
drwxrwx--- 33 root it 4096 2007-07-25 13:24 it
drwxrwx--- 97 root marketing 12288 2007-06-07 17:36 marketing
drwxrwx--- 7 root domusers 4096 2007-06-07 17:39 misc
drwxrwx--- 33 root products 12288 2007-06-07 17:47 products
drwxrwx--- 22 root programmes 4096 2007-06-08 09:48 programmes
drwxrwx--- 3 root retail 4096 2007-06-08 10:24 retail
drwxrwx--- 3 root services 4096 2007-06-08 11:38 services
drwxrwx--- 14 root training 4096 2007-06-08 11:41 training
drwxrwx--- 63 root uas 4096 2007-06-08 11:50 uas
-----------------------------------------------------------------------------------
# Features to permit
#allow bind_v2
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/mozillaOrgPerson.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/misc.schema
#include /etc/ldap/schema/mozillaOrgPerson
# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile /var/run/slapd/slapd.pid
# List of arguments that were passed to the server
argsfile /var/run/slapd/slapd.args
# Read slapd.conf(5) for possible values
loglevel 232
# Where the dynamically loaded modules are stored
modulepath /usr/lib/ldap
moduleload back_bdb
# The maximum number of entries that is returned for a search operation
sizelimit 500
# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1
#######################################################################
# Specific Backend Directives for bdb:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend bdb
checkpoint 512 30
#######################################################################
# Specific Directives for database #1, of type bdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database bdb
# The base of your directory in database #1
suffix "dc=mydomain,dc=ie"
# rootdn directive for specifying a superuser on the database. This is
needed
# for syncrepl.
rootdn "cn=admin,dc=mydomain,dc=ie"
# Where the database file are physically stored for database #1
directory "/var/lib/ldap"
# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0
# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057
# for more information.
# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500
# Indexing options for database #1
index objectClass eq
index sambaSID sub
#index uid,uidNumber,gidNumber,memberUid eq
#index cn,mail,surname,givenname eq,subinitial
#index sambaPrimaryGroupSID eq
#index sambaDomainName eq
# Save the time that the entry gets modified, for database #1
lastmod on
# Where to store the replica logs for database #1
# replogfile /var/lib/ldap/replog
# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
access to attrs=userPassword,shadowLastChange
by dn="cn=admin,dc=mydomain,dc=ie" write
by anonymous auth
by self write
by * none
# Ensure read access to the base for things like
# supportedSASLMechanisms. Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work
# happily.
access to dn.base="" by * read
# The admin dn has full write access, everyone else
# can read everything.
access to *
by dn="cn=admin,dc=mydomain,dc=ie" write
by * read
-----------------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyrighted. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. USIT has scanned this email for viruses and
dangerous content and believes it to be clean. However,
virus scanning is ultimately the responsibility of the recipient.
-----------------------------------------------------------------
USIT Ireland Ltd. Company No. 377526. Registered Office 19/21 Aston Quay Dublin 2.
More information about the samba
mailing list