Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[samba] problemi con i permessi sulle cartelle da condivider
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
table
Apprentice
Apprentice


Joined: 17 Feb 2007
Posts: 279
Location: Gazzaniga (BG) Italy

PostPosted: Mon Jan 21, 2008 3:06 pm    Post subject: [samba] problemi con i permessi sulle cartelle da condivider Reply with quote

Ciao, ho installato samba per fare qualche prova, ma non riesco ad accedere alle cartelle su cui vorrei scrivere. Mi spiego meglio:

Ho creato due utenti : pippo e pippo2.
Ho creato un gruppo contabili.
pippo fa parte del gruppo contabili, pippo2 no.
Da windows riesco a loggarmi con entrambi gli utenti.

Mi sono creato una cartella cont che nell'smb.conf ha queste caratteristiche

Code:
[cont]
    path = /home/cont
    public = yes
    writable = yes
    force create mode = 770
    force directory mode = 770
    write list = root @contabili
    force group = @contabili


con l'obiettivo di permettere la scrittura sulla stessa solo da parte del gruppo contabili e la non visualizzazione ne lettura da parte di tutti gli altri.
Succede invece che tutti vedono la cartella ma nessuno può vedere cosa c'è all'interno.
:(
_________________
Pulisci l'html con:
Code:
sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g'

skype: matteopinguino


Last edited by table on Mon Jan 21, 2008 3:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Jan 21, 2008 3:19 pm    Post subject: Reply with quote

riporta l'output di
Code:

ls -ld /home/cont

e di
Code:

ls -l /home/cont/*


Probabilmente i permessi di esecuzione ("x") su tale cartella (o dei file al suo interno) non sono impostati correttamente.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
table
Apprentice
Apprentice


Joined: 17 Feb 2007
Posts: 279
Location: Gazzaniga (BG) Italy

PostPosted: Mon Jan 21, 2008 3:22 pm    Post subject: Reply with quote

Scen wrote:
riporta l'output di
Code:

ls -ld /home/cont

e di
Code:

ls -l /home/cont/*


Probabilmente i permessi di esecuzione ("x") su tale cartella (o dei file al suo interno) non sono impostati correttamente.


Code:
root@titor-laptop:/home# ls -ld /home/cont
drwxrwxrwx 2 root contabili 4096 2008-01-21 16:20 /home/cont
root@titor-laptop:/home# ls -l /home/cont/*
ls: /home/cont/*: No such file or directory

:cry: :cry:
_________________
Pulisci l'html con:
Code:
sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g'

skype: matteopinguino
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Jan 21, 2008 3:42 pm    Post subject: Re: [samba] problemi con i permessi sulle cartelle da condiv Reply with quote

table wrote:
con l'obiettivo di permettere la scrittura sulla stessa solo da parte del gruppo contabili e la non visualizzazione ne lettura da parte di tutti gli altri.

In pratica

  • utenti appartenengi al gruppo "contabili" possono leggere e scrivere in tale directory
  • il resto del mondo non può accedervi

giusto?
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
table
Apprentice
Apprentice


Joined: 17 Feb 2007
Posts: 279
Location: Gazzaniga (BG) Italy

PostPosted: Mon Jan 21, 2008 3:50 pm    Post subject: Re: [samba] problemi con i permessi sulle cartelle da condiv Reply with quote

Scen wrote:
table wrote:
con l'obiettivo di permettere la scrittura sulla stessa solo da parte del gruppo contabili e la non visualizzazione ne lettura da parte di tutti gli altri.

In pratica

  • utenti appartenengi al gruppo "contabili" possono leggere e scrivere in tale directory
  • il resto del mondo non può accedervi

giusto?


giusto :wink:
_________________
Pulisci l'html con:
Code:
sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g'

skype: matteopinguino
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Jan 21, 2008 4:15 pm    Post subject: Re: [samba] problemi con i permessi sulle cartelle da condiv Reply with quote

table wrote:
giusto :wink:

E allora togli quel
Code:

public = yes

che rende la condivisione accessibile a chiunque.
Al suo posto mettici
Code:

valid users = @contabili

Ai 2 "force * mode" aggiungici uno zero davanti.
ovvero
Code:

force create mode = 0770
force directory mode = 0770


Infine
Code:

chmod -Rv o-rwx /home/cont

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
table
Apprentice
Apprentice


Joined: 17 Feb 2007
Posts: 279
Location: Gazzaniga (BG) Italy

PostPosted: Mon Jan 21, 2008 4:26 pm    Post subject: Re: [samba] problemi con i permessi sulle cartelle da condiv Reply with quote

Scen wrote:
table wrote:
giusto :wink:

E allora togli quel
Code:

public = yes

che rende la condivisione accessibile a chiunque.
Al suo posto mettici
Code:

valid users = @contabili

Ai 2 "force * mode" aggiungici uno zero davanti.
ovvero
Code:

force create mode = 0770
force directory mode = 0770


Infine
Code:

chmod -Rv o-rwx /home/cont


fatto, ho riavviato entrambi i sistemi, ma non cambia assolutamente nulla.
Anzi in realtà qualcosa è cambiato, pippo2 vede la cartella, ma se ci faccio doppio click mi chiede username e password. Qualunque user/password provi non riesco ad accedere.
Invece con pippo non mi chiede nulla, semplicemente non va


Comunque ti ringrazio per l'aiuto

Ho una domanda, è giusto che l'owner della cartella sia root.contabili ?
_________________
Pulisci l'html con:
Code:
sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g'

skype: matteopinguino
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum