[Samba] cannot execute .exe files from a share

May 24th, 2012 - 09:40 am ET by BeavieS | Report spam
Hello, i've seen this error on the mailing list but no solutions.

Problem: No user can execute an .exe file from a group share under any
windows version (wXP til Windows 7).

Permisions: Every user can read, write, delete, etc in that share.
I've chmoded 777 the file but for nothing. The user can copy the .exe
file to another location like desktop and then can execute it (is a
portable aplication) with no problems.

Strange behaviour: The most strange is that if an user copies the .exe
file to their 'home' (his private share on the samba server) then they
CAN run it!.

Another clue: the admin users of the share CAN execute the .exe file

CONFIGUTARION
It's an standalone server joined on a Windows 2003 domain

[global]
workgroup = HCG
realm = SOME.ACTIVEDIRECTORY.DOMAIN
server string = Servidor de Datos
security = ADS
map to guest = Bad User
obey pam restrictions = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
load printers = No
printcap name = /dev/null
disable spoolss = Yes
domain master = No
dns proxy = No
panic action = /usr/share/samba/panic-action %d
template shell = /bin/bash
winbind separator = /
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap config * : range = 10000-20000
idmap config * : backend = tdb
printing = bsd

[homes]
comment = Directorio personal
path = /home/%S
valid users = %S
force group = users
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[administracio]
path = /home/administracio
valid users = @administracio
admin users = ds
read only = No
create mask = 0660
directory mask = 0770
inherit acls = Yes
inherit owner = Yes
vfs objects = acl_xattr, full_audit
full_audit:priority = notice
full_audit:facility = local7
full_audit:failure = connect
full_audit:success = rmdir rename unlink
full_audit:prefix = Administracio|%u|%m

So an user of @administracio group can execute .exe files in its home
share but NOT the same .exe file in [administracio] share. Except user
'ds' that it is an admin user of the share.

ls -l /home/administracio/program.exe
-rwxrwxrwx 1 administrador administracio 582656 may 23 13:26
/home/administracio/program.exe

ls -l /home
drwxrws 56 administrador administracio 4096 may 24 15:01 administracio

(althought chmodig 777 /home/administracio don't work).

Samba version 3.6.3

Thank you!

beavies at gmail dot com
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 3 repliesReplies Make a reply

Similar topics

Replies

#1 Daniel Müller
May 24th, 2012 - 09:50 am ET | Report spam
Try to set the sticky bit for the group on this share.

Good Luck
Danel

EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail:
Internet: www.tropenklinik.de

Von: [mailto:] Im
Auftrag von BeavieS
Gesendet: Donnerstag, 24. Mai 2012 15:31
An:
Betreff: [Samba] cannot execute .exe files from a share

Hello, i've seen this error on the mailing list but no solutions.

Problem: No user can execute an .exe file from a group share under any
windows version (wXP til Windows 7).

Permisions: Every user can read, write, delete, etc in that share.
I've chmoded 777 the file but for nothing. The user can copy the .exe file
to another location like desktop and then can execute it (is a portable
aplication) with no problems.

Strange behaviour: The most strange is that if an user copies the .exe file
to their 'home' (his private share on the samba server) then they CAN run
it!.

Another clue: the admin users of the share CAN execute the .exe file

CONFIGUTARION
It's an standalone server joined on a Windows 2003 domain

[global]
workgroup = HCG
realm = SOME.ACTIVEDIRECTORY.DOMAIN
server string = Servidor de Datos
security = ADS
map to guest = Bad User
obey pam restrictions = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
load printers = No
printcap name = /dev/null
disable spoolss = Yes
domain master = No
dns proxy = No
panic action = /usr/share/samba/panic-action %d
template shell = /bin/bash
winbind separator = /
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap config * : range = 10000-20000
idmap config * : backend = tdb
printing = bsd

[homes]
comment = Directorio personal
path = /home/%S
valid users = %S
force group = users
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[administracio]
path = /home/administracio
valid users = @administracio
admin users = ds
read only = No
create mask = 0660
directory mask = 0770
inherit acls = Yes
inherit owner = Yes
vfs objects = acl_xattr, full_audit
full_audit:priority = notice
full_audit:facility = local7
full_audit:failure = connect
full_audit:success = rmdir rename unlink
full_audit:prefix = Administracio|%u|%m

So an user of @administracio group can execute .exe files in its home share
but NOT the same .exe file in [administracio] share. Except user 'ds' that
it is an admin user of the share.

ls -l /home/administracio/program.exe
-rwxrwxrwx 1 administrador administracio 582656 may 23 13:26
/home/administracio/program.exe

ls -l /home
drwxrws 56 administrador administracio 4096 may 24 15:01 administracio

(althought chmodig 777 /home/administracio don't work).

Samba version 3.6.3

Thank you!

beavies at gmail dot com
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#2 Moray Henderson
May 24th, 2012 - 10:40 am ET | Report spam
From: BeavieS [mailto:]
Sent: 24 May 2012 14:31

Hello, i've seen this error on the mailing list but no solutions.

Problem: No user can execute an .exe file from a group share under any
windows version (wXP til Windows 7).

Permisions: Every user can read, write, delete, etc in that share.
I've chmoded 777 the file but for nothing. The user can copy the .exe
file to another location like desktop and then can execute it (is a
portable aplication) with no problems.

Strange behaviour: The most strange is that if an user copies the .exe
file to their 'home' (his private share on the samba server) then they
CAN run it!.

Another clue: the admin users of the share CAN execute the .exe file

CONFIGUTARION
It's an standalone server joined on a Windows 2003 domain

[global]
workgroup = HCG
realm = SOME.ACTIVEDIRECTORY.DOMAIN
server string = Servidor de Datos
security = ADS
map to guest = Bad User
obey pam restrictions = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
load printers = No
printcap name = /dev/null
disable spoolss = Yes
domain master = No
dns proxy = No
panic action = /usr/share/samba/panic-action %d
template shell = /bin/bash
winbind separator = /
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap config * : range = 10000-20000
idmap config * : backend = tdb
printing = bsd

[homes]
comment = Directorio personal
path = /home/%S
valid users = %S
force group = users
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[administracio]
path = /home/administracio
valid users = @administracio
admin users = ds
read only = No
create mask = 0660
directory mask = 0770
inherit acls = Yes
inherit owner = Yes
vfs objects = acl_xattr, full_audit
full_audit:priority = notice
full_audit:facility = local7
full_audit:failure = connect
full_audit:success = rmdir rename unlink
full_audit:prefix = Administracio|%u|%m

So an user of @administracio group can execute .exe files in its home
share but NOT the same .exe file in [administracio] share. Except user
'ds' that it is an admin user of the share.

ls -l /home/administracio/program.exe
-rwxrwxrwx 1 administrador administracio 582656 may 23 13:26
/home/administracio/program.exe

ls -l /home
drwxrws 56 administrador administracio 4096 may 24 15:01
administracio

(althought chmodig 777 /home/administracio don't work).

Samba version 3.6.3



I'm sure I saw this problem a long time ago - now to see if I can remember
the solution...

Windows security settings? It identifies the file as being "remote" (or
possibly "Local-intranet") and Windows is set to not trust remote files.


Moray.
"To err is human; to purr, feline."





To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#3 Denis Witt
May 24th, 2012 - 11:20 am ET | Report spam
On 24.05.2012 15:30, BeavieS wrote:

Problem: No user can execute an .exe file from a group share under any
windows version (wXP til Windows 7).



Check your Internet Explorer (yes, IE) Security-Settings and if you are
connecting to the share via the server IP add the IP to the IE trusted
sites.

Some time ago my users had problems opening Office Files. This was
caused by the IE-Security settings. The users were connected to the
share via IP instead of the server's netbios name, so Windows thought
the file was downloaded from the Internet and blocked it.

Best regards
Denis
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search