Share files

Asked by NoWay

I try to share a catalog, but get this message:

'net usershare' returned error 255: net usershare add: cannot share path /media/disk/Common Linux-MS Data/Personal/Trollsvingen 6 as we are restricted to only sharing directories we own.

Ask the administrator to add the line "usershare owner only = False"
 to the [global] section of the smb.conf to allow this.

When I try to edit the sbm.conf file in folder /usr/shareI can not get permission to save it. I have admin permission according to the properties ticked in user privileges.
What shall I do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /etc/samba/smb.conf

give your user password when requested, you don't see nothing when you type it, then press enter.

Make your change and restart samba, type:

sudo /etc/init.d/samba restart

Hope this helps

Revision history for this message
Robert Di Gioia (digioiar) said :
#2

Hi.

you need to start your editor from a terminal window and use either gksudo if you are using a graphical editor like gedit or sudo if you are using a text-based editor like vi/vim, nano, etc.

To open a terminal window, go to Applications->Accessories->Terminal

In the terminal window, start your editor. If you want to use gedit (which is like Windows Notepad) type the command

gksudo gedit /usr/share/samba/smb.conf

The system will pop up a dialog box so that you can enter your password.

if using a text based editor your command will be as follows. Note that when the system asks for your password, you will not see anything when you type it in, but go ahead and enter it and press enter, it is ok.

sudo vi /usr/share/samba/smb.conf

BTW, there is also an smb.conf file in /etc/samba, I'm not sure which one is used by the system.

Good luck

Revision history for this message
NoWay (engen) said :
#3

Thanks marcobra, that solved my question.