On Wed, Jun 29, 2016 at 9:08 PM, Marcus MERIGHI <mcmer-open...@tor.at> wrote:
> mohammedrasha...@gmail.com (Rashad Kanavath), 2016.06.29 (Wed) 19:18 > (CEST): > > I tried to mount a network drive using shlight. But it is not working. > Here > > is the command with verbose output. > > > > using smbclient -L ... , I can list the drive. so this must be something > > else. > > I haven't tested this lately, this is just what I could find quickly. > > Last time I tried I couldn't make it work, too. I turned to: > > sysutils/usmb > > mount SMB shares from userland via FUSE > > Description: > usmb lets you mount SMB shares as unprivileged users via FUSE, in the > vein of Windows' Map Network Drive facility. It differs from the other > FUSE SMB filesystems (fusesmb, SMB for FUSE) in that it doesn't have > Network Neighbourhood functionality: this means that you can mount > shares that you can't see via NetBIOS browsing. > > (Note: unprivileged mounting requires both kern.usermount=1 and access > to /dev/fuse0). > > > The last sentence apparently did not work for me. I did not try too > hard, though, iirc. > > My ~/.usmb.conf (with file permissions for root, since I was running > this via doas): > > <mount id="wd" credentials="whoa"> > <server>10.10.10.254</server> > <share>WiFiDisk1_Volume1</share> > <mountpoint>/mnt</mountpoint> > <!-- does not work > <options>uid=fifi,gid=fofo,umask=022</options> > --> > </mount> > > And in ~/.kshrc: > alias wlandisk="doas usmb wd" > Thanks Markus. It worked for me. However I miss the option allow_other to have read and write without root privilages. I see there are some options in the doc. But I didn't looked it properly. will test this later and report back if any issues. > Bye, Marcus > > > !DSPAM:577402f7267669153224385! > -- Regards, Rashad