18 мая 2012 г.

Ошибка 255 при запуске 'net usershare': net usershare add: cannot share path /media/846 as we are restricted to only sharing directories we own.Ask the administrator to add the line "usershare owner only = false"to theusershare owner only false to the global section of the smb.conf to allow this

Столкнулся с ситуацией, когда при использовании двух компьютером под Ubuntu 12.04, по локальной сети, нужно было "расшарить" раздел с файловой системой NTFS.
При попытке, стандартными средствами сделать общую папку появлялось сообщение вида:
Ошибка 255 при запуске 'net usershare': net usershare add: cannot share path /media/846 as we are restricted to only sharing directories we own.Ask the administrator to add the line "usershare owner only = false"to theusershare owner only false to the global section of the smb.conf to allow this
 в итоге нужно открыть файл
sudo nano /etc/samba/smb.conf 
и в секцию

#======================= Global Settings =======================
нужно добавить строку
usershare owner only = false
у меня вышло так

#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP
   usershare owner only = false
# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)
после этого сохранить отредактированный файл и выполнить команду перезапуска
sudo /etc/init.d/smbd restart
после этого раздел под файловой системой NTFS открыл свой общий доступ по локальной сети.

Комментариев нет:

Отправить комментарий

 

CopyPaste Copyright © 2017 - |- Шаблон создан O Pregador - |- Отредактирован myr4ik07