Smbtree doesn't show anything even if testparm doesn't give any errors.
Also, how does one restart smbd and nmbd on Mageia? "service smbd restart" doesn't work.
And is there a "current" way to make all shares available to anyone able to access my LAN without
logging in now that "security=share" is deprecated?
I recall there was something else "deprecated" in newer samba (4.1.6) too.
This is 4th OS (and 3th motherboard) sharing the same partitions, so I'm not thrilled about changing the rights/ownership of the stuff in
the shared partitions. (That is, the partition has already outlasted three motherboards, and probably continues to outlast HW.)
The partitions to share are mounted via fstab to make sure the shares are there even if nobody is logged in.
I'd also like to share my printer.
Should I put my smb.conf here? It's quite big. Maybe I should remove some excess stuff?
(On my older systems the smb.conf was only maybe 2 pages.)
EDIT:
This is wat testparm says:
- Code: Select all
[jaa@localhost ~]$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[pdf-gen]"
Processing section "[NewVolume]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
netbios name = JAA-MAGEIA
server string = %h
security = SHARE
map to guest = Bad User
log file = /var/log/samba/%m.log
max log size = 50
printcap cache time = 60
printcap name = cups
dns proxy = No
idmap config * : backend = tdb
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print ok = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
use client driver = Yes
browseable = No
[print$]
path = /var/lib/samba/printers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes
[pdf-gen]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print ok = Yes
printing = bsd
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
lprm command = lprm -P'%p' %j
[NewVolume]
comment = NewVolume
path = /mnt/newvolume
read only = No
guest ok = Yes
[jaa@localhost ~]$
I also wondered about the two instances of smbd:
- Code: Select all
[jaa@localhost ~]$ !ps
ps axu | grep nmbd
root 29404 0.0 0.0 58976 2016 ? Ss 11:48 0:00 nmbd -D
jaa 29588 0.0 0.0 105176 956 pts/1 S+ 11:52 0:00 grep --color nmbd
[jaa@localhost ~]$ ps axu | grep smbd[jaa@localhost ~]$ ps axu | grep smbd
root 29394 0.0 0.1 107460 4076 ? Ss 11:48 0:00 smbd -D
root 29399 0.0 0.0 107976 2572 ? S 11:48 0:00 smbd -D
jaa 29598 0.0 0.0 105176 960 pts/1 S+ 11:53 0:00 grep --color smbd
BTW, what's the preferred way in Mageia concerning Samba and printers?
Hand-editing or configuration tools?
In some distro-communities it seems to be configuration tools whereas in some other
the people refuse to take a look into tool-generated (big) configuration files.