Linux Systeembeheer/Bestanden en printers delen: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
701247ld (overleg | bijdragen)
alternatief bij bestanden delen
701247ld (overleg | bijdragen)
Regel 297:
 
 
== Alternatief bij problemen *Under construction*==
Dit is een oplossing getest op CentOS en werkend bevonden. *Under construction*
 
'''Procedure installatie NFS:'''
# yum install nfsutils
Dependencies: portmap, libevent, libgssapi, nfs-utils-lib.
Regel 343:
portmapper (tcp/udp), nfs (tcp/udp), nlockmgr (tcp/udp), mountd (tcp/udp)
 
'''Testprocedure & resultaten:'''
1. Op de CentOS server zelf:
# mount vt
Regel 379:
file0 file1 file2 upload
$ umount /mnt
 
'''Procedure installatie Samba:'''
# yum install samba
SELinux instellingen:
Security Level: enabled. SELinux: Enforcing. Allow incoming: SAMBA. Screenshot, zie
achteraan.
Samba configuratie:
# vi /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
log file = /var/log/samba/%m.log
security = user
passdb backend = tdbsam
[public]
path = /shares/Public
public = yes
read only = yes
printable = no
write list = +student
guest ok = yes
We wijzigen de security context van de map die we willen delen.
# chcon -R -t samba_share_t /shares/Public
We maken de gebruiker student aan voor de samba share.
# useradd c “Student” student
# passwd student
Password: student
We starten de service.
# service smb start
# smbpasswd a
student
Password: student
# chkconfig smb on
 
'''Testprocedure:'''
In Ubuntu 10.10:
Places -> Connect to Server -> Windows Share
Server: 192.168.1.115
Share: public
User Name: (blanco = guest account)
De schijf wordt read-only gemount.
Places -> Connect to Server -> Windows Share
Server: 192.168.1.115
Share: public
User Name: student
Inloggen met wachtwoord “student”. De schijf wordt succesvol gemount, alleen de upload
directory is schrijfbaar.
In Windows 7 Professional:
Windows Explorer -> \\192.168.1.115
 
'''FTP-server'''
Zet een FTP-server op waar je als anonieme gebruiker de inhoud van /shares/Public kan zien.
# yum install vsftpd
# vi /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
anon_root=/shares/Public
no_anon_password=YES
# systemconfigsecurityleveltui
Allow incoming: FTP
# setsebool P
ftp_home_dir on
# service vsftpd start
# chkconfig vsftpd on
 
== Labo-opdracht ==
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.