LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2024, 11:23 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Unable to set up Samba client


I am trying to set up Samba using the instructions at https://wiki.alienbase.nl/doku.php?id=slackware:samba

I think that I have the server set up ok but I am having difficulty with the client side

The mount command
Quote:
mount -t cifs //192.168.0.1/public /mnt/samba/bob/public -o rw,uid=0,gid=10,fmask=664,dmask=775 -U <some_special_user>
fails with
Quote:
mount: bad usage
I have tried simplifying things to
Quote:
mount -v -t cifs //192.168.1.51/smbguest /mnt/samba/alan
or
mount -v -t cifs //192.168.1.51/alan /mnt/samba/alan
but these give me
Quote:
mount error(13): Permission denied
What am i doing wrong?
 
Old 03-27-2024, 11:58 AM   #2
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
are you calling mount as root?

Normally only root can mount file systems unless you declare them in fstab or do it via some daemon like udisks. However seeing basic mount command when run as root work before trying to solve other problems is likely the best place to begin.
 
Old 03-27-2024, 12:05 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Yes. Calling it as root
 
Old 03-27-2024, 12:33 PM   #4
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Maybe you can find some clues in the logs from samba on the samba server. Depending on your smb.conf you might need to specify some user or domain to connect as when you mount.

However, Samba is kind of a server intended for crappy Windows clients. A posix OS like Linux usually prefer a network file system which understands posix features like chmod, users, groups and symbolic links. NFS might be a better choice to share files between Slackware systems.

regards Henrik
 
Old 03-27-2024, 12:42 PM   #5
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'd try mount.cifs
Code:
mount.cifs //192.168.0.1/public /mnt/samba/bob/public -o rw,uid=0,gid=10,username=<some_special_user>
The -U option of mount is used to specify a partition by uuid, not the username
 
2 members found this post helpful.
Old 03-27-2024, 01:12 PM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Quote:
Originally Posted by ctrlaltca View Post
I'd try mount.cifs
Code:
mount.cifs //192.168.0.1/public /mnt/samba/bob/public -o rw,uid=0,gid=10,username=<some_special_user>
The -U option of mount is used to specify a partition by uuid, not the username
Thanks. That works!
 
Old 03-27-2024, 01:24 PM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Another problem though.
I run a firewall on my desktop generated at http://www.slackware.com/~alien/efg/index.php
This blocks samba. How to I get my laptop to connect to my desktop through the firewall? I don't seen an option on the Easy Firewall Generator to allow samba.
 
Old 03-27-2024, 08:03 PM   #8
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Rep: Reputation: 4
Samba (smb) uses tcp port 445. You may need to configure your firewall to allow traffic that uses that port.
I looked at your link: http://www.slackware.com/~alien/efg/index.php
and it looks like there is an option to allow inbound services. Try enabling that option and regenerate your firewall.
 
Old 03-27-2024, 08:16 PM   #9
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Rep: Reputation: 4
You might also need to allow port 139.
https://wiki.samba.org/index.php/Sam...ber_Port_Usage
 
Old 03-29-2024, 05:37 AM   #10
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
The link at http://www.slackware.com/~alien/efg/index.php has an option to allow inbound services which then gives a list of options but samba is not one of them.

I found that this worked
Quote:
$IPT -A INPUT -s 0/0 -p TCP --dport 139 -j ACCEPT
$IPT -A INPUT -s 0/0 -p TCP --dport 445 -j ACCEPT
$IPT -A INPUT -s 0/0 -p TCP --dport 139 -j ACCEPT
$IPT -A INPUT -s 0/0 -p TCP --dport 445 -j ACCEPT
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Install samba "No package samba available" "No package samba-client available." young redhat Linux - Software 8 04-16-2019 08:05 PM
Client application unable to connect to linux server, tcp packet has [SEW] flag set. fire-fly Linux - Networking 1 10-25-2015 08:29 AM
hi i have installed ns2 in linux but unable to set the path please tell me how to set chandu1234 Linux - Software 2 08-29-2013 04:58 PM
trying to set samba to only allow access to one client at any given time babyphil Linux - Networking 2 06-20-2005 05:21 PM
Samba: W2K client OK, XP client hangs Tim Green Linux - Networking 4 08-10-2004 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration