Shamanches Posted April 25, 2016 Posted April 25, 2016 Pls, need tutorial for install samba for accessing samba share in my network (Armbian<->Win7) hardware: Orange PI PC v1.2 image "Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_desktop" i'm install SAMBA after create folder in home directories user /home/myuser/myfiles sudo apt install samba cifs-utils smbclient after edit sudo nano /etc/samba/smb.conf ... workgroup = MEM ... ... [myfiles] path = /home/myuser/myfiles browseable = Yes writable = Yes guest ok = Yes create mask = 0777 directory mask = 0777 ..... after sudo /etc/init.d/samba restart and see this share from windows pc, but I have been trying to get Thunar to browse network to no avail. When I click on "Browse network", I get this error message: Failed to open "/ on".
martinayotte Posted April 25, 2016 Posted April 25, 2016 Did you create samba users using "smbpasswd" ?
Shamanches Posted April 25, 2016 Author Posted April 25, 2016 Did you create samba users using "smbpasswd" ? Yes.... also shares on Armbian and Win7 without passwords. If access from Win7 to Armbian - normal create and change files If access from another comp whith Lubuntu to this Win7- normal create and change files If trying access from Armbian to Win7 - this errors... Also smbclient from Armbian to Win7 and Lubuntu: armbianen@orangepipc:~$ smbclient -L 192.168.1.10 -U% Domain=[MEM] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Connection to 192.168.1.10 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) NetBIOS over TCP disabled -- no workgroup available armbianen@orangepipc:~$ smbclient -L 192.168.1.111 -U% Domain=[MEM] OS=[Unix] Server=[Samba 4.1.6-Ubuntu] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (kornubox server (Samba, Ubuntu)) myworkfiles Disk print$ Disk Printer Drivers Domain=[MEM] OS=[Unix] Server=[Samba 4.1.6-Ubuntu] Server Comment --------- ------- ORANGEPI OrangePI server (Samba, Ubuntu) KORNUBOX kornubox server (Samba, Ubuntu) Workgroup Master --------- ------- MEM ORANGEPI
martinayotte Posted April 25, 2016 Posted April 25, 2016 Why are you using "-U%" ? Do you have the "armbianen" user existing on the Win7 machine ? Simply replace that with "-U <existing_win7_user>" ...
RagnerBG Posted April 25, 2016 Posted April 25, 2016 and see this share from windows pc, but I have been trying to get Thunar to browse network to no avail. When I click on "Browse network", I get this error message: Failed to open "/ on". I got the same error in XFCE Thunar, at least those in Armbian. While in LXDE PCManFM i browse samba shares with no problem. I think you should be able to access samba shares by putting direct link - smb://<youradress_or_sharename>. Or if there are still problems you can use this form - smb://user:password@<yourshare>.
Shamanches Posted April 26, 2016 Author Posted April 26, 2016 Why are you using "-U%" ? Do you have the "armbianen" user existing on the Win7 machine ? Simply replace that with "-U <existing_win7_user>" ... I think problem is that the other, smbclient -L 192.168.1.111 have existing user (see top) if direct link - smb://192.168.1.111 have same problem..... also sudo apt install pcmanfm direct link - smb://192.168.1.111 have same problem..... Hmm, command smbtree i see all shares in network....
voyager5874 Posted April 26, 2016 Posted April 26, 2016 to be able to use thunar "browse network" sidebar link: http://crunchbang.org/forums/viewtopic.php?id=25943
Shamanches Posted April 26, 2016 Author Posted April 26, 2016 i'm just sudo apt install gvfs gvfs-common gvfs-daemons gvfs-libs gvfs-bin gvfs-fuse gvfs-backends gvfs-dbg xmms2-plugin-gvfs -y strangely why "Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_desktop" don't content this pakages... one problem solved - i can see in thunar names computers from my network, but on windows share asking login:pass ??? if from another comp whith Lubuntu access to this Win share - all normal... different smb.conf configs Lubuntu and Armbian, in this line: server string = %h server (Samba, Ubuntu) Lubuntu smb.conf contains this line Lubuntu: Samba version 4.1.6-UbuntuArmbian: Samba version 4.2.10-Debian
voyager5874 Posted April 26, 2016 Posted April 26, 2016 mount –t cifs //share /mnt/some_folder username=usernameonwindowsmachine,password=passwordforwindowsmachine
voyager5874 Posted April 26, 2016 Posted April 26, 2016 forgot about -o (options) i.e. sudo mount –t cifs //share /mnt/some_folder -o username=usernameonwindowsmachine,password=passwordforwindowsmachine try this one: https://linhost.info/2012/05/mount-a-network-share-in-linux-ubuntu/
RagnerBG Posted April 26, 2016 Posted April 26, 2016 sudo apt install gvfs gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-dbg gvfs-fuse gvfs-libs xmms2-plugin-gvfs I forgot, i have those packages installed for LXDE desktop. I explicitly install everything suggested and recommended that is related to network for not to have problems later , as i actively use samba shares in my tiny home network. I did not think about this when tried Armbian Desktop images.
tkaiser Posted April 26, 2016 Posted April 26, 2016 one problem solved - i can see in thunar names computers from my network, but on windows share asking login:pass ??? So you solved service propagation/discovery but are still stuck with authentication against the Windows host? What about trying to debug the problem? Increasing verbosity (interactive mode using smbclient -v)?
martinayotte Posted April 26, 2016 Posted April 26, 2016 Personally, with my OPi-PC with Armbian 5.05, I've have no problem with smbclient connecting to Win7 shares, as long as I use proper credential ...
Shamanches Posted April 27, 2016 Author Posted April 27, 2016 So you solved service propagation/discovery but are still stuck with authentication against the Windows host? What about trying to debug the problem? Increasing verbosity (interactive mode using smbclient -v)? @orangepipc:~$ smbclient -L 192.168.1.10 -v Enter nameusers's password: NTLMSSP packet check failed due to short signature (0 bytes)! NTLMSSP NTLM2 packet check failed due to invalid signature! Anonymous login successful Domain=[MEM] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Connection to 192.168.1.10 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) NetBIOS over TCP disabled -- no workgroup available @orangepipc:~$ cat /var/log/samba/log.nmbd [2016/04/27 11:22:24, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.10-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2016/04/27 11:22:24.275535, 0] ../source3/lib/util_sock.c:478(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available [2016/04/27 11:22:24.276626, 0] ../source3/lib/util_sock.c:478(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available [2016/04/27 11:22:24.276880, 0] ../source3/lib/util_sock.c:478(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available [2016/04/27 11:22:24.278477, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'nmbd' finished starting up and ready to serve connections cat /var/log/samba/log.smbd [2016/04/27 11:21:07.037564, 0] ../lib/util/pidfile.c:153(pidfile_unlink) Failed to delete pidfile /var/run/samba/smbd.pid. Error was No such file or directory [2016/04/27 11:22:25, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/log/samba/cores': has 0777 should be 0700 [2016/04/27 11:22:25, 0] ../source3/lib/dumpcore.c:59(get_default_corepath) Failed to create /var/log/samba/cores for user 0 with mode 0700 [2016/04/27 11:22:25, 0] ../source3/lib/dumpcore.c:250(dump_core_setup) Unable to setup corepath for smbd: Success [2016/04/27 11:22:25, 0] ../source3/smbd/server.c:1241(main) smbd version 4.2.10-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2016/04/27 11:22:26.291021, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'smbd' finished starting up and ready to serve connections [2016/04/27 11:22:26.317116, 0] ../source3/lib/util_sock.c:478(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 445 failed with error = Protocol not available Unable to connect to CUPS server localhost:631 - Bad file descriptor failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL Unable to connect to CUPS server localhost:631 - Bad file descriptor failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
tkaiser Posted April 27, 2016 Posted April 27, 2016 @orangepipc:~$ smbclient -L 192.168.1.10 -v Enter nameusers's password: So there's a valid account called 'nameuser' on your Windows machine? Or why do you suppress logon credentials? Anyway: Time to stop, this is not an Armbian problem at all. BTW: A recent Samba update broke compatibility with certain Windows installations. Maybe you're affected (don't know since I'm in the happy position to almost never deal with Windows): https://forums.linuxmint.com/viewtopic.php?f=234&t=220491
Shamanches Posted April 27, 2016 Author Posted April 27, 2016 Ok, why this windows share work in Lubuntu, dont work in Armbian with standart settings after default install OS??? i'm still working on it..... This work: sudo mkdir /mnt/folder mount.cifs //192.168.1.10/folder_on_win7/ /mnt/folder/ But dont work in Thunar, pcmanfm
tkaiser Posted April 27, 2016 Posted April 27, 2016 Ok, why this windows share work in Lubuntu, dont work in Armbian with standart settings after default install OS??? This is a question only you can answer. You always mix up everything with everything, exchange client and server role, do not use real 'logon credentials' but always rely on your LOCAL username when trying to access the Windows machine and so on. Start with a more methodological approach and you will succeed. At least try to use a dedicated username when using smbclient (-U $USER-THAT-DOES-EXIST-ON-WINDOWS)
Shamanches Posted April 28, 2016 Author Posted April 28, 2016 of course, if create share on Win7 with access user:pass - all normally access on this share from ArmbianÑŽ if accessing this share on Windows "public" (without password) - armbian asking user:pass for this share on Windows....
eternalWalker Posted May 11, 2016 Posted May 11, 2016 I think that this is the easiest solution : (smb.conf) w/o pass...etc....etc [global] workgroup = YOUR_WORKGROUP server string = Samba Server netbios name = SERVER security = user map to guest = Bad User guest account = root load printers = no printing = bsd printcap name = /dev/null disable spools = yes log file = /var/log/samba/%m.log max log size = 50 dns proxy = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 [My Public Share] guest ok = yes # Next line to adjust (!) path = /public available = yes browsable = yes public = yes writable = yes You can delete, copy, move files..... Es work for me everytime Great eW
Honor Posted January 3, 2017 Posted January 3, 2017 hi all comunity!! Sorry my english! i have a problem with use command cifs ..... root@bananapipro:/media# mount.cifs //192.168.1.10/Elements /media/Elements/ Password for root@//192.168.1.10/Elements: mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) root@bananapipro:/media# I can´t mount share units other device in my lan. Anybody can Helpme?? im blocked!! THX ALL!!! H NEW YEAR
makama80 Posted January 4, 2017 Posted January 4, 2017 Don't know if it's relevant, but I always use Webmin to configure samba on my boards running armbian (debian). For those who don't know Webmin: Webmin provides a web-based management console for linux computers In combination with the authentic theme (needs separate installation) Webmin provides a reasonable modern user interface for all kinds of linux management tasks. It also includes a module for samba. Give it a try; I think it makes life easier especially when you do not have a desktop running. Installing is easy and straight forward; start at 'Using the Webmin APT repository' on this page: Webmin After installing start your browser and go to https://yourarmbiancomputer:10000 and Webmin should give you response. I guess it will also work for ubuntu, but have not tried it yet. There is lots of other information and add-ons on the webmin website so give it a try. -End of the commercial break- 1
Recommended Posts