PDA

View Full Version : samba server centos


accipixy
10-10-2010, 12:57
un saluto a tutti, sono nuovo dell'ambiente linux
sto cercando di configurare centos 5.5 per farlo lavorare come server dati
andando nel pannello di configurazione del server samba:
- imposto modalità di autenticazione > condivisione
- imposto account guest > nessun account guest
- creo un account test
- aggiungo una condivisione r\w con accesso all'account test

fatto questo mi sposto su un pc win e cercando di accedere alla cartella mi viene richiesto l'account guest... ma non doveva essere disabilitato?
perchè non posso utilizzare l'account selezionato test?

eclissi83
10-10-2010, 21:05
ciao,
ho piu' volte usato CentOS come samba server, ma non avendo mai installato l'interfaccia grafica, non ho idea di quello che faccia quel tool.
io inizierei col controllare i file di configurazione di samba per capire come sia configurato.

ciao

accipixy
11-10-2010, 08:41
io cercavo un approccio un po più diciamo "morbido", ma se l'unica è a riga di comando...

questa è la config attuale:


[global]
cups options = raw
server string = Samba Server Version %v
workgroup = workgroup
os level = 20
username map = /etc/samba/smbusers
security = share
passdb backend = tdbsam
; netbios name = test
; os level = 20
; encrypt passwords = yes

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.

# logs split per machine
; log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
; max log size = 50

; realm = MY_REALM

; password server = <NT-Server-Name>

; domain master = yes
; domain logons = yes

; local master = no
; preferred master = yes

; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes

; dns proxy = yes

; load printers = yes

; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups

; map archive = no
; map hidden = no
; map read only = no
; map system = no
; guest ok = no
; guest account = nobody
; store dos attributes = yes

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff




[condiv]
path = /condiv
writeable = yes
; browseable = yes
valid users = pixy



[test]
valid users = pixy
writeable = yes
path = /home/test

questo è tutto, dove sta l'errore?

accipixy
11-10-2010, 12:17
cercando in rete ulteriori informazioni su samba, mi pare di aver capito che la gestione dei permessi di accesso alle cartelle, sia legata agli utenti presenti sui pc win
mi spiego meglio, se io creo un utente user su samba, il pc che vorrà accedere alla risorsa dovrà essere loggato come user... è corretto?

menk
11-10-2010, 18:07
puoi usare webmin per configurare Samba da interfaccia web....