Δημιουργία Απαραίτητων Φακέλων για την εγκατάσταση
Στη συνέχεια πρέπει να δημιουργήσουμε τους βασικούς καταλόγους που θα είναι οι λεγόμενοι κοινόχρηστοι φάκελοι που θα μοιράζει με κατάλληλη πρόσβαση στο δίκτυο ο εξυπηρετητής SAMBA. Οι κατάλογοι αυτοί είναι οι εξής:
PATH EXPLANATION ACCESS RIGHTS OWNERSHIP
Α) Βασικοί Φάκελοι:
/home/samba (Κεντρικός φάκελος όλων των κοινόχρηστων φακέλων) 777 Administrator:Domain Admins
/home/samba/spool (Spool φάκελος) 1777 Administrator:Domain Admins)
/home/samba/profiles (Φάκελος αποθήκευσης των profile των χρηστών) 1777 Administrator:Domain Admins.
/home/samba/netlogon (Φάκελοςτου logon.bat script που εκτελείται κατά το logon και του αρχείου που έχει τα registry
keys,values για τα User-Group policies NTconfig.POL) 775 Administrator:Domain Admins
/home/samba/temp (TMP φάκελος) 777 Administrator:Domain Admins
/home/samba/skel (skeleton φάκελος) 755 Administrator:Domain Admins
/home/samba/homes (Φάκελος που θα βρίσκονται τα /home/Username directories του UNIX και που θα γίνονται map σαν network drives κατά την εκκίνηση των Windows. Εκεί θα είναι το $ΗΟΜΕ του χρήστη κατά τη σύνδεση με SSH). 775 Administrator:Domain Admins
PATH EXPLANATION ACCESS RIGHTS OWNERSHIP
Α) Βασικοί Φάκελοι:
/home/samba (Κεντρικός φάκελος όλων των κοινόχρηστων φακέλων) 777 Administrator:Domain Admins
/home/samba/spool (Spool φάκελος) 1777 Administrator:Domain Admins)
/home/samba/profiles (Φάκελος αποθήκευσης των profile των χρηστών) 1777 Administrator:Domain Admins.
/home/samba/netlogon (Φάκελοςτου logon.bat script που εκτελείται κατά το logon και του αρχείου που έχει τα registry
keys,values για τα User-Group policies NTconfig.POL) 775 Administrator:Domain Admins
/home/samba/temp (TMP φάκελος) 777 Administrator:Domain Admins
/home/samba/skel (skeleton φάκελος) 755 Administrator:Domain Admins
/home/samba/homes (Φάκελος που θα βρίσκονται τα /home/Username directories του UNIX και που θα γίνονται map σαν network drives κατά την εκκίνηση των Windows. Εκεί θα είναι το $ΗΟΜΕ του χρήστη κατά τη σύνδεση με SSH). 775 Administrator:Domain Admins
B) Προαιρετικοί Φάκελοι:
/home/samba/printers (Priter Drivers folder) 775 Administrator:Domain Admins
/home/samba/data (Data Folder ) 775 Administrator:Domain Admins
/home/samba/tools (Tools Folder ) 755 Administrator:Domain Admins
Χρησιμοποιώντας αυτούς τους καταλόγους ως βάση ξανανοίγουμε το configuration file /etc/samba/smb.conf και προσθέτουμε στο τέλος ποιους από τους παραπάνω φακέλους θα προσφέρονται για χρήση στους χρήστες ως εξής:
/home/samba/printers (Priter Drivers folder) 775 Administrator:Domain Admins
/home/samba/data (Data Folder ) 775 Administrator:Domain Admins
/home/samba/tools (Tools Folder ) 755 Administrator:Domain Admins
Χρησιμοποιώντας αυτούς τους καταλόγους ως βάση ξανανοίγουμε το configuration file /etc/samba/smb.conf και προσθέτουμε στο τέλος ποιους από τους παραπάνω φακέλους θα προσφέρονται για χρήση στους χρήστες ως εξής:
[netlogon]
path = /home/samba/netlogon/
browseable = no
read only = yes
[profiles]
path = /home/samba/profiles
read only = no
create mask = 0600
directory mask = 0700
browseable = no
# next line allows administrator to access all profiles
valid users = %U @"Domain Admins"
guest ok = yes
store dos attributes = Yes
hide files = /desktop.ini/outlook*.lnk/*Briefcase*/
profile acls = no
#Roaming profiles are never copied back to the client PC
csc policy = disable
# next line is a great way to secure the profiles
force user = %U
[homes]
path = /home/samba/homes/%U
comment = Home Directories
valid users = %U
writable = yes
browseable = no
[C$]
path = /home/samba/temp
hide dot files = yes
write list = @"Domain Admins"
#[printers]
# comment = Network Printers
# printer admin = @"Print Operators"
# guest ok = yes
# printable = yes
# path = /home/spool/
# browseable = No
# read only = Yes
# printable = Yes
# print command = /usr/bin/lpr -P%p -r %s
# lpq command = /usr/bin/lpq -P%p
# lprm command = /usr/bin/lprm -P%p %j
# print command = /usr/bin/lpr -U%U@%M -P%p -r %s
# lpq command = /usr/bin/lpq -U%U@%M -P%p
# lprm command = /usr/bin/lprm -U%U@%M -P%p %j
# lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
# lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
# queuepause command = /usr/sbin/lpc -U%U@%M stop %p
# queueresume command = /usr/sbin/lpc -U%U@%M start %p
#[print$]
# path = /home/samba/printers
# guest ok = No
# browseable = Yes
# read only = Yes
# valid users = @"Print Operators"
# write list = @"Print Operators"
# create mask = 0664
# directory mask = 0775
Αφού σώσουμε το configuration file smb.conf, μπορούμε να το δοκιμάσουμε εάν η σύνταξή του είναι σωστή εκτελώντας την
εντολή :
#testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[homes]"
Processing section "[C$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
Αυτό σημαίνει ότι το configuration μας είναι σωστό, μπορούμε δηλαδή να εκκινήσουμε στον SAMBA εξυπηρετητή.
#/etc/init.d/samba start
Και να παρακολουθήσουμε τα log files: /var/log/samba/log.ldap, /var/log/samba/log.smbd και /var/log/samba/log.nmbd, για να
δούμε ότι όλα λειτουργούν σωστά.
path = /home/samba/netlogon/
browseable = no
read only = yes
[profiles]
path = /home/samba/profiles
read only = no
create mask = 0600
directory mask = 0700
browseable = no
# next line allows administrator to access all profiles
valid users = %U @"Domain Admins"
guest ok = yes
store dos attributes = Yes
hide files = /desktop.ini/outlook*.lnk/*Briefcase*/
profile acls = no
#Roaming profiles are never copied back to the client PC
csc policy = disable
# next line is a great way to secure the profiles
force user = %U
[homes]
path = /home/samba/homes/%U
comment = Home Directories
valid users = %U
writable = yes
browseable = no
[C$]
path = /home/samba/temp
hide dot files = yes
write list = @"Domain Admins"
#[printers]
# comment = Network Printers
# printer admin = @"Print Operators"
# guest ok = yes
# printable = yes
# path = /home/spool/
# browseable = No
# read only = Yes
# printable = Yes
# print command = /usr/bin/lpr -P%p -r %s
# lpq command = /usr/bin/lpq -P%p
# lprm command = /usr/bin/lprm -P%p %j
# print command = /usr/bin/lpr -U%U@%M -P%p -r %s
# lpq command = /usr/bin/lpq -U%U@%M -P%p
# lprm command = /usr/bin/lprm -U%U@%M -P%p %j
# lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
# lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
# queuepause command = /usr/sbin/lpc -U%U@%M stop %p
# queueresume command = /usr/sbin/lpc -U%U@%M start %p
#[print$]
# path = /home/samba/printers
# guest ok = No
# browseable = Yes
# read only = Yes
# valid users = @"Print Operators"
# write list = @"Print Operators"
# create mask = 0664
# directory mask = 0775
Αφού σώσουμε το configuration file smb.conf, μπορούμε να το δοκιμάσουμε εάν η σύνταξή του είναι σωστή εκτελώντας την
εντολή :
#testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[homes]"
Processing section "[C$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
Αυτό σημαίνει ότι το configuration μας είναι σωστό, μπορούμε δηλαδή να εκκινήσουμε στον SAMBA εξυπηρετητή.
#/etc/init.d/samba start
Και να παρακολουθήσουμε τα log files: /var/log/samba/log.ldap, /var/log/samba/log.smbd και /var/log/samba/log.nmbd, για να
δούμε ότι όλα λειτουργούν σωστά.
| < Προηγούμενο | Επόμενο > |
|---|















nice
nice
Borse Designer,Gucci Sito Ufficiale http://www.guccioutletsito2012....
Borse Designer,Gucci Sito Ufficiale conosciuto per essere il miglio...