Author Topic: Samba and utime()  (Read 1635 times)

DaveS

  • Newbie
  • *
  • Posts: 5
    • View Profile
Samba and utime()
« on: 2012.06.05, 18:32:53 »
Is there a work around for this problem?

Was running a backup script that goes local to remote. Was using file and print but changing to samba and the create times are wrong. Docs suggest it ought to work if the user smb is running as has write but I am unsure what to set where. Or if this appiles to this port.

TIA
Dave

RobertM

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2034
    • View Profile
    • A.I.BuiltPC - using OS/2 Warp Server & eComStation for Custom Web and Database Solutions
Re: Samba and utime()
« Reply #1 on: 2012.06.05, 20:39:48 »
No experience with the Samba/utime combo, but i do know other things that use utime have problems with eCS's tz variable. Changing it in the config.sys to the "standard" EDT4 or similar format resolves the issue - but you also must go into the eCS clock/nettime app and prevent it from changing the tz variable back.
|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


DaveS

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Samba and utime()
« Reply #2 on: 2012.06.05, 21:17:57 »
No, this was working perfectly with file and print mounted drives. Only fails on samba drives. I am going ECS to ECS.

herwigb

  • Full Member
  • ***
  • Posts: 115
    • View Profile
Re: Samba and utime()
« Reply #3 on: 2012.06.06, 07:30:14 »
Dave,

you might see a flavor of this issue http://svn.netlabs.org/samba/ticket/165.
Kind regards,
HerwigB.

DaveS

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Samba and utime()
« Reply #4 on: 2012.06.06, 10:07:43 »
Similar except I am copying a file and then explicitly setting the correct times with utime().

The Samba docs imply that this happens win <> unix but there must be some workaround. The docs go on to say if the user SMB is running as has write then it ought to work. Does our Samba port look to other systems as a win/dos  or a *nix system? 

herwigb

  • Full Member
  • ***
  • Posts: 115
    • View Profile
Re: Samba and utime()
« Reply #5 on: 2012.06.06, 14:48:12 »
Dave,

*nix
Kind regards,
HerwigB.

DaveS

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Samba and utime()
« Reply #6 on: 2012.06.10, 16:49:02 »
OK so according to the docs on a *nix system the user smb is running as, which I assume is who you connect as, has to have write *and* own the file. As, in general, os/2 files are uid/gid 0/0 you don't get very far. I tried "force user = root" but it makes no difference.