View previous topic :: View next topic |
Author |
Message |
Speen Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 27 Apr 2006 Posts: 118 Location: Herzogenrath, NRW, Germany
|
Posted: Wed May 30, 2007 7:44 pm Post subject: unable to write in samba-shares |
|
|
hi there,
i'm having some massive trouble accessing my samba shares.
I'm using LDAP-backend for samba. I've written the samba config and it's working, exept the
shares :(.
I can mount them in Linux and Windows, but read only. I've created my user (AlexZ).
The user is member of the 'domain user' group, which was created during the 'samba-setup'.
The 'shares'-part of the smb.conf was created in webmin.
Here's the smb.conf:
Code: |
[global]
netbios name = TARTESSOS
workgroup = <xxx>
hosts allow = 192.168.0.0/24 127.0.0.0/8
security = user
;security = server
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
local master = yes
os level = 65
domain master = yes
preferred master = yes
null passwords = no
hide unreadable = yes
hide dot files = yes
domain logons = yes
;logon script = login.bat OR %U.bat
logon path = \\%L\profiles\%U
logon drive = M:
;added 200507
;logon home = \\%L\%U
logon home = \\%L\users\%U
wins support = yes
name resolve order = wins lmhosts host bcast
dns proxy = no
time server = yes
log file = /var/log/samba/log.%m
max log size = 50
add user script = /usr/sbin/smbldap-useradd -m "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
ldap passwd sync = yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap delete dn = Yes
ldap ssl = no
ldap suffix = dc=<xxx>,dc=lan
ldap admin dn = cn=Manager,dc=<xxxY,dc=lan
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Idmap
dos charset = 850
unix charset = ISO8859-1
[netlogon]
browseable = no
valid users = @"Domain Users"
public = yes
write list = root,@"Domain Admins"
path = /var/lib/samba/netlogon
[profiles]
path = /var/lib/samba/profiles
writable = yes
browsable = no
create mode = 0644
directory mode = 0755
guest ok = yes
[homes]
browseable = no
writeable = yes
path = /home/%U
create mask = 0664
directory mask = 0775
valid users = %S
[zwischenlager]
comment = Public Stuff
writeable = yes
create mode = 0777
public = yes
path = /var/samba/shares/zwischenlager
directory mode = 0777
[msdnaa]
write list = "@Domain Admins"
path = /var/samba/shares/msdaa downloads
comment = MSDNAA downloads
valid users = "@Domain Users"
browsable = yes
[Audiobooks]
browseable = yes
path = /var/samba/shares/Audiobooks
write list = "@Domain Admins"
comment = Audiobooks
valid users = "@Domain Users"
[Musik]
path = /var/samba/shares/Musik
write list = "@Domain Admins"
force group = Domain Users
valid users = "@Domain Users"
browsable = yes
[Bildmaterial]
comment = Bildmaterial
valid users = "@Domain Users"
path = /var/samba/shares/Bildmaterial
write list = "@Domain Admins"
force group = Domain Users
browsable = yes
[IMGS]
comment = Images
path = /var/samba/shares/IMGS
write list = "@Domain Admins"
force group = Domain Users
valid users = "@Domain Users"
browsable = yes
[Stuff$]
valid users = AlexZ
path = /var/samba/shares/Stuff
write list = AlexZ
|
i'm using amd64 with server-profile
samba version is: 3.0.24-r2
to sum up the problem: members of the group 'Domain Users' are unable to write in the directory called 'Zwischenlager' (kind of exchange-directory) and the user AlexZ is unable to write in 'Stuff$'
thanks for your help.
greets
Speen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Naib Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/10548223558c42f2887453.jpg)
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Wed May 30, 2007 8:30 pm Post subject: |
|
|
add:
read only = no
to the end...
Code: |
[Pictures]
comment = Photo Album
path = /opt/DOC/Pictures
valid users = USER, ADMIN
admin users = ADMIN
read list = USER, ADMIN
write list = USER, ADMIN
read only = yes
|
for read-only
Code: |
[Misc]
comment = Misc datafiles
path = /opt/DATA/misc
valid users = USER, ADMIN
admin users = ADMIN
read list = USER, ADMIN
write list = USER, ADMIN
read only = No
|
_________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Speen Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 27 Apr 2006 Posts: 118 Location: Herzogenrath, NRW, Germany
|
Posted: Wed May 30, 2007 8:34 pm Post subject: |
|
|
Naib wrote: | add:
read only = no
to the end...
Code: |
[Pictures]
comment = Photo Album
path = /opt/DOC/Pictures
valid users = USER, ADMIN
admin users = ADMIN
read list = USER, ADMIN
write list = USER, ADMIN
read only = yes
|
for read-only
Code: |
[Misc]
comment = Misc datafiles
path = /opt/DATA/misc
valid users = USER, ADMIN
admin users = ADMIN
read list = USER, ADMIN
write list = USER, ADMIN
read only = No
|
|
thanks for your quick reply, i'm totaly confused now, but i'll try :)
*edit*
it's working!!! Thank you for your help
so I have to append
even if
? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|