Problemi con migrazione SAMBA e altre applicazioni

Networking, configurazione della connessione, periferiche e condivisioni di rete.
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Problemi con migrazione SAMBA e altre applicazioni

Messaggio da Paolinux_ »

Salve a tutti,
sto adoperando linux Lubuntu 20.04 ma quando cerco di far partire la modalità grafica di ntfs-3g questa non parte.
Il comando dovrebbe essere "sudo ntfs-config" ma non appare nulla. Qualcuno sa dirmi il perché?
Ho già provato a controllare i driver e a reinstallarlo ma anche qui niente.
Qualcuno sa darmi una dritta?
La distro che ho installato non proviene da un aggiornamento è stata installata tramite la ISO che avevo masterizzato sul dvd.
Ultima modifica di Paolinux_ il martedì 2 giugno 2020, 21:18, modificato 3 volte in totale.
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da saxtro »

su focal ntfs-config non dovrebbe essere presente.
Lo hai installato da PPA / compilato, o te lo sei ritrovato perchè sei andato a focal di release upgrade?

Nell'ultimo caso il pacchetto potrebbe essere semplicemente rotto.
Il dmesg in questo caso dovrebbe segnalare un segfault.
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da Paolinux_ »

Ciao Saxtro,
il pacchetto era già nella distro, infatti quando all'inizio ho cercato di installarlo da terminale, il sistema mi ha detto che già avevo l'ultima versione.
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da saxtro »

Forse è uno snap? Io non ho ntfs-config come pacchetto deb. Non trovo l'eseguibile neanche con apt-file su focal (su xenial c'è).

Il comando che lanci, non ti lascia un output a video? Non ti lascia errori nel syslog?
Potresti provare con "sudo strace ntfs-config" ma l'output potrebbe essere molto "verboso" e se non stampa un errore chiaro alla fine, potrebbe essere anche di difficle lettura
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da Paolinux_ »

Ciao Saxtro,
no, purtroppo non mi da nulla, neanche uno straccio di messaggio... non parte punto e basta.
Ho provato il comando che mi hai dato e questo è purtroppo il messaggio... strace: Can't stat 'ntfs-config': File o directory non esistente.
Comunque Saxtro, tutto sto casino era solamente perché ho difficoltà a condividere i miei HD ntfs su samba.
Io fino a poco tempo fa usavo linux Mint 19.3 Ma era troppo macchinoso e sinceramente non mi sono trovato molto bene.
Come avrai capito sono un neofita in quanto a esperienza ma molte volte ho provato a installare diverse distro ora devo dire che con questa versione di Lubuntu finalmente ho trovato quello che cercavo.. molta leggerezza.
Tornando al punto, quando usavo linux mint, mi ero creato un smb.conf tramite il webmin e in pratica con quel file sono riuscito a condividere tutti i miei files sia da cellulare, tablet e TV. Lo stesso file l'ho messo qui su Lubuntu ma purtroppo non mi funziona. Allora ho pensato che sia un problema di montaggio, ma a quando vedo tutti i miei dischi vengono automaticamente caricati perfettamente dal sistema ad ogni riavvio quindi non capisco il problema.
Altra cosa, mi piacerebbe mettere alcune cartelle libere da utente e password e quindi pubbliche mentre una privata.
Sai darmi delle dritte?
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da saxtro »

Chiaro.
In questo caso ti consiglio di aprire un nuovo thread.
La sezione "Applicazioni" mi sembra quella più opportuna.

Assegni un titolo esplicativo del tuo problema, che sò "Problemi durante la migrazione di smb.conf", o qualcosa di simile (non sono bravo nei titoloi :D ), che cmq faccia capire nel breve qual'è il tuo problema.
Nella descrizione del problema, puoi incollare (tra i tag "code") la configurazione del tuo smb.conf, e magari anche la stampa dei "mount" che vuoi condividere (selezioni le linee del file /etc/mtab relative ai tuoi dispositivi ntfs).

Se le condivisioni le hai fatte in "userspace" (tramite il file manager grafico con il tasto destro --> condividi), puoi riportare i file che trovi in /var/lib/samba/usershares/downloads .

Devi descrivere in maniera dettagliata la tua congiurazione.
Gli eventuali errori che trovi a sistema.
Il desiderata.
Avatar utente
tokijin
Moderatore Globale
Moderatore Globale
Messaggi: 4606
Iscrizione: mercoledì 3 giugno 2009, 23:10
Desktop: plasma 5.27.4
Distribuzione: Kubuntu 23.04
Località: Abruzzo

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da tokijin »

Ho spostato la discussione in "Connessione e configurazione delle reti".

@Paolinux_
come suggerito da saxtro, modifica il titolo del primo messaggio con qualcosa che spieghi più in dettaglio il problema e condividi quante più informazioni possibili per aiutare chi ti vuole aiutare.

Ciao
Sei abbruzzese se dopo che ti sei strafogato un chilogrammo di pasta, hai il coraggio di dire alla cuoca "cacc ch'è cott" - Se entra un piccione in casa..chiudi le finestre!
Ubuntu User #28657 - Il mio vecchio hardware - Tag Codice
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Modalità Grafica ntfs-3g (ntfs-config) non parte

Messaggio da Paolinux_ »

saxtro ha scritto:
venerdì 29 maggio 2020, 22:26
Nella descrizione del problema, puoi incollare (tra i tag "code") la configurazione del tuo smb.conf, e magari anche la stampa dei "mount" che vuoi condividere (selezioni le linee del file /etc/mtab relative ai tuoi dispositivi ntfs).

Se le condivisioni le hai fatte in "userspace" (tramite il file manager grafico con il tasto destro --> condividi), puoi riportare i file che trovi in /var/lib/samba/usershares/downloads .

Devi descrivere in maniera dettagliata la tua congiurazione.
Gli eventuali errori che trovi a sistema.
Il desiderata.
Grazie per i consigli Saxtro.

Altra considerazione oltre al pacchetto per la gestione delle partizioni NTFS ho scoperto che non ho e non mi fa scaricare nemmeno il pacchetto grafico di SAMBA ossia il system-config-samba. Ho provato anche a scaricarlo da un sito chiaramente in formato .deb ma quando lo vado a installare manualmente non lo installa e mi da questo errore "Risoluzione della dipendenza non riuscita". Come detto, neanche da riga di comando riesco a installarlo facendo il solito "sudo apt-get install system-config-samba" se ci provo mi dice che il pacchetto non lo trova. Ho controllato i repository e sono tutti ok nel senso che ci sono quelli indispensabili di base della Distribuzione.

Allora per essere il più possibile preciso ribadisco che tale file smb.conf proviene da un'altra distro che è la MINT 19.3 e l'ho compilata tramite il WEBMIN.
Questo file di configurazione su MINT funzionava perfettamente con il profilo di root.
Ecco la configurazione:

Codice: Seleziona tutto

# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 

#======================= Global Settings =======================

[global]
	load printers = no
	passwd program = /usr/bin/passwd %u
	dns proxy = no
	winbind trusted domains only = yes
	security = user
	available = no
	os level = 20
	usershare allow guests = yes
	guest account = root
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	obey pam restrictions = yes
	passdb backend = tdbsam
	winbind use default domain = yes
	public = yes
	panic action = /usr/share/samba/panic-action %d
	read list = root
	max log size = 1000
	map to guest = bad user
	browseable = no
	auto services = Film4T
	unix password sync = yes
	server role = standalone server
	pam password change = yes
	workgroup = Metalan
	encrypt passwords = yes
	valid users = root
	syslog = 0
	server string = %h server (Samba, Mint)
	log file = /var/log/samba/log.%m

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of

# server string is the equivalent of the NT Description field

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects

# Cap the size of the individual log files (in KiB).

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.

# Do something sensible when Samba crashes: mail the admin a backtrace


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  


# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set 
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0755

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0755

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700


[Film4t]
	browseable = yes
	force directory mode = 755
	path = /media/paolinux/Maxtor 4T/Film4T
	available = yes
	force create mode = 755

[Serie Tv 4t]
	path = /media/paolinux/Maxtor 4T/SerieTv4T
	available = yes
	browseable = yes

[Film New]
	browseable = yes
	available = yes
	path = /media/paolinux/Maxtor/FilmNew

[Serie Tv New]
	path = /media/paolinux/Maxtor/SerieTvNew
	available = yes
	browseable = yes

[Film Old]
	browseable = yes
	available = yes
	path = /media/paolinux/Samsung M3/FilmOld

[Serie Tv Old]
	browseable = yes
	available = yes
	path = /media/paolinux/Samsung M3/SerieTvOld

[Video]
	browseable = yes
	path = /home/paolinux/Video
	available = yes

[Scaricati]
	browseable = yes
	available = yes
	path = /home/paolinux/Scaricati

[METALAN]
	force directory mode = 755
	force create mode = 755
	read list = 
	writeable = yes
	available = yes
	path = /media/paolinux/Maxtor 4T/METALAN
	write list = root
	browseable = yes

[Giochi]
	write list = root
	read list = 
	browseable = yes
	writeable = yes
	path = /media/paolinux/METALAN
	available = yes

[Immagini]
	browseable = yes
	read list = 
	write list = root
	path = /home/paolinux/Immagini
	available = yes
	writeable = yes

[Musica]
	browseable = yes
	writeable = yes
	available = yes
	read list = 
	path = /media/paolinux/Maxtor 4T/Musica
	write list = root
	
Ultima modifica di Paolinux_ il martedì 2 giugno 2020, 21:19, modificato 1 volta in totale.
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi di rete e di applicazioni

Messaggio da saxtro »

Dovresti inserire l'smb.conf tra i tag code.
viewtopic.php?f=43&t=542643

Poi dire che non funziona, è una frase generica.

Qual'è il tuo errore?
samba non parte?
Parte ma non vedi le share?
Vedi le share ma non riesci a navigarle?
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Problemi di rete e di applicazioni

Messaggio da Paolinux_ »

saxtro ha scritto:
martedì 2 giugno 2020, 11:59
Dovresti inserire l'smb.conf tra i tag code.
viewtopic.php?f=43&t=542643
Si ok scusa per l'inconvenete, ecco il file nel code:

Codice: Seleziona tutto

# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
# - When such options are commented with ";", the proposed setting
# differs from the default Samba behaviour
# - When commented with "#", the proposed setting is the default
# behaviour of Samba but the option is considered important
# enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.

#======================= Global Settings =======================

[global]
load printers = no
passwd program = /usr/bin/passwd %u
dns proxy = no
winbind trusted domains only = yes
security = user
available = no
os level = 20
usershare allow guests = yes
guest account = root
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
passdb backend = tdbsam
winbind use default domain = yes
public = yes
panic action = /usr/share/samba/panic-action %d
read list = root
max log size = 1000
map to guest = bad user
browseable = no
auto services = Film4T
unix password sync = yes
server role = standalone server
pam password change = yes
workgroup = Metalan
encrypt passwords = yes
valid users = root
syslog = 0
server string = %h server (Samba, Mint)
log file = /var/log/samba/log.%m

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of

# server string is the equivalent of the NT Description field

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects

# Cap the size of the individual log files (in KiB).

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.

# Do something sensible when Samba crashes: mail the admin a backtrace


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.


# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
; logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
# logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
; logon drive = H:
# logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
; logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
; usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
; read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0755

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0755

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on

;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700


[Film4t]
browseable = yes
force directory mode = 755
path = /media/paolinux/Maxtor 4T/Film4T
available = yes
force create mode = 755

[Serie Tv 4t]
path = /media/paolinux/Maxtor 4T/SerieTv4T
available = yes
browseable = yes

[Film New]
browseable = yes
available = yes
path = /media/paolinux/Maxtor/FilmNew

[Serie Tv New]
path = /media/paolinux/Maxtor/SerieTvNew
available = yes
browseable = yes

[Film Old]
browseable = yes
available = yes
path = /media/paolinux/Samsung M3/FilmOld

[Serie Tv Old]
browseable = yes
available = yes
path = /media/paolinux/Samsung M3/SerieTvOld

[Video]
browseable = yes
path = /home/paolinux/Video
available = yes

[Scaricati]
browseable = yes
available = yes
path = /home/paolinux/Scaricati

[METALAN]
force directory mode = 755
force create mode = 755
read list =
writeable = yes
available = yes
path = /media/paolinux/Maxtor 4T/METALAN
write list = root
browseable = yes

[Giochi]
write list = root
read list =
browseable = yes
writeable = yes
path = /media/paolinux/METALAN
available = yes

[Immagini]
browseable = yes
read list =
write list = root
path = /home/paolinux/Immagini
available = yes
writeable = yes

[Musica]
browseable = yes
writeable = yes
available = yes
read list =
path = /media/paolinux/Maxtor 4T/Musica
write list = root  
saxtro ha scritto:
martedì 2 giugno 2020, 11:59
Poi dire che non funziona, è una frase generica.

Qual'è il tuo errore?
samba non parte?
Parte ma non vedi le share?
Vedi le share ma non riesci a navigarle?
Questa configurazione purtroppo come detto non riesco a vederla. Prima riuscivo almeno a usufruirne con l'utente root e quindi la vedevo e potevo interagire adesso non riesco più neanche a vederla.
Sono diverse settimane che modifico questo benedetto codice fino a riportarlo nei minimi termini per vedere se ci sono altri problemi. Infatti ti devo dire che nutro seri dubbi sul fatto che sia così controlla tu stesso. Sul codice che seguirà conta che non vedo ancora nulla.

Codice: Seleziona tutto

 [global]
	workgroup = Metalan
	netbios = Notebook
	security = user
	server string = %h server (Samba, Lubuntu)
	create mask = 0744
	wins support = yes
	
[FilmNew]
	comment = FilmNew
	path = /media/paolo/Maxtor/FilmNew
	browseable = yes
	public = yes
	
[Privato]
	comment = cartella privata
	path = /home/paolo/Video/System
	browseable = yes
	guest ok = no
Come dicevo l'ho ricreato per fare una sorta di debug non so più cosa devo fare.
Non ridocrdo se lo avevo detto, ci sono problemi anche nella modifica dei privilegi e autorizzazioni delle cartelle che vedi, dando il comando "ls-l" noto che l'utente previlegiato è il mio stesso account per entrare nel sistema quindi paolo e i privilegi sono totali ossia 0777 come potrai vedere sotto. Quindi come la metto la metto male. Credo ci sia un problema di fondo che non riesco a capire o forse la distro che ho scaricato è danneggiata, non riesco a capire. E' possibile che un sistema nuovo come questo possa avere dei problemi di questo genere in partenza? Se avessi scaricato la distro beta beh, magari si, ma qui sono veramente confuso.

Immagine

Ah quasi dimenticavo... visto che non riuscivo ho provato anche a scaricare il pacchetto system-config-samba sia da riga di comando che manualmente ma nella riga di comando mi dice che il pacchetto non lo trova mentre se lo installo manualmente dice che il pacchetto non trova le dipendenze e quindi non lo installa come se mancasse qualcosa. Può essere che sia così sfigato da trovare anche questo pacchetto danneggiato?!? Oppure è l'ennesima conferma che la mia distro lo sia?


Attendo tue notizie.
Ciao
Avatar utente
tokijin
Moderatore Globale
Moderatore Globale
Messaggi: 4606
Iscrizione: mercoledì 3 giugno 2009, 23:10
Desktop: plasma 5.27.4
Distribuzione: Kubuntu 23.04
Località: Abruzzo

Re: Problemi di rete e di applicazioni

Messaggio da tokijin »

@Paolinux_ così il titolo non va bene: il titolo deve descrivere in modo sintetico il problema; così è troppo generico.
Per favore, modificalo di nuovo.

Modifica anche questo messaggio inserendo il listato nel tag Codice.

Ciao
Sei abbruzzese se dopo che ti sei strafogato un chilogrammo di pasta, hai il coraggio di dire alla cuoca "cacc ch'è cott" - Se entra un piccione in casa..chiudi le finestre!
Ubuntu User #28657 - Il mio vecchio hardware - Tag Codice
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi di rete e di applicazioni

Messaggio da saxtro »

Dentro la directory

Codice: Seleziona tutto

/var/log/samba
ci sono diversi files.
Con il comando

Codice: Seleziona tutto

tail -50 file-di-log
estrai le ultime 50 righe del log, incollale sul forum (sempre tra i tag di code)
I files da verificare sono log.nmbd, log.smbd e log.<nome del tuo pc>
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Problemi di rete e di applicazioni

Messaggio da Paolinux_ »

saxtro ha scritto:
martedì 2 giugno 2020, 20:40
Dentro la directory

Codice: Seleziona tutto

/var/log/samba
ci sono diversi files.
Effettivamente ho diversi files log e sono:
Immagine
saxtro ha scritto:
martedì 2 giugno 2020, 20:40
Con il comando

Codice: Seleziona tutto

tail -50 file-di-log
estrai le ultime 50 righe del log, incollale sul forum (sempre tra i tag di code)
I files da verificare sono log.nmbd, log.smbd e log.<nome del tuo pc>
Ho dato quel comando ma il sistema mi restituisce questo errore: "tail: impossibile aprire 'file-di-log' per la lettura: File o directory non esistente"
Comunque questi sono i log che mi hai richiesto.
Log.nmbd (ultime 50 rige)

Codice: Seleziona tutto

find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 21:24:32.254173,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 21:39:32.264365,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 21:54:32.296146,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 22:09:23.298131,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 22:24:23.302177,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 22:39:38.336762,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 22:54:33.343019,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 23:09:42.357198,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 23:24:42.360435,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 23:39:48.383475,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/02 23:54:43.394501,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
[2020/06/03 00:09:52.394082,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
Questo invece è il log.smbd

Codice: Seleziona tutto

[2020/06/02 03:37:05.015732,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 03:37:05.015921,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 03:37:05.024508,  0] ../../source3/smbd/uid.c:448(change_to_user_internal)
  change_to_user_internal: chdir_current_service() failed!
[2020/06/02 03:37:05.028449,  0] ../../source3/smbd/uid.c:448(change_to_user_internal)
  change_to_user_internal: chdir_current_service() failed!
[2020/06/02 03:38:00.468953,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 03:38:00.469171,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 03:38:01.051282,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 03:38:01.051466,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 03:38:01.060813,  0] ../../source3/smbd/uid.c:448(change_to_user_internal)
  change_to_user_internal: chdir_current_service() failed!
[2020/06/02 03:38:01.066538,  0] ../../source3/smbd/uid.c:448(change_to_user_internal)
  change_to_user_internal: chdir_current_service() failed!
[2020/06/02 15:53:23.620527,  0] ../../source3/smbd/server.c:1775(main)
  smbd version 4.11.6-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2019
[2020/06/02 15:53:23.730276,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 15:53:23.730340,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 15:53:23.830499,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 15:53:23.830704,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 15:53:24.944553,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
  daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2020/06/02 17:54:49.591927,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 17:54:49.613377,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 17:54:53.815086,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/02 17:54:53.815281,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 18:29:48.795229,  0] ../../source3/smbd/server.c:1775(main)
  smbd version 4.11.6-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2019
[2020/06/02 18:29:48.862511,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
  daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2020/06/02 18:30:10.482341,  0] ../../source3/smbd/server.c:1775(main)
  smbd version 4.11.6-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2019
[2020/06/02 18:30:10.512058,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
  daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
L'ultimo log del mio pc sinceramente era vuoto però ho trovato e ti posto quello del mio pseudonio ossia è il log.reskyns

Codice: Seleziona tutto

Unknown parameter encountered: "netbios"
[2020/06/01 20:34:34.133019,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/01 20:34:38.279725,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/01 20:34:38.279925,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/01 20:34:38.280054,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/01 20:34:38.280133,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/01 20:34:42.422682,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/01 20:34:42.422883,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/01 20:34:42.423020,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "netbios"
[2020/06/01 20:34:42.423108,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "netbios"
[2020/06/02 00:22:12.978496,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/02 00:22:12.993521,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/02 00:22:12.994359,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter client min protocol found in service section!
[2020/06/02 00:22:12.994517,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter server min protocol found in service section!
[2020/06/02 00:22:17.166694,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/02 00:22:17.166882,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/02 00:22:17.167787,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter client min protocol found in service section!
[2020/06/02 00:22:17.167913,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter server min protocol found in service section!
[2020/06/02 00:22:33.519761,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/02 00:22:33.519955,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/02 00:22:33.520862,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter client min protocol found in service section!
[2020/06/02 00:22:33.520997,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter server min protocol found in service section!
[2020/06/02 00:22:37.660307,  0] ../../lib/param/loadparm.c:800(lpcfg_map_parameter)
  Unknown parameter encountered: "winbind trusted domains only"
[2020/06/02 00:22:37.660457,  0] ../../lib/param/loadparm.c:1826(lpcfg_do_global_parameter)
  Ignoring unknown parameter "winbind trusted domains only"
[2020/06/02 00:22:37.661105,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter client min protocol found in service section!
[2020/06/02 00:22:37.661212,  0] ../../lib/param/loadparm.c:1875(lpcfg_do_service_parameter)
  Global parameter server min protocol found in service section!
Come penso capirai anche da solo nel vedere i log, io ho fatto diverse prove e riscritto diverse volte il file smb.conf quindi gli errori che vedi a volte li trovi diversi per questo motivo. Forse è il caso che ti invio tutto il log?
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da saxtro »

Nella tua rete hai altri server samba e/o windows con condivisioni in esecuzione?

Attualmente la sezione global del file smb.conf, è questa, o la prima che hai postato creata con webmin?

Codice: Seleziona tutto

 [global]
	workgroup = Metalan
	netbios = Notebook
	security = user
	server string = %h server (Samba, Lubuntu)
	create mask = 0744
	wins support = yes
Te lo chiedo, perchè a seconda del caso devi aggiungere / modificare qualcosa nella [global].
L'errore è questo:

Codice: Seleziona tutto

  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
non c'è nessuna istanza che rende le risorse raggiungibili
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da Paolinux_ »

saxtro ha scritto:
mercoledì 3 giugno 2020, 0:54
Nella tua rete hai altri server samba e/o windows con condivisioni in esecuzione?

Attualmente la sezione global del file smb.conf, è questa, o la prima che hai postato creata con webmin?

Codice: Seleziona tutto

 [global]
	workgroup = Metalan
	netbios = Notebook
	security = user
	server string = %h server (Samba, Lubuntu)
	create mask = 0744
	wins support = yes
Ciao Saxtro,
si la prima (per intenderci quella più lunga) è quella fatta con il webmin.
saxtro ha scritto:
mercoledì 3 giugno 2020, 0:54
Te lo chiedo, perchè a seconda del caso devi aggiungere / modificare qualcosa nella [global].
Si, ho un altro pc con windows 7 e diversi cellulari ma sopratutto la smart tv dove ci vedo i film che ho nel mio pc linux che voglio condividere.

saxtro ha scritto:
mercoledì 3 giugno 2020, 0:54
L'errore è questo:

Codice: Seleziona tutto

  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name METALAN<1b> for the workgroup METALAN.
  Unable to sync browse lists in this workgroup.
non c'è nessuna istanza che rende le risorse raggiungibili
Non capisco cosa intendi con ISTANZA... E' sbagliato il nome: come è scritto: oppure cosa?!?
Riguardo al nome della rete è quello che ho anche sul pc windows è gli stessi pc condividono lo stesso nome. Per caso contano le lettere maiuscole e minuscole? Perché forse su win7 il nome della rete era scritta diversamente del tipo Metalan oppure tutto minuscolo metalan.
Se non vado errato nel fondo del file di configurazione del samba ho messo le cartelle da condividere e le loro rispettive posizioni quindi non capisco, da come dici sembra che il pc non le veda comunque. Se fosse penso sia correlato all'altro problema del ntfs-3g di cui avevo aperto il thread. Magari è un problema di interfaccia del sistema con il file system NTFS?
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da saxtro »

aggiungendo questi parametri alla global, dovrebbe funzionare:

Codice: Seleziona tutto

local master = yes
preferred master = yes
wins support = yes
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da Paolinux_ »

Ciao Saxtro,
purtroppo niente da fare.
Da cellulare tramite VLC vedo la cartella con il protocollo smb chiaramente (questo anche prima) solamente che mi chiede l'utente e password e io anche gli do i miei non li prende e non prende neanche il root.
Neanche se vado sul pc con windows 7 non vedo nulla idem per la smart tv.
Io pensavo e se lo re-scriviamo da zero... perché a questo punto credo o ci sia degli errori che non vediamo oppure e spero di no, c'è qualcosa che non va sul sistema installato. Eventualmente c'è un modo per controllare l'integrità del sistema ubuntu? così credo ci togliamo ogni pensiero.
Se dovesse risultare tutto apposto le incongruenze sui pacchetti ntfs-3g e system-config-samba ne posso dedurre che siano isolati.
Che ne dici?
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da saxtro »

Gli errori che descrivi dipendono però dalla definizione delle share, non della global.
Ci sono errori nuovi e diversi nei files che ti ho indicato prima?

Riscrivere la configurazione da zero è una buona idea, molti di quei parametri sono dichiarati sconosciuti nei primi log che hai postato.
Avatar utente
Paolinux_
Prode Principiante
Messaggi: 31
Iscrizione: lunedì 9 dicembre 2019, 18:14
Desktop: Lubuntu 20.04
Distribuzione: Ubuntu 20.04 LTS
Sesso: Maschile
Località: Monte Urano (FM)

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da Paolinux_ »

Si ma come dovrei re-scrivere la configurazione visto che quella che avevo pensato non va bene?
La linea guida sarebbe che io vorrei che questo sistema (lubuntu) deve condividere una serie di cartelle quasi tutte in hard disk esterni con file system NTFS ossia le cartelle Film4T, FilmNew, FilmOld, SerieTv4T, SerieTvNew, SerieTvOld e la cartella METALAN.
le cartelle 4T sono montate in /media/paolo/Maxtor 4T/
Le cartelle New sono montate in /media/paolo/Maxtor/
Le cartelle Old sono montate in /media/paolo/Samsung 3M/
Come avrai sicuramente visto anche dal file di configurazione iniziale.
Ah quasi dimenticavo... tutte le cartelle eccetto che per quella privata devono essere libere quindi chiunque può accedervi solamente in lettura però
Mentre la sola cartella METALAN va resa libera e con la possibilità a chiunque di poter accedere e modificare i file quindi tutti i permessi 0777.
Sai darmi una mano?
Potremmo iniziare con questo:

Codice: Seleziona tutto

[global]
	workgroup = Metalan
	netbios = Notebook
	security = user
	server string = %h server (Samba, Lubuntu)
	wins support = yes
	local master = yes
        preferred master = yes
        wins support = yes

[Film4T]
	comment = Film4T
	path = /media/paolo/Maxtor 4T/FilmNew
   	browseable = yes
	public = yes
        guest ok = yes

[FilmNew]
	comment = FilmNew
	path = /media/paolo/Maxtor/FilmNew
	browseable = yes
	public = yes
        guest ok = yes

[FilmOld]
 	comment = FilmOld
 	path = /media/paolo/Samsung M3/FilmOld
 	browseable = yes
	public = yes
        guest ok = yes

[SerieTv4T]
	comment = SerieTv4T
 	path = /media/paolo/Maxtor 4t/SerieTv4T
 	browseable = yes
	public = yes
        guest ok = yes

[SerieTvNew]
 	comment = SerieTvNew
 	path = /media/paolo/Maxtor/SerieTvNew
 	browseable = yes
	public = yes
        guest ok = yes

[SerieTvOld]
 	comment = SerieTvOld
	path = /media/paolo/Samsung M3/SerieTvOld
 	browseable = yes
	public = yes
        guest ok = yes
	
[Privato]
	comment = cartella privata
 	path = /home/paolo/Video/System
	browseable = yes
	guest ok = no
La cartella Privato deve rimanere privata quindi con un user name e pass e qui io lascierei il mio account paolo con la mia passwd di accesso.
Senti mi è venuto un dubbio ma su global se mettiamo security USER poi è corretto dare il guest ok e quindi l'ingresso libero?
saxtro
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2871
Iscrizione: domenica 4 giugno 2006, 13:16
Distribuzione: Kubuntu 20.04

Re: Problemi con migrazione SAMBA e altre applicazioni

Messaggio da saxtro »

Prima di "scratchare" tutto:

Hai detto:
" solamente che mi chiede l'utente e password e io anche gli do i miei non li prende e non prende neanche il root"

Ma hai aggiuntoo il tuo utente alla lista degli utenti samba?

Codice: Seleziona tutto

pdbedit -a paolo
Hai prvato a entrare cme "guest" cn password nulla?
Scrivi risposta

Ritorna a “Connessione e configurazione delle reti”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 14 ospiti