Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to write in samba-shares
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Speen
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 118
Location: Herzogenrath, NRW, Germany

PostPosted: Wed May 30, 2007 7:44 pm    Post subject: unable to write in samba-shares Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Wed May 30, 2007 8:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Speen
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 118
Location: Herzogenrath, NRW, Germany

PostPosted: Wed May 30, 2007 8:34 pm    Post subject: Reply with quote

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
Code:

read only = No


even if
Code:

writeable = yes


?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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