You are not logged in.

#1 2022-03-30 16:18:53

neretum925
Member
Registered: 2022-03-17
Posts: 10

[b] Samba protocol [/b]

hi everyone, I installed samba and smbclient, edited the smb .conf file like this:

global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
client min protocol = SMB2_02
server min protocol = SMB2_02
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba

[shares]
path = /home/jon/Music
printable = yes
guest ok = yes
read only = no
create mask = 0755

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

iptables:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


systemctl status smb:

smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor prese>
     Active: active (running) since Wed 2022-03-30 18:05:35 CEST; 10min ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 491 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 4 (limit: 8713)
     Memory: 47.3M
        CPU: 631ms
     CGroup: /system.slice/smb.service
             ├─ 491 /usr/bin/smbd --foreground --no-process-group
             ├─ 504 /usr/bin/smbd --foreground --no-process-group
             ├─ 505 /usr/bin/smbd --foreground --no-process-group
             └─1461 /usr/bin/smbd --foreground --no-process-group

mar 30 18:05:34 user systemd[1]: Starting Samba SMB Daemon...
mar 30 18:05:34 user smbd[491]: [2022/03/30 18:05:34.999615,  0] ../../source3/>
mar 30 18:05:34 user smbd[491]:   smbd version 4.16.0 started.
mar 30 18:05:34 user smbd[491]:   Copyright Andrew Tridgell and the Samba Team >
mar 30 18:05:35 user smbd[491]: [2022/03/30 18:05:35.000450,  0] ../../lib/para>
mar 30 18:05:35 user smbd[491]:   WARNING: [printers] service MUST be printable!
lines 1-23

i am not able to open the hdd connected to the router, not from the terminal, not from nautilus, how do i do it?

Last edited by neretum925 (2022-03-30 19:30:12)

Offline

#2 2022-03-30 16:36:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: [b] Samba protocol [/b]

First, you were asked in your previous thread to use code tags - it is even more important for readability here.  Edit your post and add the code tags.

Second, please describe your goal.  You are posting a config file for a samba server, but then all you say about the error is that you can't connect to some HDD.  What machine is the server, and what machine is the client?  Are you sure you want to run an samba server on your arch system?  Are you just trying to connect with a HDD shared by some other system?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-03-30 16:41:04

neretum925
Member
Registered: 2022-03-17
Posts: 10

Re: [b] Samba protocol [/b]

I would just like to connect to the hdd, connected to the router, from my pc, nautilus sees the hdd but does not let me access

Offline

#4 2022-03-30 17:16:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: [b] Samba protocol [/b]

And is there a reason you editted your first post but still have not added code tags?  I'm not really trying to be a dick about it - but frankly I almost ignored this thread from the outset - and I suspect lots of people who opened it just left in silence.  I'm giving you the benefit of the doubt that you can take feedback and do better - don't prove me wrong.  If you want help from this community, show that you are willing to respect our standards and present information in a way that makes it easy for people to help you.

Last edited by Trilby (2022-03-30 17:18:24)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2022-03-30 18:36:46

neretum925
Member
Registered: 2022-03-17
Posts: 10

Re: [b] Samba protocol [/b]

i didn't understand what itag code is

Offline

#6 2022-03-30 18:42:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [b] Samba protocol [/b]


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2022-03-30 19:29:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,740

Re: [b] Samba protocol [/b]

Not in the subject, but for the Shell IO and file contents.

The smb .conf as posted is invalid, please make sure to provide a straight copy and paste, in doubt upload the file (see 1st link below)
The output of "systemctl status smb" is capped, don't copy out of the pager, but use the pastebin service or redirect the output into a file or xsel/xclip.

i am not able to open the hdd connected to the router

suggests that the arch system is rather the client?

not from the terminal

Please post the command you tried as well as the error you receive and also

nmap _gateway

Offline

#8 2022-03-30 20:13:24

neretum925
Member
Registered: 2022-03-17
Posts: 10

Re: [b] Samba protocol [/b]

null

Last edited by neretum925 (2022-03-30 20:25:50)

Offline

#9 2022-03-30 20:22:18

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,592
Website

Re: [b] Samba protocol [/b]

Consider this your final warning. Don't bother posting again until you've fixed your posts. That includes using code tags as requested, and removing the unnecessary (and broken) bbcode from your topic title.

https://wiki.archlinux.org/title/General_guidelines


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB