[Risolto](Samba)Condivisione cartella per alcuni utenti...come posso fare??

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Scrivi risposta
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

[Risolto](Samba)Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Salve, allora mi sto cimentando nell'ardua impresa di creare un server in maniera non perfetta ma abbastanza buona. Purtroppo sono all'inizio e sono riuscito per ora solamente a installare samba e settarlo in modo che ogni utente si connetta, con autenticazione, sulla propria cartella home e basta. Ora volevo condividere una cartella che ho creato in questa maniera:

Codice: Seleziona tutto

sudo mkdir /media/immagini
ora io ho 4 utenti, creati per fare delle prove, e sono:
-danilo;
-qui;
-quo;
-qua.
danilo è l'utente con cui mi loggo nel server quindi lo lasciamo stare, io vorrei che gli utenti qui e quo possano vedere la cartella immagini in modo da poter fare tutte le azioni possibili in quella cartella (creare, modificare e cancellare file), mentre vorrei che l'utente qua può solamente leggere i file e basta. Come posso impostare questa cosa con samba?  :-\ Ho provato anche a creare 2 gruppi sul server:
1) ufficio (qui e quo);
2) casa (qua);
e alla cartella immagini ho dato i comandi

Codice: Seleziona tutto

sudo chmod -R 770 *
sudo chown -R qui:ufficio *
in questo modo con il parametro 770, dico che il proprietario e il gruppo hanno pieno accesso alla cartella e ai file, quindi l'utente quo dovrebbe loggarsi e scrivere/modificare/cancellare i file giusto? E invece non mi funziona  ::) questa invece è la parte del file smb.conf in cui condivido la cartella

Codice: Seleziona tutto

[Immagini]
   comment = Immagini Condivisa
   path = /media/immagini
   browseable = yes
   valid users = qui, quo
   ;public = yes
   ;guest ok = yes
   read only = no
   ;create mask = 0770
   ;directory mask = 0770
Dove sbaglio? Consigli?
Ultima modifica di Anonymous il martedì 14 febbraio 2012, 12:37, modificato 1 volta in totale.
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Nessuno proprio?  :'( :'( :'(
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Jambaz
Prode Principiante
Messaggi: 51
Iscrizione: mercoledì 23 novembre 2011, 17:18

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da Jambaz »

Sarebbe utile vedere per intero il smb.conf ,giusto per capire se sbagli all'inizio ( magari non hai messo lo Shared )......
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Jambaz ha scritto: Sarebbe utile vedere per intero il smb.conf ,giusto per capire se sbagli all'inizio ( magari non hai messo lo Shared )......
eccolo qui  ;D grazie 1000 Jambaz per l'interessamento

Codice: Seleziona tutto

[global]
   workgroup = WORKGROUP
   allow hosts = 192.168.1.0/24
   server string = Serverubuntino
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = never
   usershare allow guests = yes
[homes]
   comment = Home
   browseable = yes
   guest ok = no
   valid users = %S
   read only = no
   create mask = 0700
   directory mask = 0700
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
[Immagini]
   comment = Immagini Condivisa
   path = /media/immagini
   browseable = yes
   valid users = antonio, pippo, danad
   ;public = yes
   ;guest ok = yes
   read only = no
   ;create mask = 0770
   ;directory mask = 0770
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
Alien321
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1390
Iscrizione: sabato 20 maggio 2006, 20:39
Desktop: KDE 5.16.4
Distribuzione: KDE Neon
Località: Venere

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da Alien321 »

Se Posti anche i log di SAMBA è anche meglio, se non so dove è il problema la soluzione è complessa...^^
Spoiler
Mostra
Finalmente è finito carnevale, anche se vedo ancora gente in maschera
Jambaz
Prode Principiante
Messaggi: 51
Iscrizione: mercoledì 23 novembre 2011, 17:18

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da Jambaz »

Alien321 ha scritto: Se Posti anche i log di SAMBA è anche meglio, se non so dove è il problema la soluzione è complessa...^^
si infatti , scusa donad.....comunque vedo una cosa e mi viene un dubbio , ma se metti immagini sotto home ( che dovrebbe essere la cartella condivisa ) non te le condivide lo stesso ?
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Jambaz ha scritto: .....se metti immagini sotto home ( che dovrebbe essere la cartella condivisa ) non te le condivide lo stesso ?
Si, ma io vorrei imparare a fare le cose pensando in grande scala. Ora ho due utenti, ma se dovessi gestire un server con minimo 20 utenti, dovrei creare la cartella immagini sotto le 20 home, e sinceramente la vedo un po' scomoda come cosa. Quindi preferisco fare una cartella a parte, condividerla solo per alcuni utenti, e casomai più avanti fare un link alla cartella immagini all'interno delle home di tutti, cosi che possono ritrovarsi la stessa cartella nella loro home sempre aggiornata  :)
Per quanto riguarda i log vi elenco qui sotto i log dei 2 pc con cui ho provato a connettermi alla cartella immagini. Su tutte e 2 i computer ho provato ad accedere con gli account antonio e pippo, i computer sono un windows 7 a 32 bit (annamaria-pc) e un windows server 2003 enterprise 32 bit (danilo-server)...comunque stavo leggendo che il filesystem NTFS crea problemi per la gestione dei permessi per samba...ma è vero?  ???
I log dei 2 pc li scrivo nella prossima risposta perché ho superato il massimo dei caratteri consentiti  (good)
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Codice: Seleziona tutto

[2012/02/11 12:34:52,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1786)
[2012/02/11 12:35:23,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1786)
[2012/02/11 12:35:33,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1786)
[2012/02/11 12:37:50,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 12:37:50,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 12:45:24,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 12:45:24,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 12:45:24,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 12:45:26,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1834)
[2012/02/11 12:45:34,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 12:49:17,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1852)
[2012/02/11 12:49:54,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1852)
[2012/02/11 12:52:06,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 12:52:06,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 12:56:15,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 12:56:15,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 14:38:02,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 788)
[2012/02/11 14:39:06,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service antonio
[2012/02/11 14:39:30,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 875)
[2012/02/11 14:40:06,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 14:40:40,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 895)
[2012/02/11 14:41:05,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 14:42:25,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 908)
[2012/02/11 14:42:36,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 908)
[2012/02/11 14:42:45,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 14:45:21,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:45:21,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:49:21,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:49:21,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:52:22,  1] param/loadparm.c:6378(map_parameter)
  Unknown parameter encountered: "usershare allow guest"
[2012/02/11 14:52:22,  0] param/loadparm.c:7472(lp_do_parameter)
  Ignoring unknown parameter "usershare allow guest"
[2012/02/11 14:52:22,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:52:22,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 14:54:15,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 14:57:09,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 1016)
[2012/02/11 14:59:08,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 14:59:12,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 1087)
[2012/02/11 15:00:35,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 15:02:46,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 1123)
[2012/02/11 15:02:56,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user antonio (uid=1001, gid=1001) (pid 1123)
[2012/02/11 15:03:47,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 1123)
[2012/02/11 15:03:55,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 15:03:57,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 15:03:57,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 15:08:53,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1252)
[2012/02/11 15:10:47,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:10:47,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:11:44,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:11:44,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:17:07,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 15:18:37,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 769)
[2012/02/11 15:19:05,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 769)
[2012/02/11 15:21:37,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:21:37,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:21:57,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service pippo
[2012/02/11 15:21:58,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service Immagini
[2012/02/11 15:25:37,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service danad initially as user danad (uid=1003, gid=1004) (pid 794)
[2012/02/11 15:25:48,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service Immagini initially as user danad (uid=1003, gid=1004) (pid 794)
[2012/02/11 15:28:08,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service Immagini
[2012/02/11 15:28:08,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service danad
[2012/02/11 15:28:10,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user danad (uid=1003, gid=1004) (pid 893)
[2012/02/11 15:28:19,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 15:30:46,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user danad (uid=1003, gid=1004) (pid 942)
[2012/02/11 15:31:26,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:26,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:28,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:28,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:36,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service danad initially as user danad (uid=1003, gid=1004) (pid 942)
[2012/02/11 15:31:44,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service danad initially as user danad (uid=1003, gid=1004) (pid 942)
[2012/02/11 15:31:46,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:46,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:46,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:46,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:31:46,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:32:57,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:32:57,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:32:57,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:32:57,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:32:57,  0] smbd/service.c:191(set_current_service)
  chdir (/media/immagini) failed
[2012/02/11 15:33:37,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:33:37,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:33:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:33:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:35:44,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:44,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:49,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:54,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:58,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:58,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:58,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:35:58,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:36:02,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:36:52,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:36:52,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 15:37:50,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 15:37:50,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service danad
[2012/02/11 15:37:50,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service danad
[2012/02/11 15:39:43,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 967)
[2012/02/11 15:39:46,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user antonio (uid=1001, gid=1001) (pid 967)
[2012/02/11 15:42:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:42:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 15:52:10,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 15:52:10,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 16:05:29,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service Immagini initially as user antonio (uid=1001, gid=1001) (pid 971)
[2012/02/11 16:05:50,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (::ffff:192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 971)
[2012/02/11 16:08:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:08:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:15:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:15:27,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:16:33,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service antonio
[2012/02/11 16:16:33,  1] smbd/service.c:1240(close_cnum)
  danilo-server (::ffff:192.168.1.3) closed connection to service Immagini
[2012/02/11 16:16:35,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service antonio initially as user antonio (uid=1001, gid=1001) (pid 1132)
[2012/02/11 16:16:44,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service antonio
[2012/02/11 16:18:35,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 16:18:39,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 16:18:46,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1143)
[2012/02/11 16:21:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:21:40,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 16:25:31,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 16:25:33,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1235)
[2012/02/11 16:28:11,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 16:28:13,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/immagini failed. No such file or directory
[2012/02/11 16:28:13,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service immagini
[2012/02/11 16:28:13,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/immagini failed. No such file or directory
[2012/02/11 16:28:13,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service immagini
[2012/02/11 16:28:38,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1299)
[2012/02/11 16:28:44,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1299)
[2012/02/11 16:28:47,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service shared initially as user pippo (uid=1002, gid=1002) (pid 1299)
[2012/02/11 16:28:48,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 16:29:22,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service shared
[2012/02/11 16:29:22,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 16:29:24,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. No such file or directory
[2012/02/11 16:29:24,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service shared
[2012/02/11 16:29:24,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. No such file or directory
[2012/02/11 16:29:24,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service shared
[2012/02/11 16:29:24,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. No such file or directory
[2012/02/11 16:29:24,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service shared
[2012/02/11 16:29:24,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. Permission denied
[2012/02/11 16:29:24,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. Permission denied
[2012/02/11 16:58:14,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user danad (uid=1003, gid=1004) (pid 1515)
[2012/02/11 16:58:49,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. Permission denied
[2012/02/11 16:58:49,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. No such file or directory
[2012/02/11 16:58:49,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service shared
[2012/02/11 16:58:49,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. Permission denied
[2012/02/11 16:58:49,  0] param/loadparm.c:8569(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/shared failed. No such file or directory
[2012/02/11 16:58:49,  0] smbd/service.c:1202(make_connection)
  danilo-server (192.168.1.3) couldn't find service shared
[2012/02/11 16:58:54,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service danad initially as user danad (uid=1003, gid=1004) (pid 1515)
[2012/02/11 16:59:36,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 16:59:36,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service danad
[2012/02/11 17:08:43,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 17:08:47,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 17:08:52,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1579)
[2012/02/11 17:11:40,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 19:33:55,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 19:34:22,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2012/02/11 19:34:35,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1086)
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:00,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:20,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:20,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:20,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:27,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1086)
[2012/02/11 19:35:44,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:44,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:44,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:44,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:35:53,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 19:36:09,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:36:09,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:36:09,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:36:09,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:37:01,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1086)
[2012/02/11 19:37:07,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:37:07,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:37:07,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:37:07,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/desktop.ini
[2012/02/11 19:37:12,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service pippo
[2012/02/11 19:37:35,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 19:37:35,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/02/11 19:41:22,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini
[2012/02/11 19:43:41,  1] smbd/service.c:1063(make_connection_snum)
  danilo-server (192.168.1.3) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1334)
[2012/02/11 19:43:49,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:43:49,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:45:18,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:45:18,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:45:18,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:45:23,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:45:23,  1] smbd/vfs.c:932(check_reduced_name)
  reduce_name: couldn't get realpath for New Folder/*
[2012/02/11 19:46:07,  1] smbd/service.c:1240(close_cnum)
  danilo-server (192.168.1.3) closed connection to service Immagini

Codice: Seleziona tutto

[2012/02/11 12:54:22,  1] smbd/service.c:1063(make_connection_snum)
  annamaria-pc (192.168.1.5) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1857)
[2012/02/11 12:54:22,  1] smbd/service.c:1063(make_connection_snum)
  annamaria-pc (192.168.1.5) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1857)
[2012/02/11 12:54:22,  1] smbd/service.c:1063(make_connection_snum)
  annamaria-pc (192.168.1.5) connect to service pippo initially as user pippo (uid=1002, gid=1002) (pid 1857)
[2012/02/11 12:55:28,  1] smbd/service.c:1240(close_cnum)
  annamaria-pc (192.168.1.5) closed connection to service Immagini
[2012/02/11 12:55:29,  1] smbd/service.c:1063(make_connection_snum)
  annamaria-pc (192.168.1.5) connect to service Immagini initially as user pippo (uid=1002, gid=1002) (pid 1857)
[2012/02/11 12:55:40,  1] smbd/service.c:1240(close_cnum)
  annamaria-pc (192.168.1.5) closed connection to service Immagini
[2012/02/11 12:56:16,  1] smbd/service.c:1240(close_cnum)
  annamaria-pc (192.168.1.5) closed connection to service pippo
[2012/02/11 12:56:16,  1] smbd/service.c:1240(close_cnum)
  annamaria-pc (192.168.1.5) closed connection to service pippo
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
Alien321
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1390
Iscrizione: sabato 20 maggio 2006, 20:39
Desktop: KDE 5.16.4
Distribuzione: KDE Neon
Località: Venere

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da Alien321 »

danad ha scritto:

Codice: Seleziona tutto

  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
Così a occhio potrebbero esserci problemi di permessi

mi fai un :

Codice: Seleziona tutto

tree -p /media

poi hai aggiunto questi utenti anche a samba con il comando  smbpasswd??
Spoiler
Mostra
Finalmente è finito carnevale, anche se vedo ancora gente in maschera
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Alien321 ha scritto: poi hai aggiunto questi utenti anche a samba con il comando  smbpasswd??
Prima ho aggiunto gli utenti in questa maniera sul server

Codice: Seleziona tutto

useradd -d /home/antonio -m antonio -p password1
useradd -d /home/pippo -m pippo -p password2
poi ho aggiunto gli utenti in samba in questo modo

Codice: Seleziona tutto

smbpasswd -a antonio
smbpasswd -a pippo
inserendo negli utenti samba la stessa password degli utenti nel sistema.
Guarda ho appena modificato la parte del file smb.conf riguardante la cartella condivisa in questo modo:

Codice: Seleziona tutto

create mask = 0770
directory mask = 0770
E ho anche modificato i permessi della cartella "immagini" in 775, cosi ora riesco solamente a modificare i file presenti nella cartella ma non riesco ne a crearli ne a cancellarli, beh è già qualcosa  >:( ecco l'output del comando tree -p  /media con i nuovi permessi che gli ho appena modificato

Codice: Seleziona tutto

/media/
└── [drwxr-xr-x]  immagini
    ├── [-rwxrwxr-x]  file.txt
    ├── [drwxrwxr-x]  New Folder
    └── [-rwxrwxr-x]  prova.txt

2 directories, 2 files
Qualcosa di sbagliato? Comunque guarda se proprio vogliamo fare le cose per bene, posso cancellare la cartella e crearne una nuova, creare un nuovo utente e fare in modo che quella cartella sia accessibile solo a quell'utente, insomma facciamo da 0 tutte i passaggi e ti scrivo cosa faccio passo passo cosi vediamo dove sbaglio, non so cosa altro inventarmi  :-\
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Alien321 ha scritto: poi hai aggiunto questi utenti anche a samba con il comando  smbpasswd??
Penso di aver capito qual'è il problema Alien321  :) Ho rifatto tutte le cose da capo, creando una nuova cartella nominata segreteria

Codice: Seleziona tutto

sudo mkdir segreteria
se do il comando ls -la ottengo questo output giustamente

Codice: Seleziona tutto

totale 12
drwxr-xr-x  3 root root 4096 2012-02-13 19:48 .
drwxr-xr-x 22 root root 4096 2012-02-09 16:36 ..
drwxr-xr-x  2 root root 4096 2012-02-13 19:46 segreteria
gli utenti antonio e pippo appartengono ad un gruppo creato di nome "ufficio" , cambio la cartelle segreteria con il seguente comando sudo chown -R antonio:ufficio segreteria/ e rifacendo poi di nuovo il comando ls -la ottengo questo output, anche questo giusto

Codice: Seleziona tutto

totale 12
drwxr-xr-x  3 root    root    4096 2012-02-13 19:48 .
drwxr-xr-x 22 root    root    4096 2012-02-09 16:36 ..
drwxr-xr-x  2 antonio ufficio 4096 2012-02-13 19:46 segreteria
e infine gli ho cambiato i permessi con questo comando, in modo che possa scrivere/modificare/leggere/cancellare il file solamente il proprietario e/o il gruppo

Codice: Seleziona tutto

sudo chmod -R 770 segreteria/
fino qui ok, il file smb.conf, riguardo questa condivisione è impostato in questo modo:

Codice: Seleziona tutto

[Segreteria]
   comment = Segreteria
   path = /media/segreteria
   browseable = yes
   guest ok = no
   valid users = antonio, pippo
   read only = no
   create mask = 0770
   directory mask = 0770
Ora i file creati sul server, settati con il gruppo ufficio e con i permessi a 770 funziona alla perfezione, da qualsiasi client mi collego, sia con l'utente antonio che con l'utente pippo riesco a fare tutto su file e cartelle...
Se invece mi autentico con l'utente antonio o con l'utente pippo e creo un file o una cartella, l'elemento appena creato ha come proprietario l'utente collegato...ma anche come gruppo ha l'utente collegato  :o
io invece voglio che questi utenti creino i file o le cartelle con il gruppo ufficio...come faccio??
Eccoti un esempio di come si presentano i file creati sui client e sul server

Codice: Seleziona tutto

totale 28
drwxrwx--- 5  antonio ufficio     4096    2012-02-13 23:54   .
drwxr-xr-x 3  root    root        4096    2012-02-13 19:48   ..
drwxr-xr-x 2  antonio antonio     4096    2012-02-13 23:50   cartella_creata_client_antonio
drwxrwx--- 2  pippo   pippo       4096    2012-02-13 23:49   cartella_creata_client_pippo
drwxrwx--- 2  antonio ufficio     4096    2012-02-13 23:48   cartella_creata_server
-rwxrw-r-- 1  antonio antonio     12      2012-02-13 23:53   file_creato_client_antonio.txt
-rwxrw---- 1  pippo   pippo       0       2012-02-13 23:49   file_creato_client_pippo.txt
-rwxrwx--- 1  antonio ufficio     12      2012-02-13 23:48   file_creato_server.txt
Persino i permessi sono diversi tra i 2 utenti antonio e pippo...come mai?
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Avatar utente
danad
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 265
Iscrizione: domenica 4 luglio 2010, 18:38
Desktop: ubuntu
Distribuzione: Ubuntu 20.04.3 LTS
Località: Roma

Re: [Samba]Condivisione cartella per alcuni utenti...come posso fare??

Messaggio da danad »

Comunque risolto, è una questione di giocare con i permessi e di settare l'utente appena loggato con il gruppo "ufficio" e fare in modo che non rimanga con il suo gruppo di default.
Per capire come fare questo però ho aperto un altro post cosi che non creo confusione  ::) Oppure la creo facendo cosi  ??? Questo è il post http://forum.ubuntu-it.org/viewtopic.php?t=509111
Grazie a tutti  :)
E' vero, sarò anche un Peccatore...ma intorno a me non vedo Santi!
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti