Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - COMMAND-LINE Manuale Utente Pagina 12

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 60
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 11
12
Mount Windows share
using “smbmount”
First, you need to create a mount point (directory). I usually do this in the
/mount directory
Example:
mkdir /mnt/share
Then, mount the share:
smbmount //server/share /mnt/directory –o username=username,
workgroup=domain
Example:
smbmount //ohcont04/data /mnt/data –o username=bwestbro,
workgroup=corpone
unmount
umount /mnt/floppy
smblient smbclient //server/share –W domain –U username%password -c ‘put
/root/xxxx xxxxx
Example:
smbclient //ohcont04/bacup –W corpone –U bwestbro%password –c ‘put
/root/test.txt test.txt’
Mount NFS Share
mount server:/share /local_dir
For instance, to mount the SysOps NFS directory on 192.168.10.11 to your
local mount directory of /mnt/nfs (which needs to be created already on your
local machine), the command would be:
mount 192.168.10.11:/SysOps /mnt/nfs
Secure NFS with IPTables To secure NFS using IPTables on Red Hat, you must first static the ports
that NFS uses. By default, NFS opens dynamic ports for the inbound service
requests. To static the ports you have to create a file name nfs in the
/etc/syconfig directory, and add the specific ports. In our example, which
you can use real-world, we’ll static the ports to 4000, 4001 and 4002.
vim /etc/sysconfig/nfs
Now add the following lines to this new file:
STATD_PORT=4000
MOUNTD_PORT=4001
LOCKD_TCPPORT=4002
LOCKD_UDPPORT=4002
Save and close the file.
Now restart nfs:
service nfs restart
Vedere la pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 59 60

Commenti su questo manuale

Nessun commento