Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Windows shares

  • 03-07-2011 08:59AM
    #1
    Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭


    I'm using Ubuntu 11.4 Live USB and trying to access a Windows share.

    The share is in the format \\server@8080\DavWWWRoot\Department and no matter what permutation of entries I use in File->Connect to Server I cannot seem to connect. I've tried regular Windows Share, WebDav and Secure WebDav. This share is a Windows Sharepoint share and I reckon it's the @8080 bit that is messing me up. I can access the web interface, no problem, but I would like to be able to edit the files also via a regular share (which of course I can do no problem on Windows).

    I have confirmed I can actually connect to another share that is in the format \\server\share. I can browse and open files without problem.

    Any suggestions?


Comments

  • Moderators, Technology & Internet Moderators Posts: 1,336 Mod ✭✭✭✭croo


    I know nothing about windows shares, but normally url syntax is \\server: port\ rather than \\server@port\ might it be this simple? Actually I think the full format is \\username: password@domain: port\" so if the first fails maybe try with a user & password too

    note: I have a space between : & p so it didn't display as :p


  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    croo wrote: »
    I know nothing about windows shares, but normally url syntax is \\server: port\ rather than \\server@port\ might it be this simple?

    Unfortunately not. :)

    It is a Sharepoint share, so I think there is something funky going on. I have to map it on the Windows PC with the @port bit, it doesn't work without. So I assume I have to do the same in Ubuntu.
    croo wrote: »
    Actually I think the full format is \\username: password@domain: port\" so if the first fails maybe try with a user & password too

    Yeah, I've tried all permutations, still no joy. There are fields in the Connect to share... dialogue box to allow entry of username, password, domain and even folder.


  • Registered Users, Registered Users 2 Posts: 2,770 ✭✭✭niallb


    If you're using gnome, try the dropdown menu "Service Type" in "Connect to Server"
    and instead of Windows Share have a go again with Webdav HTTP or HTTPS.

    Put in the servername/port/username/sharename in the boxes and see how you get on.
    No need for the @ in front of the 8080

    If it works, can you let us know here what version of Sharepoint you're accessing,
    and whether it worked with HTTP or HTTPS ?


  • Registered Users, Registered Users 2 Posts: 2,370 ✭✭✭Knasher


    If you are mounting from the command line or via fstab then you are using smbmount which takes an option for the port according to the smbmount manpage. I'm not sure how you specify this argument from the GUI though, is doing it from the command line enough?


  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    niallb wrote: »
    If it works, can you let us know here what version of Sharepoint you're accessing,
    and whether it worked with HTTP or HTTPS ?

    Will do. I should hopefully get a couple of hours at this next week.
    Knasher wrote: »
    If you are mounting from the command line or via fstab then you are using smbmount which takes an option for the port according to the smbmount manpage. I'm not sure how you specify this argument from the GUI though, is doing it from the command line enough?

    I grew up with command lines. Ah, how I miss VAX/VMS. :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 368 ✭✭backboiler


    Command line: now you're talking!. Try this:
    mount -t cifs -o rw,port=8080,user=${your_windows_username},domain=${your_windows_workgroup} //server/DavWWWRoot/Department /mnt/mountpoint
    
    You may need to shorten the windows path to the shared directory only (i.e. maybe you'll have to drop the "/Department" bit). Note that you use forward slashes.


  • Registered Users, Registered Users 2 Posts: 2,770 ✭✭✭niallb


    backboiler wrote: »
    mount -t cifs -o rw,port=8080,user=${your_windows_username},domain=${your_windows_workgroup} //server/DavWWWRoot/Department /mnt/mountpoint

    Love to see that work. Do you know from experience if Sharepoint does default to offering shares both by DAVFS and CIFS, or if they are seperately configured?


  • Registered Users, Registered Users 2 Posts: 368 ✭✭backboiler


    niallb wrote: »
    Love to see that work. Do you know from experience if Sharepoint does default to offering shares both by DAVFS and CIFS, or if they are seperately configured?

    Not a notion. There's a davfs FS type available too (F15 has it in the "davfs2" package).
    Have a look at "man mount.davfs" for more information but it looks like you might need to have your credentials in a file... yuck.


  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    backboiler wrote: »
    Command line: now you're talking!. Try this:
    mount -t cifs -o rw,port=8080,user=${your_windows_username},domain=${your_windows_workgroup} //server/DavWWWRoot/Department /mnt/mountpoint
    
    You may need to shorten the windows path to the shared directory only (i.e. maybe you'll have to drop the "/Department" bit). Note that you use forward slashes.

    Bah, it's saying the host is down.

    Despite the fact that I can ping both the hostname and the host IP address.


  • Registered Users, Registered Users 2 Posts: 368 ✭✭backboiler


    Mightn't be a smb server running on the machine. Try the davfs, maybe?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Tom Dunne wrote: »
    Bah, it's saying the host is down.

    Despite the fact that I can ping both the hostname and the host IP address.

    Can you telnet to that port?


  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    backboiler wrote: »
    Mightn't be a smb server running on the machine. Try the davfs, maybe?

    Tried that. I even tried downloading and installing fusedav to give it a go at the command line. No joy.
    Khannie wrote: »
    Can you telnet to that port?

    Yeah, I can telnet to it no problem. I also did a portscan and it shows port 8080 is open for http traffic, which is why I tried fusedav above.

    I'm resolving myself to the fact that I will not be using Linux as my day to day OS in the job. Ah well.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Tom Dunne wrote: »
    I'm resolving myself to the fact that I will not be using Linux as my day to day OS in the job. Ah well.

    NOOOOO! The promised land awaits!


  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    Khannie wrote: »
    NOOOOO! The promised land awaits!

    Not to worry - I have two Linux servers running (32 bit and 64 bit). At least I get to play around with them and let my students try to break them.


Advertisement