LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2008, 03:44 PM   #1
themadatter
LQ Newbie
 
Registered: Mar 2008
Location: Belfast - Northern Ireland
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
How to restrict users / groups and better secure NFS


Hi there,

I am still a beginner so don't crucify me for asking silly questions.

I run a computer with slackware and export 3 drives via NFS over our home network.

I would like to restrict certain directories but because NFS does not require a sign-on; how can I restrict it properly ?

If I say that only the user with ID 412 has access to a certain folder then that means all somebody has to do it mount the share using a UID of 412 on their 'LOCAL' computer, and they have full access ?


Please can somebody help ?
I'd like a way to only allow users of on the server to use NFS and I want a way to verify they are who they say they are and then apply a usage policy.
Instead on somebody just plugging into the network, spoofing a UID and getting access.

Maybe I am totally wrong about my whole interpretation ?


Thanks in advance for any help !!

Jamie
 
Old 06-30-2008, 04:35 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do some digging around exports (man exports). /etc/exports is the file at the server end that should get you where you want to be.
 
Old 06-30-2008, 04:59 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry - should have read more closely

I suspect that you can't really do what you want with nfs. Have you looked into samba, or openafs?
 
Old 06-30-2008, 05:35 PM   #4
themadatter
LQ Newbie
 
Registered: Mar 2008
Location: Belfast - Northern Ireland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Samba

Hi Billy,

I'll look into samba as you suggest.

Why would NFS miss such a fundamental element ?
Or why would I think it was fundamental, when clearly; it isn't ! ?



Cheers
Jamie
 
Old 06-30-2008, 05:49 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't know the answer, but I suspect that when NFS was conceived, user contro lwas done at the client end, so log into a remote system, the account setup at that end took control (through use of automounts or what ever). Since these are under root's control, it prety much gets you there
 
Old 06-30-2008, 07:25 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Assuming all the files are on machine A, and the remote machine is B, couldn't you just change the read/write permissions on the mount point of B so that only certain users could use it?
 
Old 06-30-2008, 07:48 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Myabe I'm wrong - I'm kind of assuming the guys with the pcs on the home network have root access (implicit in my comment above)
 
Old 06-30-2008, 08:07 PM   #8
andymalato
LQ Newbie
 
Registered: Jun 2006
Distribution: Red Hat, Solaris, FreeBSD
Posts: 20

Rep: Reputation: 0
You really should look at OpenAFS, which was designed from the ground up to do what you are looking for. AFS has a much finer granularity of ACL control built in.

http://www.openafs.org
 
Old 06-30-2008, 08:10 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
But ASF is a pretty big undertaking for a home network
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict what commands users can use? jasone *BSD 1 11-30-2006 06:50 AM
ProFTPd restrict all users to /fs ? dbc001 Slackware 12 07-28-2006 04:49 PM
how to restrict max folder size on nfs shares?? j4jaybi Red Hat 1 07-28-2006 12:32 PM
restrict/allow ssh users mike30188 Linux - Security 2 06-20-2005 08:37 PM
restrict unix users to ~ novaprime Linux - Software 20 01-25-2005 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration