Jump to content


Photo

can't install smbnetfs


  • Please log in to reply
51 replies to this topic

Re: can't install smbnetfs #41 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 20 September 2013 - 09:19

for me cd-ing with proper credentials works, eg. cd /media/samba/user:password@server/share

but automatically it's not mounted. tried the auth directive in smbnetfs.auth and also in smbnetfs.conf + chmod600, no success... going to make more tests...


T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: can't install smbnetfs #42 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 20 September 2013 - 09:31

update: the "auth server user password" in smbnetfs.conf is working (but you need to chmod 600 that file), now I can cd the share without credentials, but it's still not automounting...


T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: can't install smbnetfs #43 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 20 September 2013 - 09:49

But this is a command line action. And I think some GUI support would be needed here (e.g. like the way the networkbrowser handles this).



Re: can't install smbnetfs #44 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 20 September 2013 - 10:45

ok, so the issue is, that the IPC$ share (here is the list of shared folders) is secured on newer OSses (I have win7), but we can use the link directive in smbnetfs.conf

so we need to enter these lines to that file and chmod 600 afterwards

 

auth 192.168.100.102 user password
link remote_pc 192.168.100.102/share

 

but, after restart it's not working, i have to start the script from init.d manually. In rc.d it exists... I enbled the logging, and after restart even the logfile is not created

performance is also not the best, maximum speed was 3MB/s in my tests

 

EDIT: additional info


Edited by petike, 20 September 2013 - 10:47.

T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: can't install smbnetfs #45 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 20 September 2013 - 10:53

I indeed have to start the script manually after every reboot.



Re: can't install smbnetfs #46 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 20 September 2013 - 11:21

modify the script in init.d like this:

/usr/bin/smbnetfs -o allow_root config=/home/root/.smb/smbnetfs.conf /media/samba

devs, can you make this change, too? at system startup it's not finding the config file...


T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: can't install smbnetfs #47 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 21 September 2013 - 03:52

Which box are you using? Important because it might explain why you don't have "fuse" which should have been integrated in your kernel.

So apparently 'fuse' isn't then in the Solo2-kernel?



Re: can't install smbnetfs #48 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 21 September 2013 - 03:53

modify the script in init.d like this:

/usr/bin/smbnetfs -o allow_root config=/home/root/.smb/smbnetfs.conf /media/samba

devs, can you make this change, too? at system startup it's not finding the config file...

That indeed does the trick.



Re: can't install smbnetfs #49 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 21 September 2013 - 13:25

ok, so the issue is, that the IPC$ share (here is the list of shared folders) is secured on newer OSses (I have win7), but we can use the link directive in smbnetfs.conf

For me, on the SH4 receiver, to see the W7 shares is enough add in the smbnetfs.conf:
show_hidden_hosts "yes"

 

Then link is not required.


Re: can't install smbnetfs #50 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 22 September 2013 - 16:03

For me, on the SH4 receiver, to see the W7 shares is enough add in the smbnetfs.conf:
show_hidden_hosts "yes"

 

Then link is not required.

 

great, this works for me, too :)

just one more thing, if there are filename encoding issues (were for me), you can add these lines:

 

samba_charset "utf-8"
local_charset "utf-8"

T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: can't install smbnetfs #51 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 22 September 2013 - 16:49

I only set:
local_charset  "utf-8"
I do not really understand what smbnetfs used from samba. I am not specified smb.conf and everything works.
To disable warning about .smb directory, when start smbnetfs, and set default /etc, I created the patch:
--- src/reconfigure.c.org    2010-09-04 02:03:56.000000000 +0300
+++ src/reconfigure.c    2013-09-22 17:20:57.611774051 +0300
@@ -31,7 +31,7 @@
};


-const char    *config_dir_postfix    = "/.smb";
+const char    *config_dir_postfix    = "/";
char        config_file[256]    = "smbnetfs.conf";
char        config_dir[2048]    = "/";
int        config_cmd_opts_cnt    = 0;
@@ -106,7 +106,7 @@
}
auth_set_default_login_name(user);

- home = getenv("HOME");
+ home = "/etc";
if ((home == NULL) || (*home != '/')){
    home = ((pwd != NULL) &&
     (pwd->pw_dir != NULL) &&

I see that smbnetfs using samba library libsmbclient.so.0 but for what purpose? I would be happy that may not use the library of a size similar to the Enigma. :)

I have not installed  smaba, only the libraries and everything works.


Edited by Taapat, 22 September 2013 - 16:52.


Re: can't install smbnetfs #52 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 22 September 2013 - 17:23

I think that my next step would be to create a simple plugin to be able to browse the shares and set a password if necessary.
But I'm not really sure if this is necessary. Set the authentication in the file smbnetfs.user.conf even via ftp in my opinion is easier instead with the receiver remote.



16 user(s) are reading this topic

0 members, 16 guests, 0 anonymous users