I
I
Ilya bow2016-07-19 15:57:07
linux
Ilya bow, 2016-07-19 15:57:07

How to give a guest the right to "read execution" in sambe?

There is a ball on samba, there is a computer. The computer really needs to execute the right files with balls. the computer should do this under the guest (or Everyone), if I understand correctly (without entering a password-login).
If I understand correctly, everything is configured through /etc/samba/smb.conf and here is this piece of code:

[images]
comment = images
path = /srv/tftp/images
create mask = 0660
directory mask = 0771
writable = yes
guest ok=yes

However, for some reason, my guest cannot execute files. Although, as I understand it, it should. But he can only read.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuzin, 2016-07-19
@Bobson8

In addition to access rights, the files themselves must also be marked as executable. Not in the samba config, of course, but the files themselves.

A
Alexander Abakumov, 2016-07-20
@nops

I didn't understand the question.
The samba rises, the user is created. The rights to the setfacl file/directory are set (on freebsd).
Further, the user from a Windows machine opens the ball and calmly launches what his mind needs. This does not require execute permissions.
Here are some examples:

# getfacl *
# file: _Scaner
# owner: root
# group: wheel
[email protected]:rwxpDdaARWcCo-:fd-----:allow
group:_buh_gr:rwxpDdaARWcCo-:fd-----:allow
group:_buh_gr_sheff:rwxpDdaARWcCo- :fd-----:allow
group:_office_gr:rwxpDdaARWcCo-:fd-----:allow
group:_dir_gr:rwxpDdaARWcCo-:fd-----:allow
group:_fin_gr:rwxpDdaARWcCo-:fd--- --:allow
group:_fib_gr_sheff:rwxpDdaARWcCo-:fd-----:allow
group:_it_gr:rwxpDdaARWcCo-:fd-----:allow
user:administrator:rwxpDdaARWcCo-:fd-----:allow
owner @:rwxpDdaARWcCo-:-------:allow
group:10019:rwxpDdaARWcCo-:fdi----:allow
group:domain admins:rwxpDdaARWcCo-:fd-----:allow

# ll
total 66
drwxrwx---+ 3 root wheel 31 Jul 20 16:53 _Scaner/

For example, I have a directory in a ball with 1C:
# ll
total 218998
-rwxrwx---+ 1
root
wheel wheel 13660 Feb 20 03:08 0x0409.ini*
-rwxrwx---+ 1
root
rwxrwx---+ 1 root wheel 14992 Feb 20 03:08 0x0415.ini*
-rwxrwx---+ 1 root wheel 14632 Feb 20 03:08 0x0418.ini*
-rwxrwx---+ 1 root wheel 14542 Feb 20 03 :08 0x0419.ini*
-rwxrwx---+ 1 root wheel 14220 Feb 20 03:08 0x041f.ini*
-rwxrwx---+ 1 root wheel 16352 Feb 20 03:08 0x0422.ini*
-rwxrwx---+ 1 root wheel 16352 Feb 20 03:08 0x0426.ini*
-rwxrwx---+ 1 root wheel 16352 Feb 20 03:08 0x0427.ini*
-rwxrwx---+ 1 root wheel 6776 Feb 20 03:08 0x0804.ini*
-rwxrwx---+ 1 root wheel 98816 Feb 20 03:08 1026.mst*
-rwxrwx---+ 1 root wheel 100864 Feb 20 03:08 1031.mst*
-rwxrwx--- + 1 root wheel 8704 Feb 20 03:08 1033.mst*
-rwxrwx---+ 1 root wheel 104960 Feb 20 03:08 1036.mst*
-rwxrwx---+ 1 root wheel 99840 Feb 20 03:08 1038. mst*
-rwxrwx---+ 1 root wheel 98304 Feb 20 03:08 1045.mst*
-rwxrwx---+ 1 root wheel 99328 Feb 20 03:08 1048.mst*
-rwxrwx---+ 1 root wheel 95232 Feb 20 03:08 1049.mst*
-rwxrwx---+ 1 root wheel 91648 Feb 20 03:08 1055.mst*
-rwxrwx---+ 1 root wheel 94208 Feb 20 03:08 1058.mst*
-rwxrwx---+ 1 root wheel 93184 Feb 20 03:08 1062.mst*
-rwxrwx---+ 1 root wheel 92160 Feb 20 03:08 1063.mst*
-rwxrwx---+ 1 root wheel 4284416 Feb 20 03:08 1CEnterprise 8.msi*
-rwxrwx-- -+ 1 root wheel 69120 Feb 20 03:08 2052.mst*
-rwxrwx---+ 1 root wheel 215803500 Feb 20 03:09 Data1.cab*
-rwxrwx---+ 1 root wheel 2921 Feb 20 03:09 Setup .ini*
-rwxrwx---+ 1 root wheel 8704 Feb 20 03:08 adminstallrelogon.mst*
-rwxrwx---+ 1 root wheel 8704 Feb 20 03:08 adminstallrestart.mst*
-rwxrwx---+ 1 root wheel 2003176 Feb 20 03:09 instmsi30.exe*
-rwxrwx---+ 1 root wheel 274792 Feb 20 03:09 setup.exe*

Samba itself runs as root and runs as root, but the access rights to folders and files are based on the Windows checkboxes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question