Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3482f4c5376afc1506377e94e8f4ee8781d490e7
Ticket: 1613456fffffffffffffffffffffffffffffffff
file readable lies with samba shared folder or file
User & Date: fvogelnew1 on 2007-01-05 04:45:41
Changes

  1. icomment:
    Logged In: YES 
    user_id=1245417
    Originator: YES
    
    Hi,
    
    I tracked the problem to the following narrower issue.
    
    In some Linux directory shared with Samba, create any file myfile.txt.
    
    Then play with the access rigths and see the results:
    
    chmod 0600 myfile.txt
      Then file readable $thefile answers:
         1 in wish run on the Linux machine
         0 in wish run on the Windows machine
      And file writable $thefile answers:
         1 in wish run on the Linux machine
         0 in wish run on the Windows machine
    
    chmod 0606 myfile.txt
      Then file readable $thefile answers:
         1 in wish run on the Linux machine
         1 in wish run on the Windows machine
      And file writable $thefile answers:
         1 in wish run on the Linux machine
         1 in wish run on the Windows machine
    
    i.e. the file must be granted access rights for the "Others" users group, otherwise it is neither readable nor writable, even by the user who created it.
    
    The smb.conf has
      map to guest = never
    and I created a Linux user with the same name and password as the Windows user, so that there is no login dialog when the Windows machine connects to the Linux samba share. The Windows login and passwords are sent by Windows to Samba, and Samba has this user included in its smbpasswd file.
    
    
    To sum up:
    
      It seems that a file once readable and writable by some user on Linux is not readable nor writable later by this same user if this user connects through the samba share.
    
      When run through a Samba share, file readable/writable appears to check not only the user rights but also the "others" access rights, and this is odd.
    
    Francois
    
    
    
  2. login: "fvogelnew1"
  3. mimetype: "text/plain"
  4. username: "fvogelnew1"