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 ...
- 10-02-2007 #1
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
- 10-04-2007 #2
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!"
- 10-04-2007 #3Linux 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.
- 10-05-2007 #4
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


Reply With Quote