Loading ...
Sorry, an error occurred while loading the content.

Samba creating root-owned files for non-root user on Debian/etch

Expand Messages
  • cmelikian
    My slug is running Debian/etch with the latest updates. When I try and use iPhoto in OS X to create a new photo library on the Slug using Samba, some files are
    Message 1 of 1 , Jul 3, 2008
    • 0 Attachment
      My slug is running Debian/etch with the latest updates.

      When I try and use iPhoto in OS X to create a new photo library on the
      Slug using Samba, some files are being created with root being the
      owner despite connecting as a separate user eg:-
      slug:/var/log/samba# cd /external/disk1/public/iphoto/
      slug:/external/disk1/public/iphoto# ls -la
      total 6584
      drwxr-xr-x 5 fred users 4096 Jul 3 12:32 .
      drwxrwxr-x 23 fred users 4096 Jul 2 10:38 ..
      -rwxr--r-- 1 fred users 4096 Jun 30 14:42 ._iPhoto.ipspot
      -rwxr--r-- 1 fred users 4096 Jul 3 15:18 ._iPod Photo Cache
      -rwxr--r-- 1 fred users 3871 Jun 30 14:42 AlbumData.xml
      -rwxr--r-- 1 root fred 4011 Jul 3 12:32 AlbumData.xml.tmp
      drwxr-xr-x 2 fred users 4096 Jun 30 14:21 Auto Import
      drwxr-xr-x 2 fred users 4096 Jun 30 14:21 Contents
      -rwxr--r-- 1 fred users 20 Jun 30 14:22 Library.data
      -rwxr--r-- 1 fred users 20 Jun 30 14:22 Library.iPhoto
      -rwxr--r-- 1 root fred 2691 Jul 3 12:32 Library6.iPhoto
      -rwxr--r-- 1 fred users 6659616 Jun 30 14:21 ThemeCache
      -rwxr--r-- 1 fred users 4096 Jun 30 14:21 Thumb32Segment.data
      -rwxr--r-- 1 fred users 4096 Jun 30 14:21 Thumb64Segment.data
      -rwxr--r-- 1 fred users 4096 Jun 30 14:21 ThumbJPGSegment.data
      -rwxr--r-- 1 fred users 36 Jun 30 14:42 iPhoto.ipspot
      -rwxr--r-- 1 fred users 1 Jul 3 12:32 iPhotoLock.data
      drwxr-xr-x 2 fred users 4096 Jul 1 15:10 iPod Photo Cache

      So some files are being created with the correct user eg "fred" and
      some are created as root with the group as fred which doesn't exist.

      In /var/log/samba/log.mac001ff3d3b88a I can see the following entry:-

      [2008/07/03 15:41:08, 1] smbd/service.c:make_connection_snum(950)
      mac001ff3d3b66a (192.168.1.3) connect to service PUBLIC initially as
      user fred (uid=0, gid=1002) (pid 2547)

      I think the problem is that the uid and gid are wrong.

      How can I fix this? Any help appreciated!
    Your message has been successfully submitted and would be delivered to recipients shortly.