Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: File Sharing over network

  1. #1
    Join Date
    Aug 2009
    Beans
    22

    File Sharing over network

    Hi,
    On attempting to share a folder whilst running Ubuntu I get the message:
    "'net usershare' returned error 255: net usershare add: cannot share path /media/115Gig/Documents and Settings/Dave/My Documents/Azureus 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."

    I eventually discovered how to search for files! (I'm totally green to Ubuntu & Linux) only to find there are 4 or 5 'smb.conf' files, and looking at them I'm not at all sure where or how to insert the command.

    Any help gratefully accepted.

    Dave.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File Sharing over network

    Are those shared directories on Windows or Ubuntu ?

    See if this helps : Samba Server

    You need to be the owner of the files you are wanting to share.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Aug 2009
    Beans
    22

    Re: File Sharing over network

    Quote Originally Posted by bodhi.zazen View Post
    Are those shared directories on Windows or Ubuntu ?

    See if this helps : Samba Server

    You need to be the owner of the files you are wanting to share.
    Ahh OK... 2 hard discs in the PC one is windows one is Ubuntu.
    I'm booted from the Ubuntu disc.
    Ubuntu can quite happily see all my windows shares on my other PC's over my network.
    I want my other PC's to be able to get at stuff on the windows disc as it can when I boot from windows.
    Ubuntu can see the disc and it's contents no problem, it's just the network share I want to be able to set up.

    Hope this makes sense!

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File Sharing over network

    I am assuming your windows partition is mounted at /media/115Gig/

    In which case you need to unmount it and re-mount is so that you are the owner.

    mount -t ntfs-3g /dev/sda1 /media/115Gig -o username=you,umask=000

    Change your "dev/sda1" to the actual partitoin and "username=you" to username=yoru log in name

    See also : How to fstab - Ubuntu Forums
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5
    Join Date
    Aug 2009
    Beans
    22

    Re: File Sharing over network

    er, thank you... I think!
    You are correct about the path 'mounted at'? /media/115Gig
    (sorry, us beginners aren't too hot on what mounting means!)
    I started Gparted which shows /dev/sda1 does have the label 115Gig
    I know my username OK so all I need to know now is how & where to issue this "mount" command?
    And will this be a one off or is there a way I can get Ubuntu to do this mount each time I boot instead of /media/115Gig/
    Sorry to be a pain, but what is the reason I cant just change or become the owner of /media/115Gig/ ?

    Cheers,
    D.

  6. #6
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File Sharing over network

    The reason you can not change the owner of your windows partition is that ntfs (and FAT) do not support such things.

    So ownership and permissions are set at the time a partition is mounted.

    So open a terminal and enter

    sudo umount /media/115Gig

    sudo mount ... # The command I gave you.

    To set permissions on the partition you need to edit /etc/fstab

    see the link I gave you, it is long, but should walk you through the process.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  7. #7
    Join Date
    Nov 2008
    Location
    Taiwan
    Beans
    446
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: File Sharing over network

    In add/remove install "NTFS Config" and then launch it "system/Administration/NTFS configuration Tool" Then you will automatically mount your windows drive on boot.

    Then

    1.) install system-config-samba

    Code:
    sudo apt-get install system-config-samba
    2.) configure system-config-samba

    configure it

    Code:
    sudo system-config-samba
    click add folder - make it writable and visable and under access make it accessible to all users to let the windows box access this new share folder.

    3. under preferences\security change auth mode to "share"
    then change the guest account to your ubuntu user name and you are done.

    Once you reboot you will have shared folders working and all your drives mounted. This should take care of your troubles

    I hope that helps

    Powel

  8. #8
    Join Date
    Aug 2009
    Beans
    22

    Re: File Sharing over network

    Hmmmm...
    Just done all that...
    after I'd umnounted it, 115Gig no longer existed so I found out how to make the directory in /media and re-created it.
    Then I did the mount which worked.
    But I still have exactly the same problem.
    I just went back into my window & the directory /media/115Gig still says it's owned by 'root' or doesn't that matter?

    The original error was saying that the folder I was trying to share wasn't owned by me.
    So I went to that folder in the terminal window & I see it is still owned by root?
    " 7372 drwxrwxrwx 1 root root 53248 2009-08-02 13:14 Azureus"

    Did I do something wrong?

  9. #9
    Join Date
    Aug 2009
    Beans
    22

    Re: File Sharing over network

    (my last reply was to Bohi, I've not tried what Powel says yet.)

  10. #10
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File Sharing over network

    Quote Originally Posted by Dave.E View Post
    Hmmmm...
    Just done all that...
    after I'd umnounted it, 115Gig no longer existed so I found out how to make the directory in /media and re-created it.
    Then I did the mount which worked.
    But I still have exactly the same problem.
    I just went back into my window & the directory /media/115Gig still says it's owned by 'root' or doesn't that matter?

    The original error was saying that the folder I was trying to share wasn't owned by me.
    So I went to that folder in the terminal window & I see it is still owned by root?
    " 7372 drwxrwxrwx 1 root root 53248 2009-08-02 13:14 Azureus"

    Did I do something wrong?
    re-mount the partition changing the owner to you

    mount /dev/sda1 /media/115Gig -o uid=you,gid=you,umask=000
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •