[Samba] Fwd: Samba semantics error?

Mike Fedyk mfedyk at matchmail.com
Sat Nov 22 00:09:24 GMT 2003


On Fri, Nov 21, 2003 at 11:21:51PM +0000, Jeremy Allison wrote:
> The parameters "dos filemode" and "dos filetimes" provide some semblance
> of the DOS semantics.
> 
> I'm still unclear on exactly what doesn't work for you. Can you give
> me an exact example ?

Sure.  Here is my origional report I sent to the Debian BTS.

BTW, delete readonly = yes allows me to do what I want, but I still think
there is a bug in not returning the correct error code with 
delete readonly = no (it says something about not being able to find the
file instead of "Access Denied", like when I try to remove the read-only
attribute from a file I don't own). 

And let me say that there is a regular user named "admin" and admin != root
in this example below.

Just for reference, this is Debian Bug#218390 available at bugs.debian.org,
which is down ATM, and should be up in the next few days.



Date: Mon, 3 Nov 2003 20:41:53 -0800
From: Mike Fedyk <mfedyk at matchmail.com>
To: Samba ML <samba at lists.samba.org>
Subject: Fwd: Samba semantics error?
Mail-Followup-To: Samba ML <samba at lists.samba.org>
User-Agent: Mutt/1.5.4i
X-Spam-DCC: : 
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	fileserver.matchmail.com
X-Spam-Level: 
X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.60

Hello,

I have this bug report that I have filed.  Is there any specific reason why
samba behaves this way, and doesn't use the unix semantics?  Since this is
even more restrictive than unix semantics, I'm more inclined to call it a
bug until I know it's supposed to be this way.

Any ideas?

----- Forwarded message from Mike Fedyk <mfedyk at matchmail.com> -----

From: Mike Fedyk <mfedyk at matchmail.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: samba: Samba semantics error?
X-Mailer: reportbug 2.34
Date: Thu, 30 Oct 2003 18:21:38 -0800

Package: samba
Version: 3.0.0final-1
Severity: normal

Hi there,

I have this directory:

drwxrws---    2 admin    ssh            96 Oct 30 17:09 .
drwxrwsr-x    4 admin    ssh           112 Oct 30 17:08 ..
-r-xr-----    1 mfedyk   ssh           12M Oct 29 15:40 mozilla-win32-1.5-installer.exe
-r-xr-----    1 admin    ssh             0 Oct 30 18:15 test.txt

Under linux, I can remove any file I'd like as long as I'm either the admin
user, or in the ssh group.

But under windows through samba as the admin user, I can't remove the
mozilla installer file, but I can remove the test.txt file.  And vise versa
with the mfedyk user through samba (but can remove the file as expected from
a bash shell).

I have tried the dos filemodes config option, but that requires the file to
give group write permissions, and I explicitly don't want to do that on this
share.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mis-mike-wstn 2.6.0-test6-mm4 #2 SMP Mon Oct 6 02:32:09 PDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages samba depends on:
ii  debconf       1.3.15                     Debian configuration management sy
ii  libacl1       2.2.20-1                   Access control list shared library
ii  libc6         2.3.2-7                    GNU C Library: Shared libraries an
ii  libcomerr2    1.34+1.35-WIP-2003.08.21-3 The Common Error Description libra
ii  libcupsys2    1.1.19final-1.4            Common UNIX Printing System(tm) - 
ii  libgnutls7    0.8.9-2                    GNU TLS library - runtime library
ii  libkrb53      1.3-2                      MIT Kerberos runtime libraries
ii  libldap2      2.1.22-1                   OpenLDAP libraries
ii  libpam-module 0.76-14                    Pluggable Authentication Modules f
ii  libpam-runtim 0.76-14                    Runtime support for the PAM librar
ii  libpam0g      0.76-14                    Pluggable Authentication Modules l
ii  libpopt0      1.7-2                      lib for parsing cmdline parameters
ii  logrotate     3.6.5-2                    Log rotation utility
ii  netbase       4.14                       Basic TCP/IP networking system
ii  samba-common  3.0.0final-1               Samba common files used by both th

-- debconf information:
  samba/nmbd_from_inetd: 
* samba/run_mode: daemons
  samba/log_files_moved: 
  samba/tdbsam: false
* samba/generate_smbpasswd: true



----- End forwarded message -----

-------------- next part --------------
# Please see the manual page for smb.conf for detailed description of
#	every parameter.

[global]
    #default to 300 on 3.0.0
    keepalive = 300
   
   #####Optimizations
   # default 60 as of 3.0.0
   change notify timeout = 60 
   
   #### WINS
   Include = /etc/samba/service.wins
   wins server = wins
   
   #####Authentcation
   security = domain
   guest account = nobody
   map to guest = Bad User
   username map = /etc/samba/username.map
   server string = %h (Samba %v)
   
   ####Browsing
   workgroup = matchmail
   password server = *
   
   #####Logging
   #debug pid = Yes
   #debug uid = Yes
   log file = /var/log/samba/comp.%m
   
[default]
   browseable = no
   comment = Default netbios: %L
   guest ok = yes
   writable = yes
   create mask = 0664
   directory mask = 2775
   path = /share
   dos filetime resolution = True 
   invalid users = root
   #####Unseen files deteted with directories
   veto files  =  /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
   delete veto files = True

#   strict locking = yes
#   hide dot files = yes

   #####Config based on name
   include = /etc/samba/comp.%L
      
-------------- next part --------------
#!/bin/nowhere/sh

[drives]
   copy = default
   comment = Removable drives
   path = /mnt/
   browseable = yes

[120gb]
   copy = default
   comment = 120GB Hard Drive
   path = /120gb/
   browseable = yes

[archive]
   copy = default
   delete readonly = yes
   comment = Archive
   path = /120gb/archive/
   browseable = yes

[music]
   copy = default
   comment = Music
   path = /120gb/music/
   browseable = yes

[tmp]
   copy = default
   comment = WARNING: files will be removed after 7 days!!!
   path = /tmp/
   browseable = yes



More information about the samba mailing list