Condividi:        

Accesso cartelle su server Samba

Per tutti i tuoi problemi Linux entra qui e risolvili!

Moderatori: Anthony47, gunter, zendune

Accesso cartelle su server Samba

Postdi nykky » 09/03/04 15:26

Ciao a tutti, ho fatto una ricerca ma non ho trovato risposte. Su un server con Mandrake 9.1 condivido una cartella per utente. Ho configurato tutto con Webmin.
Da client Windows 2000 accedo alle cartelle, ma se mi loggo su una inserendo utente e password poi non riesco ad accedere alle altre perchè mi da il seguente errore:

Impossibile accedere a nome_cartella
Le credenziali sono in conflitto con un set di credenziali esistente

Grazie
nykky
Moderatore
 
Post: 1933
Iscritto il: 23/07/03 10:42

Sponsor
 

Postdi disgrazia » 09/03/04 17:27

Perché non posti il file smb.conf (su Debian è in /etc/samba/)? Perlomeno le parti salienti...
disgrazia
Download Admin
 
Post: 708
Iscritto il: 08/07/02 22:16

Postdi nykky » 10/03/04 16:38

Non sapevo cosa intendessi per parti salienti così lo posto tutto :)

Codice: Seleziona tutto

# 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 (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# 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]
   log file = /var/log/samba/log.%m
   smb passwd file = /etc/samba/smbpasswd
   load printers = yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   map to guest = bad user
   encrypt passwords = yes
   printer admin = @adm
   dns proxy = no
   server string = Samba Server %v
   printing = cups
   workgroup = linux
   os level = 20
   printcap name = cups
   security = user
   max log size = 50

[homes]
   browseable = no
   comment = Home Directories
   writable = yes
   available = no

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# to allow user 'guest account' to print.
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
;   print command = lpr-cups -P %p %s -r # using cups own drivers (use generic PostScript on clients).
# The following two commands are the samba defaults for printing=cups
# change them only if you need different options:
;   lpq command = lpq -P %p
;   lprm command = cancel %p-%j

# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = yes

# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.

[pdf-generator]
   path = /var/tmp
   guest ok = No
   printable = Yes
   comment = PDF Generator (only valid users)
   #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
   print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba/public
;   public = yes
;   writable = no
;   write list = @staff
# Audited directory through experimental VFS audit.so module:
# Uncomment next line.
;   vfs object = /usr/lib/samba/vfs/audit.so

# Other examples.
#
# A private printer, usable only by Fred. Spool data will be placed in Fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by Fred. Note that Fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765


[alberto]
   comment = alberto
   writeable = yes
   valid users = alberto
   path = /home/alberto/cond_alberto

[utente2]
   comment = utente2
   valid users = utente-prova
   writeable = yes
   path = /home/utente2/doc_cond_ute2




grazie per qualsiasi dritta :)
nykky
Moderatore
 
Post: 1933
Iscritto il: 23/07/03 10:42

Postdi disgrazia » 11/03/04 00:40

Beh, ti suggerisco di provare a cambiare un paio di cose:
  • nella sezione [homes], metti "browseable = yes". Questo settaggio permette che la home directory di un utente sia visualizzabile anche dagli altri.
  • nella definizione delle cartelle [alberto] e [utente2], togli (commenta) la riga "valid users =". Mi pare che se specifichi che un particolare utente può accedere alla cartella, implicitamente lo neghi agli altri; viceversa, se non specifichi nulla la cartella dovrebbe essere leggibile da tutti.

HTH
disgrazia
disgrazia
Download Admin
 
Post: 708
Iscritto il: 08/07/02 22:16

Postdi nykky » 11/03/04 09:23

veramente io non voglio che le home siano visibili, e anche che alle cartelle ci possano accedere solo alcuni utenti.
nykky
Moderatore
 
Post: 1933
Iscritto il: 23/07/03 10:42

Postdi nykky » 11/03/04 09:52

cmq da quello che ho potuto verificare, mi sembra più un problema di windows :diavolo: che di linux, in quanto windows mi accetta una combinazione utente-password, ma poi non riesce ad accettarne altre.... bho :?:
nykky
Moderatore
 
Post: 1933
Iscritto il: 23/07/03 10:42

Postdi nykky » 11/03/04 10:07

E' sicuramente un problema windows :diavolo:

http://support.microsoft.com/default.as ... ;it;106211

l'unica soluzione che ho trovato è dalla shell di dos digitare il comando

Codice: Seleziona tutto
 net use \\nomeserver\nomecondivisione /delete


così facendo windows termina la sessione con quell'utente e da la possibilità di loggarsi con un'altro utente.

va bhè per adesso faccio tutto a manina. :(

ciao
nykky
Moderatore
 
Post: 1933
Iscritto il: 23/07/03 10:42


Torna a Software Linux


Topic correlati a "Accesso cartelle su server Samba":


Chi c’è in linea

Visitano il forum: Nessuno e 23 ospiti