[Pkg-samba-maint] DO NOT REPLY [Bug 5948] Files moved to CIFS-mounted file system get the executable bit set

samba-bugs at samba.org samba-bugs at samba.org
Mon Mar 16 13:13:13 UTC 2009


https://bugzilla.samba.org/show_bug.cgi?id=5948


shirishp at us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shirishp at us.ibm.com




------- Comment #1 from shirishp at us.ibm.com  2009-03-16 08:13 CST -------
I do not see this happening with 1.54 of cifs and Version 3.0.33-3.7.el5 of
samba server either with copy and move of text as well as an executable file.

Here is a simple setup and steps attempted to recreate the problem.

[idsc0]
        path =  /tmp/idsc0dir
        browseable = Yes
        read only = No
        guest ok = Yes
        writable = yes


mount -t cifs //idsc0/idsc0 /mnt/smb_a -o user=root,pass=password

----------------------------------------------------------------------
cifstest6:~ # ls -l /etc/motd
-rw-r--r-- 1 root root 0 Dec 10 10:33 /etc/motd
cifstest6:~ # cp /etc/motd /mnt/smb_a/motd
cifstest6:~ # cp -p /etc/motd /mnt/smb_a/motd.1
cifstest6:~ # ls -l /mnt/smb_a
total 214724

-rw-r--r-- 1 root root          0 Mar 16  2009 motd
-rw-r--r-- 1 root root          0 Dec 10 10:33 motd.1

------------------------------------------------------------------------

cifstest6:~ # cp -p /etc/motd /etc/motd.tomove
cifstest6:~ # ls -l /etc/motd.tomove
-rw-r--r-- 1 root root 0 Dec 10 10:33 /etc/motd.tomove
cifstest6:~ # mv /etc/motd.tomove /mnt/smb_a
cifstest6:~ # ls -l /etc/motd.tomove
ls: cannot access /etc/motd.tomove: No such file or directory
cifstest6:~ # ls -l /mnt/smb_a/motd.tomove
-rw-r--r-- 1 root root 0 Dec 10 10:33 /mnt/smb_a/motd.tomove


------------------------------------------------------------------------
cifstest6:~ # ls -l /bin/date
-rwxr-xr-x 1 root root 56120 Dec  5 17:53 /bin/date

cifstest6:~ # cp /bin/date /mnt/smb_a
cifstest6:~ # cp -p /bin/date /mnt/smb_a/date.1

cifstest6:~ # ls -l /mnt/smb_a
total 214652
-rwxr--r-- 1 root root      56120 Mar 16  2009 date
-rwxr-xr-x 1 root root      56120 Dec  5 17:53 date.1

--------------------------------------------------------------------------
cifstest6:~ # cp /bin/date /bin/date.tomove
cifstest6:~ # mv /bin/date.tomove /mnt/smb_a
cifstest6:~ # ls -l /bin/date.tomove
ls: cannot access /bin/date.tomove: No such file or directory
cifstest6:~ # ls -l /mnt/smb_a/date.tomove
-rwxr-xr-x 1 root root 56120 Mar 16 08:00 /mnt/smb_a/date.tomove


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



More information about the Pkg-samba-maint mailing list