Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SAMBA Problem.....after saving, files are readonly
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
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Wed Feb 08, 2006 8:44 pm    Post subject: SAMBA Problem.....after saving, files are readonly Reply with quote

Hi,


I have the following error:

We are using SAMBA to mount ones home directory. When someone creates a file with Microsofts Office, everthing works fine. When he saves that file, everything still works fine. When he tries to save the file again, he gets an error message, that the file is readonly, though. So he has to save that file with a different name. There are no problems with oo.org

Any ideas?

Thanks,
Chris
Back to top
View user's profile Send private message
Flebool
n00b
n00b


Joined: 13 Sep 2004
Posts: 26

PostPosted: Thu Feb 09, 2006 7:23 am    Post subject: Reply with quote

hi,

surfing the net, it seems like that when samba creates a new file, it uses an internal umask, see
http://www.faqs.org/docs/samba/ch08.html
for details.
I think you have to change that parameter.


first, try to adjust the line in /etc/samba/smb.conf to something like:

create mode = 0755

now it should work. if not, add the following:

create mask = 664
directory mask = 755

however, refer to the documentation.
_________________
----------
Flebool
Back to top
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Thu Feb 09, 2006 12:59 pm    Post subject: Reply with quote

Howcome it's working fine, execpt for MS Office?


Thanks,
Chris
Back to top
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Thu Feb 09, 2006 1:22 pm    Post subject: Reply with quote

It's still not working.
Here's my smb.conf:



Quote:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/09/01 12:20:47

# Global parameters
[global]
workgroup = DSCOSC
server string = %L
interfaces = 127.0.0.1, eth0
bind interfaces only = Yes
username map = /etc/samba/smbusers
log level = 2
syslog = 0
log file = /var/log/samba/log.%m
max log size = 10000
time server = No
deadtime = 15
printcap name = cups
logon script = scripts\%U.bat
logon path =
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
printer admin = @winadmin, root, administrator
profile acls = Yes
printing = cups
cups options = raw
print command =
lpq command = %p
lprm command =

# wacad: Added for central authentication via LDAP support
passdb backend = ldapsam:ldap://localhost smbpasswd guest
ldap admin dn = cn=smbadmin,dc=gkg,dc=privat
ldap suffix = dc=gkg,dc=privat
ldap machine suffix = ou=Users
ldap user suffix = ou=Users
ldap group suffix = ou=Groups
ldap passwd sync = yes

[netlogon]
comment = The Domain Logon Service
path = /home/netlogon
write list = @winadmin, root
force group = winadmin
create mode = 0755
create mask = 664
directory mask = 775

[homes]
comment = Home Directories
valid users = %S
read only = No
inherit permissions = Yes
veto files = aquota.user
browseable = No
wide links = No

[pdf]
comment = PDF creator
path = /var/tmp
create mask = 0600
printable = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
write list = @winadmin, root
force group = winadmin
create mask = 0664
directory mask = 0775

[group]
path = /net/group
read only = No
create mask = 0664
create mode = 0755
directory mask = 0755
force directory mode = 0755

[osc]
path = /net/osc
valid users = @osc
force group = osc
read only = No
create mask = 0664
create mode = 0755
directory mask = 0755
force directory mode = 0755
browseable = No

[dsc]
path = /net/dsc
valid users = @dsc
force group = dsc
read only = No
create mask = 0664
create mode = 0755
directory mask = 0775
force directory mode = 0775
browseable = No

[admin]
path = /net/admin
valid users = @winadmin
force group = winadmin
read only = No
create mask = 0664
create mode = 0755
directory mask = 0755
force directory mode = 0775
browseable = No


Thanks for your help.

Chris
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