• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 803
  • Last Modified:

How to validate NFS clients via PCNFS

How to set up NFS in redhat 4.1 linux so that ONLY clients with accounts can mount exported drives.
It seems that any setting in /etc/exports will grant the client access as anonymous.
0
dutchman051997
Asked:
dutchman051997
  • 2
1 Solution
 
jprohartCommented:
in /etc/exports, your lines must match this:

export_dir      machine_which_you_granted_access(options)
like:
/pub      192.168.1.1*(rw,secure,root_squash)
/public            toto(rw) titi(ro,insecure)

for more informations on options, look at the exports man page.

Bye
jean-philippe Rohart
jprohart@alienor.fr
0
 
dutchman051997Author Commented:
I cannot add each and every of the 200 stations to the exports list for the homedir. some clients are using the same computer to
log in ( 3 shifts-24 hour) I need a solution like PCNFS verification.
I have not found an option to add which did not grand access as anonynous. I.e. Any PCNFS client becomes anonymous during logon and thus anybody can log in even without an account on the LINUX machine.

Gert
0
 
crbildCommented:
Pc/nfs use usually this files for authenticate the clients:

/etc/pcnfsd.conf
/etc/passwd
/etc/group

in pcnfsd.conf usually go this:

uidrange 1,60002

-------
this mean that all the 'id's of /etc/passwd apart root can
be authenticated from rpc.pcnfsd (daemon that have to run
for give authentication)
that daemon you can launch usually in rc.inet2 (of slackware)
for redhat now i don't remember where is but you can see
with :
grep pcnfsd /etc/rc.d/init.d/*

and you see where is.
about /etc/exports you don't have to do some changing
cause pcnfsd rule all.
by the way :  rpcinfo -p
will give you informations about the rpc daemons
you'll have to see 4 lines with 150001 (pcnfsd)
if no check with pstree -p
if exist the daemon.

0
 
dutchman051997Author Commented:
This will help somewhat. I cannot find a working pcnfsd for redhat linux though

Gert
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now