[solved ] access a SAMBA network folder

Post here if you are a new Porteus member and you're looking for some help.
User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#31 by amplatfus » 13 Jun 2013, 06:20

Hamza wrote:WORKGROUP?
Should I change it?
This is set by default in SAMBA config.

Thanks
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: access a SAMBA network folder

Post#32 by Hamza » 13 Jun 2013, 12:57

No, just write workgroup in uppercase.
NjVFQzY2Rg==

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#33 by amplatfus » 13 Jun 2013, 13:18

Hamza wrote:No, just write workgroup in uppercase.
:( is not working only with KDE 2.1 RC1
I am still searching.

Thank you for support,
amplatfus
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: access a SAMBA network folder

Post#34 by fanthom » 13 Jun 2013, 14:18

cifs-utils were recompiled under rc1 to get rid of additional deps.
please install this package from standard slackware-14.0 and let us know if that helped.
Please add [Solved] to your thread title if the solution was found.

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#35 by amplatfus » 13 Jun 2013, 19:31

fanthom wrote:cifs-utils were recompiled under rc1 to get rid of additional deps.
please install this package from standard slackware-14.0 and let us know if that helped.
Thank you. I have installed cifs-utils-5.5-x86_64-2.txz and now trying to configure, because:

Code: Select all

bash: /sbin/mount.cifs: cannot execute binary file
I have downloaded the package with Porteus Packet Manager from Slackware 14.0.
I'll keep forum updated. Hope to see soon solved in subject :)

Best regards,
amplatfus
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: access a SAMBA network folder

Post#36 by fanthom » 14 Jun 2013, 08:37

are you using 32bit or 64bit porteus?
if 32bit then please install 32bit version from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... i486-2.txz

also - please remember to run 'mount.cifs' command as root.
if you still get the same error message then boot in 'Always Fresh' mode -> install this package -> check again.
Please add [Solved] to your thread title if the solution was found.

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#37 by amplatfus » 16 Jun 2013, 14:01

fanthom wrote:are you using 32bit or 64bit porteus?
if 32bit then please install 32bit version from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... i486-2.txz

also - please remember to run 'mount.cifs' command as root.
if you still get the same error message then boot in 'Always Fresh' mode -> install this package -> check again.
Dear all,

I have tried:
a. install with right click on the cifs-utils-5.5-i486-2.txz and modprobe cifs;
b. after uninstal the original CIFS and steps from a.

Code: Select all

Removing package /var/log/packages/cifs-utils-5.5-i486-1ftm...
Removing files:
WARNING: /sbin/mount.cifs changed after package installation.
  --> Deleting /sbin/mount.cifs
  --> /usr/doc/cifs-utils-5.5/ no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/AUTHORS no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/COPYING no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/ChangeLog no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/INSTALL no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/NEWS no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/README no longer exists. Skipping.
  --> /usr/doc/cifs-utils-5.5/linux-cifs-client-guide.odt no longer exists. Skipping.
  --> /usr/man/man8/mount.cifs.8.gz no longer exists. Skipping.
c. after boot in 'Always Fresh' and steps from a.
d. tried in LXDE Porteus - the same erro.

This is the result in all cases, but from Porteus 1.2 KDE is working...

Code: Select all

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I will take a nap now :wall:
Thank you.

PS: could I use/ instal/ import the CIFS from Porteus 1.2 KDE. Should be working in Porteus 2.1 RC1 KDE?
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: access a SAMBA network folder

Post#38 by brokenman » 16 Jun 2013, 22:08

mount error(13): Permission denied
You must be root to accomplish this. From your previous output it looks as thought you are root.
Please paste the output from the following as root in a terminal:

Code: Select all

ls -l /sbin/mount.cifs
Is your command like this?

Code: Select all

mount.cifs //172.16.0.1/opt /mnt/pc -o username=workgroup/querty,password=@querty
My command works for me 100% on Porteus connecting to a windows share (leave password off to make sure it is not the problem).

Code: Select all

mount.cifs //192.168.2.100/sharetest /mnt/win -o user=nick
Things to note in your command:
1) The folder 'opt' must be shared on the target computer (double check)
2) /mnt/pc must exist on the local computer (Porteus)
3) username= must be a valid user on the target computer (workgroup/querty is not a user) so perhaps try just 'querty' if it is a valid user
4) Try your command WITHOUT the password= part until you be sure you are connecting.

Let us know how you go.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#39 by amplatfus » 16 Jun 2013, 23:07

Dear all,

Here is my response for brokenman last post.
The particularity: shared folders (opt & mnt) are on external storage in DD-WRT router.
Here is the terminal look like with Porteus KDE 2.1, RC1

Code: Select all

root@porteus:~# ls -l /sbin/mount.cifs
-rwxr-xr-x 1 root root 31008 May 31 21:41 /sbin/mount.cifs*
root@porteus:~# modprobe cifs
root@porteus:~# mount.cifs //172.16.0.1/mnt /mnt/pc user=qwerty, password=@qwerty
Password: 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@porteus:~# mount.cifs //172.16.0.1/mnt /mnt/pc user=qwerty
Password: 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@porteus:~# mount.cifs //172.16.0.1/mnt /mnt/pc -o user=qwerty
Password: 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@porteus:~# mount.cifs //172.16.0.1/mnt /mnt/pc -o user=XFR/qwerty
Password: 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@porteus:~# /mnt/pc
bash: /mnt/pc: Is a directory
root@porteus:~# cd /mnt/pc
root@porteus:/mnt/pc# ls
root@porteus:/mnt/pc#
I will post the same commands from Porteus KDE 1.2 below, from the same Laptop (different USB stick), same infrastructure.

Code: Select all

root@porteus:~# ls -l /sbin/mount.cifs
/bin/ls: cannot access /sbin/mount.cifs: No such file or directory
root@porteus:~# modprobe cifs
root@porteus:~# mount.cifs //172.16.0.1/mnt /mnt/pc user=qwerty, password=@qwerty
Password:
root@porteus:~# mount
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
aufs on / type aufs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,noatime,allow_other,blksize=4096)
/dev/sdb1 on /mnt/sdb1 type ext4 (rw,noatime,nodiratime)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
[b]//172.16.0.1/mnt on /mnt/pc type cifs (rw,mand)[/b]
root@porteus:~#   
Well done in Porteus 1.2.
Porteus can do it, but I do not know yet to do it with last version.
I will keep trying,
Thank you all!
amplatfus
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: access a SAMBA network folder

Post#40 by brokenman » 18 Jun 2013, 16:55

Please try downloading the 003-mate.xzm from the thread here.

http://forum.porteus.org/viewtopic.php?f=53&t=2250

Then installpkg the full samba package from slackware. Open the file manager in MATE and click on the 'network' browser on the left. If you can see your router/NAS then we know the it is accessible. If you can't see the share then you need to look elsewhere.

Another test would be to try mounting an actual windows share that is not part of your router.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#41 by amplatfus » 19 Jun 2013, 03:53

brokenman wrote:Please try downloading the 003-mate.xzm from the thread here.

http://forum.porteus.org/viewtopic.php?f=53&t=2250

Then installpkg the full samba package from slackware. Open the file manager in MATE and click on the 'network' browser on the left. If you can see your router/NAS then we know the it is accessible. If you can't see the share then you need to look elsewhere.

Another test would be to try mounting an actual windows share that is not part of your router.
Good morning,
Party time :Yahoo!:
Here is the screenshot, without any other changes in infrastructure, only what brokenman have post. http://tinypic.com/view.php?pic=ohv30y&s=5

Now:
1. should change topic into "SOLVED"?
2. this is the only solution?
3. what should I do to mount the folder permanent like put mount.cifs in auto start-up script

Here is my terminal of installing

Code: Select all

removepkg cifs-utils-5.5-i486-1ftm
[....]
installpkg samba-3.6.8-i486-1.txz
Verifying package samba-3.6.8-i486-1.txz.
Installing package samba-3.6.8-i486-1.txz:
PACKAGE DESCRIPTION:
# samba (CIFS file and print server)
#
# Samba is a CIFS file and print server for CIFS clients.  It allows
# you to make file space or printers on a Samba host available to CIFS
# clients (such as PCs running Windows).
#
# If you have any Windows file servers, you may be able to replace them
# or supplement them with Samba.  One of Samba's big strengths is
# integration, so you can use it to tie together your Linux hosts and
# Windows PC clients.
#
Executing install script for samba-3.6.8-i486-1.txz.
Package samba-3.6.8-i486-1.txz installed.

root@porteus:~/Desktop# modprobe cifs
root@porteus:~/Desktop# mount.cifs //172.16.0.1/opt /mnt/pc user=qwerty, password=@qwerty
bash: mount.cifs: command not found
root@porteus:~/Desktop# file /etc/smbpasswd
/etc/smbpasswd: ERROR: cannot open `/etc/smbpasswd' (No such file or directory)
root@porteus:~/Desktop# ls -la /etc/smbpasswd
/bin/ls: cannot access /etc/smbpasswd: No such file or directory
Thank you,
amplatfus
PS: I owe you guys some :beer:
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: access a SAMBA network folder

Post#42 by brokenman » 19 Jun 2013, 12:15

Great! Mate shows the shares so i think you have some thing wrong with your install. Are you absolutely sure you have no saved changes, nothing in rootcopy and a completely fresh install of the latest Porteus?

It seems there may be some other module or changes overwriting a file/directory and stopping you from accessing mount.cifs
If you can find what is causing the block to mount.cifs then you can create a script to automount the shares. If your going to stay with mate then you can use a script to mount the shares. I've included udevil so you may be able to use it to mount smb. Please try in a mate terminal.

Code: Select all

udevil mount smb://user:pass@10.0.0.1:50/share
Here is where i fear your '@' symbol in your password will interfere! Not a good symbol for passwords.

BTW: smbpasswd should be found in /usb/bin
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#43 by amplatfus » 19 Jun 2013, 13:03

brokenman wrote:Great! Mate shows the shares so i think you have some thing wrong with your install. Are you absolutely sure you have no saved changes, nothing in rootcopy and a completely fresh install of the latest Porteus?

It seems there may be some other module or changes overwriting a file/directory and stopping you from accessing mount.cifs
If you can find what is causing the block to mount.cifs then you can create a script to automount the shares. If your going to stay with mate then you can use a script to mount the shares. I've included udevil so you may be able to use it to mount smb. Please try in a mate terminal.

Code: Select all

udevil mount smb://user:pass@10.0.0.1:50/share
Here is where i fear your '@' symbol in your password will interfere! Not a good symbol for passwords.

BTW: smbpasswd should be found in /usb/bin
I have tried Mate with latest Porteus KDE with copy to RAM +changes.lzm. I will check again, with Always fresh option.
Excepting this Mate trying, all options teste before were made in many ways: Always fresh, copy to RAM, fresh stick format/ Porteus install.

After I will try Mate with fresh install, I will update the topic and I will edit subject [solved] to the post that worked best, OK?
By the way, nice looking for Mate, without this test, it took me more time to discover it.

Best regards,
amplatfus
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: access a SAMBA network folder

Post#44 by Hamza » 19 Jun 2013, 13:05

Interesting. I can mount any samba shares here without any problems. Running v2.0 KDE4 Stable.
NjVFQzY2Rg==

User avatar
amplatfus
Samurai
Samurai
Posts: 153
Joined: 30 Oct 2012, 14:55
Distribution: MATE Porteus-v5.0rc1
Location: Romania

Re: access a SAMBA network folder

Post#45 by amplatfus » 19 Jun 2013, 13:30

Hamza wrote:Interesting. I can mount any samba shares here without any problems. Running v2.0 KDE4 Stable.
My tested version is Porteus KDE 2.1 RC1.
Best regards,
amplatfus
Porteus-v5.0. rc1 MATE. Thank you all dev team and @Blaze for helping to configure it, thanks to entire Porteus community members for great topics.
Kernel: 000-kernel-5.4.8,xzm

Post Reply