On Wed Sep 05 2001 at 07:03, Charles Curley wrote:

> If you use cp or tar, you may have problems with file permissions, as
> Mess-DOS file permissions don't map nicely to Unix ones. This is also
> a potential problem with Samba backups.

Permissions are such a problem if the msdos/vfat/smb partitions are
mounted with options to change the (u)mask.  smbmount and mount both
support umask changes when mounting these filesystems.

For example, in /etc/fstab on my workstation...

/dev/hda2       /dos    vfat    defaults,umask=022      0 0

and in /etc/auto.misc I have this to automount (onto /misc/ntc) to
mount the administrative C$ share on an NT box...

nt      -fstype=smbfs 
-rw,username=Administrator%secret,uid=0,gid=0,fmask=644,dmask=255 ://NTSERVER/C\$

I get sane file permissions doing it like this.  Pity this isn't the
default behaviour.

> Also, make danged sure you get the registry, system.dat and user.dat
> in \windows. They are hidden and system files, and must be present for
> the system to run.

I've never had any problems at all having access to these files over
a smb mount'ed filesystem.  (Unless, of course, the windows box has
a lock on the file).

> Have we got enough here that I can write up a tech note for Linux
> Journal? I'll give proper credit, of course.

There's a hell of a lot more to this story that what has already
been discussed here :-)  Besides, hasn't this been done before in
other howtos/faqs?  Perhaps a listing of these resources would be an
alternative?

Cheers
Tony
---*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=---
  Tony Nugent <[EMAIL PROTECTED]>
  LinuxWorks - Gold Coast Qld

Reply via email to