DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st March 2017
dragan dragan is offline
New User
 
Join Date: Feb 2017
Posts: 4
Default Mounting smb share

Good day to everyone.

So I've tried mounting using:

1. shlight (it always reports wrong password, even though it's not -D0xFF)
2. usmb (this one randomly disconnects from mount, very unstable, not sure why).
3. gvfs-mount

As far as #3 is going, I'm not sure I'm using it the right way.
I tried
Code:
#export $(dbus-launch)
#gvfs-mount smb://1.2.3.4/share
gvfs-mount -l does show a mount but it's not mounted under ~/.gvfs. Or anywhere.

I tried adding following to .xinitrc to be persistant across logins, but then again, I'm not sure this is the right way to use gvfs-mount.

Code:
#exec dbus-launch --exit-with-session --sh-syntax ssh-agent spectrwm
How do you all mount your smb shares on OpenBSD? I don't care which one I'm using as long as it works from terminal.

Thanks a lot.
Reply With Quote
  #2   (View Single Post)  
Old 2nd March 2017
MatthiasKoch MatthiasKoch is offline
Real Name: Matthias Koch
Port Guard
 
Join Date: Mar 2016
Location: Germany
Posts: 37
Default

Hi Dragan,

I'm executing this script:

Code:
if
    ! [ -e <targetdir>/.volume_id ]; then
        shlight //<remotemachine>/<share> <targetdir> -f 440 -d 550 -U <username> -P <password> -W <workgroup>
else
    echo "Volumen war schon eingehängt."
fi
It has always worked for me. I place a file named .volume_id in the remote share, which can be evaluated to make sure no other share is mounted, or the right share is mounted, or whatever.

HTH
Matthias
Reply With Quote
  #3   (View Single Post)  
Old 11th March 2017
dragan dragan is offline
New User
 
Join Date: Feb 2017
Posts: 4
Default

Thanks for helping.
It doesn't work.

I haven't mentioned I'm tunnelling smb over ssh, but that is not the issue.

Code:
 > doas shlight //127.0.0.1/dst /dst -f 440 -d 550 -U ABC -P 123 -W WORKGROUP -C -D0xFF 
psitable_insert(): inserting inode 449722290: -><-
Kernel: smb_proc_connect: Passed SESSION REQUEST.
Kernel: len: 113, wct: 17, bcc: 44
Kernel: smb_proc_connect: Request SMBnegprot..Kernel: Verified!
Kernel: smb_proc_connect: Server wants NT LANMAN 1.0 protocol.
Kernel: smb_proc_connect: password = 123
Kernel: smb_proc_connect: usernam = ABC
Kernel: smb_proc_connect: blkmode = 0
Kernel: smb_proc_connect: workgroup = WORKGROUP
Kernel: len: 35, wct: 0, bcc: 0
Kernel: smb_errno: Kernel: ERRDOS - ERRnoaccess (Access denied.)Kernel: 
Kernel: smb_proc_connect: SMBsessetupX failed
error connecting to server: [13] Permission denied
SMB server is on FreeBSD. From another FreeBSD I mount without any issues.

:/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seven Most .. please share with us .. daemonfowl Off-Topic 19 29th July 2013 11:34 PM
Mounting samba share as normal user rex FreeBSD General 4 27th October 2008 05:17 PM
pf Share problem! jleal OpenBSD Security 6 25th August 2008 04:08 AM
Funny things in /usr/share/misc ivanatora FreeBSD General 4 10th August 2008 02:13 PM
Samba global share Weaseal General software and network 1 17th July 2008 10:48 AM


All times are GMT. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick