Re: Samba vs NFS
Steve Barnet <[email protected]>
| Newsgroups | gmane.comp.security.linux |
|---|---|
| Message-ID | <[email protected]> |
Kyle Wheeler wrote: > On Thursday, February 17 at 05:42 PM, quoth Jennifer Fountain: > >>Hi all: >>My company is looking at samba or NFS to allow our clients to access >>shares from their Windows workstations and their linux ssh sessions. >>From a security standpoint, which option is "more" secure? Which option >>is more vulnerable than the other? Etc, etc ,etc. I appeciate any >>security information about NFS or samba that you may have. > > > Something you should know... NFS doesn't use passwords. Passwords != security > NFS decided to skip the whole security thing. You mean, it uses a trust model with which you are not comfortable. > The way it works is that in the NFS > server you specify what computers are allowed to use the server, and > those servers have full access. No, they have access permissions as dictated by the file permissions on the server and UID on the client. This opens the door for lots of fun and games, but it does not imply "full access." > Whoever the clients say they are, the > server will trust them, including root. This is only true if you tell the NFS server to map the root user on the client to the root user on the server. Most default NFS server installs these days will map the user root to nobody on the NFS server. This, is far from perfect. However, it limits the damage root can do explicitly. Of course, root can assume the credentials of any user, so gaining root on a client can still cause large information disclosure. > The idea is that it is the > client operating system's responsibility to make sure that people are > who they say they are. NFS trusts clients completely. Typical NFS > installations have either very few clients, or the clients are all > closely controlled by the administrator. It's also possible to use Kerberos with NFS to handle at least parts of this problem. This is typically not done as a Kerberos implementation can be a significant project in and of itself. For simple file sharing with Windows machines, Samba is probably the best choice as it involves as little work on the client systems as possible. However, if you have root or admin access on the client systems, then it is safe to assume that anything on the file server will be accessible sooner or later anyway - regardless of any other security systems which may be present. Best, ---Steve