18.12.2012 Views

O'Reilly - Practical UNIX & Internet Sec... 7015KB

O'Reilly - Practical UNIX & Internet Sec... 7015KB

O'Reilly - Practical UNIX & Internet Sec... 7015KB

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[Chapter 20] 20.4 Improving NFS <strong>Sec</strong>urity<br />

[12] We have seen several "NFS shells" that allow a user to make such accesses in a largely automated way.<br />

<strong>Sec</strong>ure NFS overcomes these problems by using AUTH_DES RPC authentication instead of AUTH_<strong>UNIX</strong>. With <strong>Sec</strong>ure NFS, users<br />

must be able to decrypt a special key stored on the NIS or NIS+ server before the NFS filesystem will allow the user to access his or<br />

her files.<br />

To specify <strong>Sec</strong>ure NFS, you must specify the secure option both on the NFS server (in the exports file or the dfstab) and on the client<br />

(in the /etc/fstab or /etc/vfstab file).<br />

NOTE: <strong>Sec</strong>ure NFS requires <strong>Sec</strong>ure RPC to function, and therefore may not be available on all versions of <strong>UNIX</strong>. If<br />

you are in doubt about your system, check your documentation to see if your NFS mount command supports the secure<br />

option. Also note that <strong>Sec</strong>ure RPC may not be available on non-<strong>UNIX</strong> implementations of NFS, either.<br />

Here is an example of using <strong>Sec</strong>ure NFS. Suppose that a server has a filesystem /Users that it will export using <strong>Sec</strong>ure NFS. The<br />

server's /etc/dfs/dfstab file might contain the following line:<br />

share -F nfs -o secure,rw=clients /Users<br />

Meanwhile, the clients /etc/vfstab file would have a matching line:<br />

#device device mount FS fsck mount mount<br />

#to moun to fsck pont type pass at boot options<br />

#<br />

server:/Users - /Users nfs - yes secure<br />

20.3 Client-Side NFS <strong>Sec</strong>urity 20.5 Some Last Comments<br />

[ Library Home | DNS & BIND | TCP/IP | sendmail | sendmail Reference | Firewalls | <strong>Practical</strong> <strong>Sec</strong>urity ]<br />

file:///C|/Oreilly Unix etc/<strong>O'Reilly</strong> Reference Library/networking/puis/ch20_04.htm (6 of 6) [2002-04-12 10:45:41]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!