BarryDocks
October 22nd, 2009, 06:52 AM
Hi there,
Having a small problem with file permissions.
Background is a Ubuntu 8.04 server edition as a file/print/zoneminder server with 6 xp clients. Hosting a MS Access database.
Problem is when the access database is exported to a text file (unfortunately this needs to be done fairly frequently)the text file is not readable by other XP clients only the machine it was created by:confused:
I have the force create mask = 0777 and on inspection the file permissions are correct (ie rw by everyone) please see screen dump below of the permissions:
http://i731.photobucket.com/albums/ww313/jonesal2/Screenshot-UpdatetxtProperties.png
If I manually change the owner to another machine I can only open the file on that machine:confused:
Do I need to create a user group for this share?
Here is my smb.conf:
[global]
netbios name = FileServer
workgroup = WORKGROUP
server string = %v
password level = 8
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
security = user
encrypt passwords = true
printcap name = cups
load printers = yes
printing = cups
cups options = raw
local master = yes
preferred master = yes
os level = 65
name resolve order = bcast host lmhosts wins
; hosts allow = 10.1.0.0/255.255.255.0
kernel oplocks = no
oplocks = false
level2 oplocks = false
smb ports = 139
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = root
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably
# colour)on the samba server, so that clients can automatically install
# them.
;[pdf-generator]
; path = /var/tmp
; guest ok = No
; printable = Yes
; comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
; print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
# a service which has a different directory for each machine that
# connects this allows you to tailor configurations to incoming
# machines. You could also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
;[homes]
; comment = Home Directories
; read only = No
; browseable = No
[Adrian]
comment = Adrians Files
path = /media/disk/adrian
valid users = adrian, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Music]
comment = MP3s etc
path = /media/disk/music
read only = No
guest only = Yes
guest ok = Yes
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[CCTV]
comment = CCTV images from ZM
path = /media/disk/cctv
read only = No
guest only = Yes
guest ok = Yes
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Staff]
comment = Staff Files
path = /media/disk/staff
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Focus Data]
comment = Data files for Focus and Clinical Records
path = /media/disk/focus_data
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Practice Documents]
comment = Practice documents and files
path = /media/disk/practice_documents
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[HoyaLog]
comment = HoyaLog files
path = /media/disk/hoyalog
valid users = adrian, dispensing, office
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Clinical Images]
comment = Clinical image files
path = /media/disk/clinical_images
valid users = adrian, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[SAGE]
comment = SAGE accounts files
path = /media/disk/sage
valid users = adrian, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Drivers_etc]
comment = Windows drivers & device settings
path = /media/disk/drivers_etc
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
Any suggestions would be great!
Having a small problem with file permissions.
Background is a Ubuntu 8.04 server edition as a file/print/zoneminder server with 6 xp clients. Hosting a MS Access database.
Problem is when the access database is exported to a text file (unfortunately this needs to be done fairly frequently)the text file is not readable by other XP clients only the machine it was created by:confused:
I have the force create mask = 0777 and on inspection the file permissions are correct (ie rw by everyone) please see screen dump below of the permissions:
http://i731.photobucket.com/albums/ww313/jonesal2/Screenshot-UpdatetxtProperties.png
If I manually change the owner to another machine I can only open the file on that machine:confused:
Do I need to create a user group for this share?
Here is my smb.conf:
[global]
netbios name = FileServer
workgroup = WORKGROUP
server string = %v
password level = 8
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
security = user
encrypt passwords = true
printcap name = cups
load printers = yes
printing = cups
cups options = raw
local master = yes
preferred master = yes
os level = 65
name resolve order = bcast host lmhosts wins
; hosts allow = 10.1.0.0/255.255.255.0
kernel oplocks = no
oplocks = false
level2 oplocks = false
smb ports = 139
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = root
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably
# colour)on the samba server, so that clients can automatically install
# them.
;[pdf-generator]
; path = /var/tmp
; guest ok = No
; printable = Yes
; comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
; print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
# a service which has a different directory for each machine that
# connects this allows you to tailor configurations to incoming
# machines. You could also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
;[homes]
; comment = Home Directories
; read only = No
; browseable = No
[Adrian]
comment = Adrians Files
path = /media/disk/adrian
valid users = adrian, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Music]
comment = MP3s etc
path = /media/disk/music
read only = No
guest only = Yes
guest ok = Yes
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[CCTV]
comment = CCTV images from ZM
path = /media/disk/cctv
read only = No
guest only = Yes
guest ok = Yes
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Staff]
comment = Staff Files
path = /media/disk/staff
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Focus Data]
comment = Data files for Focus and Clinical Records
path = /media/disk/focus_data
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Practice Documents]
comment = Practice documents and files
path = /media/disk/practice_documents
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[HoyaLog]
comment = HoyaLog files
path = /media/disk/hoyalog
valid users = adrian, dispensing, office
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Clinical Images]
comment = Clinical image files
path = /media/disk/clinical_images
valid users = adrian, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[SAGE]
comment = SAGE accounts files
path = /media/disk/sage
valid users = adrian, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Drivers_etc]
comment = Windows drivers & device settings
path = /media/disk/drivers_etc
valid users = adrian, reception, dispensing, imaging, office, consulting
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
Any suggestions would be great!