Results 1 to 7 of 7

Thread: Connecting to windows shared folder with rw permissions

  1. #1

    Default Connecting to windows shared folder with rw permissions

    Hi guys, I'm trying to figure out how to do this right ... without success

    My problem, is: I have a machine running on windows 10, with some shared folder "sharedfolder" and I gave to "myNetUser" the permission to read and write. Now I'm trying to mount my shared folder on my OpenSuse machine but I have no permission to write on that folder, when I use:
    Code:
    sudo mount -o username=myNetUser,password=thePassword //192.168.0.19/sharedfolder /mnt/sharedfolder
    In my linux machine the user is "linuxUser" ... if that's a problem (as it's different from "myNetUser")

    The "strange thing" is that if I use dolphin and I go to network > samba network and I put 192.168.0.19/sharedfolder I can access the windows machine folder and write on it ... but how can I mount it? and how to auto mount the folder at OS startup?

    Thanks, for any help about it

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Connecting to windows shared folder with rw permissions

    Maybe...

    - Explicitly specify the smb protocol in your mount command
    - Verify the Workgroup/Domain name is specified correctly (ie careful with the camel case), if the Client's Hostname doesn't naturally pass that, then specify in the username, et name@domain. Your client's SAMBA config may be providing this automatically.

    Share logs on the Server can usually provide a clue exactly what the error is.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,777

    Default Re: Connecting to windows shared folder with rw permissions

    To begin with, I am not a Windos user and not a Samba user.

    But when it is working when it is mounted by Dolphin, why do you not look how it is mounted then and copy that to your fstab entry?

    Code:
    mount
    and search to the list, I bet you can identify it.
    Henk van Velden

  4. #4

    Default Re: Connecting to windows shared folder with rw permissions

    Hey guys!

    TSU, I tried to figure out the "Explicitly specify the smb protocol ..." part and I supposed it would be something like smb://192.168... but it doesn't worked (considering that one as the way to do it)

    So I made some more test (as dolphin can do it!!), and found a way to make it works for my "linuxUser":

    Code:
    sudo mount -t cifs //192.168.0.19/sharedfolder /mnt/sharedfolder -o username=myNetUser,password=thePassword,uid=linuxUser
    hcw, I'd like to understand how can I see the way Dolphin mount the shared folder. Where it is supposed to be? Where should I search for it?

    Thanks a lot guys!!!

  5. #5
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: Connecting to windows shared folder with rw permissions

    Quote Originally Posted by merlino View Post
    Hey guys!

    TSU, I tried to figure out the "Explicitly specify the smb protocol ..." part and I supposed it would be something like smb://192.168... but it doesn't worked (considering that one as the way to do it)

    So I made some more test (as dolphin can do it!!), and found a way to make it works for my "linuxUser":

    Code:
    sudo mount -t cifs //192.168.0.19/sharedfolder /mnt/sharedfolder -o username=myNetUser,password=thePassword,uid=linuxUser
    hcw, I'd like to understand how can I see the way Dolphin mount the shared folder. Where it is supposed to be? Where should I search for it?

    Thanks a lot guys!!!
    ... as Henk said, after you mount it in Dolphin, simply drop to a terminal and issue the command:
    Code:
    mount
    You then will see a list of the mounts and the options they are loaded with.
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  6. #6

    Default Re: Connecting to windows shared folder with rw permissions

    Ok! I was assuming that mount cannot go without any option or flag!

    That's great! Thanks!

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,777

    Default Re: Connecting to windows shared folder with rw permissions

    Quote Originally Posted by merlino View Post
    Ok! I was assuming that mount cannot go without any option or flag!

    That's great! Thanks!
    Well, as with any command you use, you should at least check what it is used for mainly and maybe even in more detail by reading:
    Code:
    man mount
    But the main question is not if you now understand what we advised you to do, but if you did it and if it helped. And maybe even show what you got, so we can offer advise on what you see and how to interprete it.
    Henk van Velden

Posting Permissions

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