write permissions on FAT FS imported with samba

3 views
Skip to first unread message

Tartagni Marco

unread,
Sep 13, 2002, 12:07:46 PM9/13/02
to
HI,

I have installed WinXpPro as a guest on a linux host with Kernel
2.4.18-6mdk (MDK 8.2) & VMware Workstation 3.1.1 build-1790. I have a
FAT partition that is mounted on linux and imported with -rwxr-xr-x
permissions with samba:
(/dev/hda5 /WinD vfat uid=501,gid=501,iocharset=iso8859-1,codepage=850 0 0)

Everything works fine working on that FAT partition (i.e. Office 2000).
However, if I try to rotate (as administrator user in XP) images in
Windows Explorer I got a

"You cannot rotate this image. The file might be open by ... or the file
or the folder might be read-only".

The folder is in fact read-only but I cannot change that property with
XP. On the other hand, I can copy and past on that partition...

Other programs such as ZoomBrowser 3.2 by Canon can import files on that
partition, but it cannot rotate images or create databases. Problems
also with MS Access.

Anyone knows how to overcome this problem?

Many thanks, Marco.

Trevin Beattie

unread,
Sep 13, 2002, 11:27:05 AM9/13/02
to
Tartagni Marco wrote:

> HI,
>
> I have installed WinXpPro as a guest on a linux host with Kernel
> 2.4.18-6mdk (MDK 8.2) & VMware Workstation 3.1.1 build-1790. I have a
> FAT partition that is mounted on linux and imported with -rwxr-xr-x
> permissions with samba:

What do you mean by "imported with -rwxr-xr-x permissions"? You can specify
the default permissions for new files and directories with "create
mask"/"force create mode", "directory mask"/"force directory mode", and
"inherit permissions"; and you can specify which users are allowed read-only
access or read/write access with "read list", "write list", and "writeable";
but I'm not aware of any configuration parameters for overriding existing file
permissions.

> (/dev/hda5 /WinD vfat uid=501,gid=501,iocharset=iso8859-1,codepage=850 0 0)
>
> Everything works fine working on that FAT partition (i.e. Office 2000).
> However, if I try to rotate (as administrator user in XP) images in
> Windows Explorer I got a
>
> "You cannot rotate this image. The file might be open by ... or the file
> or the folder might be read-only".
>
> The folder is in fact read-only but I cannot change that property with
> XP. On the other hand, I can copy and past on that partition...

Are you (or the logged-in user) the owner of that directory? Are you on the
write list for the share?

It might help if you posted a copy of your samba configuration file -- at
least the section for the share you are having trouble with.


Tartagni Marco

unread,
Sep 18, 2002, 9:20:03 AM9/18/02
to
Many thanks, Trevin. I haven't had time to look into this details of
samba configuration. Actually, I have always used the default samba
server of vmware. Anyway here is my smb.conf:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Configuration file for Samba 2.0.6 vmware-[sn]mbd operating on vmnet1.
;
; This file was automatically generated by the VMware configuration program.
; If you modify it, it will be backed up the next time you run the
; configuration program.
;

; Global settings
[global]
;
; Identity
;

; Allow several Samba servers on different subnet without conflicts
socket address = 192.168.95.1
interfaces = 192.168.95.0/255.255.255.0
bind interfaces only = yes

; Workgroup the host belongs to
workgroup = STAR

; SMB name of the host (the hostname by default)
; netbios name =

; Description of the host
server string = VMware host

;
; Access
;

; Allow connections from
; Beware: if we use this directive, smbd will try to do a reverse
resolution
; of the guest IP. If the host is disconnected from the network and uses
; named, that reverse resolution will take a long time, and the smb client
; (the guest) will give up waiting for a smb reply before the reverse
; resolution timeout occurs :(
; Because it doesn't add any real security, we don't use this --hpreg
; hosts allow = 192.168.95.0/255.255.255.0
; Workgroup the host belongs to
workgroup = STAR

; SMB name of the host (the hostname by default)
; netbios name =

; Description of the host
server string = VMware host

;
; Access
;

; Allow connections from
; Beware: if we use this directive, smbd will try to do a reverse
resolution
; of the guest IP. If the host is disconnected from the network and uses
; named, that reverse resolution will take a long time, and the smb client
; (the guest) will give up waiting for a smb reply before the reverse
; resolution timeout occurs :(
; Because it doesn't add any real security, we don't use this --hpreg
; hosts allow = 192.168.95.0/255.255.255.0

; Authentication scheme
security = user
encrypt passwords = yes

;
; Options
;

; Automatically load the printer list (from /etc/printcap by default)
load printers = yes
printing = cups
printcap = cups
; Gives better performance
socket options = TCP_NODELAY

; VMware extension to use a different shared memory access key on each
; Samba server running on this host
sysv shm key = /dev/vmnet1

;
; Files and directories
;

; Debug log for _both_ daemons
; log file = /etc/vmware/vmnet1/smb/var/log.smb
; log level = 1
; Max log size in KB
; max log size = 50

; Locks
lock directory = /etc/vmware/vmnet1/smb/var/locks

; SMB passwords
smb passwd file = /etc/vmware/vmnet1/smb/private/smbpasswd

; VMware extension to use codepages in a different directory
codepage dir = /usr/lib/vmware/smb/codepages

;
; Name browsing
;

; Allow the host to participate in master browser elections
local master = yes

; Force a local browser election upon startup
; We need that otherwise it takes a long time before the windows network is
; browsable
preferred master = yes

; Do not try to resolve SMB names via DNS
dns proxy = no

;
; Shared resources
;

; Home directories
[homes]
comment = Home directories
browseable = no
writable = yes
; Printers
[printers]
comment = All printers
; path = /var/lpd
browseable = no
guest ok = no
writable = no
printable = yes

[HostFS]
comment = VMware host filesystem
path = /
public = no
writeable = yes
printable = no
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Trevin Beattie wrote:


The username is tartagni which is Administrator...

Reply all
Reply to author
Forward
0 new messages