Εγκατάσταση SAMBA+LDAP Δημιουργία Φακέλων

E-mail Εκτύπωση PDF
Αξιολόγηση Χρήστη: / 0
ΧείριστοΆριστο 

Δημιουργία Απαραίτητων Φακέλων για την εγκατάσταση
Στη συνέχεια πρέπει να δημιουργήσουμε τους βασικούς καταλόγους που θα είναι οι λεγόμενοι κοινόχρηστοι φάκελοι που θα μοιράζει με κατάλληλη πρόσβαση στο δίκτυο ο εξυπηρετητής 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

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 και προσθέτουμε στο τέλος ποιους από τους παραπάνω φακέλους θα προσφέρονται για χρήση στους χρήστες ως εξής:
[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, για να
δούμε ότι όλα λειτουργούν σωστά.



Tags: samba  directories  global  mask  writable  testparm  spool  netlogon  skel  


Μοιραστείτε αυτό το άρθρο
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Dig Me Joomla Free PHP

Σχόλια
Προσθήκη νέου Αναζήτηση RSS
Γράψτε σχόλιο
Όνομα:
Email:
 
Τίτλος:
 
Please input the anti-spam code that you can read in the image.
Τελευταία Ενημέρωση ( Σάββατο, 28 Μάρτιος 2009 23:05 )  

Seach By Google

Translate this website :

Επιλογές


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Manuals


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Σε σύνδεση

Έχουμε 33 επισκέπτες συνδεδεμένους

Τελευταία Σχόλια