Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, just starting on some C compiling. I have some executables (that work). When I transfer then over a Samba network from one Linux computer to another, the permissions change ...
  1. #1
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67

    Permissions on executable change, should they?

    Hello, just starting on some C compiling. I have some executables (that work). When I transfer then over a Samba network from one Linux computer to another, the permissions change from -rwxr-xr-x to -rwxr--r--. That is, they lose the world-executable property. Not surprisingly, if I send them tar-gz-compressed, they retain their integrity.

    Is that normal? Can you explain?

    Thanks
    Swerdna

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    I think it's probably samba that's causing the problem. This is intended to link Linux and Windows computers. Windows doesn't use file permissions so there have to be some kind of rules for assigning permissions to files that have come over (or that your computer thinks have come over) from a Windows system. You could try looking in the smb.conf file to see if you can find anything there.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Share permissions and filesystem permissions are different. For the Windows permissions I think that NTFS has ingrained permissions, I know I've had conflicts between a file's own permissions and masks on network shares in Window's only networks.

  4. #4
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    Thanks for those H & BTR. I'm happy just to understand that corruption of file permissions is not unusual and to perhaps tar-gz the filesystems containing executables when moving between Linux boxes. I first encounterd this quirk when moving executables to a CGI bin on my web server. I was very confused for a while when working Server Side Includes stopped working.
    When I get time I'll cruise smb.conf on samba.org to see what's there re preserving file mask if any thing

    Swerdna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...