pechkin: (Default)
pechkin ([personal profile] pechkin) wrote2017-02-18 09:48 pm

Samba и винды

Имею в конфигурации такие определения:

[arc]
comment = Архив
path = /mnt/arc
browsable = yes
read only = yes
guest ok = yes
;force user = nobody

[arcRW]
comment = Archive RW
path = /mnt/arc
browsable = no
read only = no
guest ok = no
#force user = pechkin

Идея заключается в том, что архив открыт на чтение всем, а на запись открыт только мне, знающему его UNC и свой пароль.

А проблема состоит в том, что на винде:

C:\Users\Pechkins>net use * /delete
There are no entries in the list.


C:\Users\Pechkins>net use * \\rasp\arc
Drive Z: is now connected to \\rasp\arc.

The command completed successfully.


C:\Users\Pechkins>net use * \\rasp\arcRW
The password is invalid for \\rasp\arcRW.

Enter the user name for 'rasp': pechkin
Enter the password for rasp:
System error 1219 has occurred.

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.

И моему разумению недоступно, ЧЯДНТ.

Временно можно удовлетвориться security through obscurity, просто спрятав открытые шеры, но вообще проблему надо решить.

Я помню, что у самбы были настройки разрешить в каждом шере редактирование определенным юзерам, но, опять же, мы все ходим на нее с одной машины, из-под одного аккаунта, и перелогиниваться будем забывать. Умнее двух шеров одного и того же места с разными полномочиями, мне ничего в голову не пришло.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting