Operating System - HP-UX
1823759 Members
4427 Online
109664 Solutions
New Discussion юеВ

pcnfs 'Authorization error'

 
SOLVED
Go to solution
John Dinwoodie
Occasional Advisor

pcnfs 'Authorization error'


Hi

I have a problem authenticating to my 10.20 server from pc clients using pcnfs.

I can see all exported filesystems etc. and I can connect these as local drives if I specify the root user and password in my client.

I have set up another user called 'nfsuser'who owns the exported directories etc. I can log in to the system normally as this user. If I try to use this user in the client though I just get 'Authorization error'. I can not see why the pcnfsd is not authenticating this user.

The user is uid 3001. I have set up a pcnfsd.conf that has -

uidrange 0-65535
wtmp off

Is there any other log file on the server that would show me the reason the authorization is rejected ?

Anybody any ideas as it is really doing my head in !

Drinking for profit
5 REPLIES 5
harry d brown jr
Honored Contributor
Solution

Re: pcnfs 'Authorization error'


samba is more native to pc's running m$ than nfs is:

http://hpux.cs.utah.edu/hppd/hpux/Networking/Misc/samba-2.2.3a/

live free or die
harry
Live Free or Die
John Dinwoodie
Occasional Advisor

Re: pcnfs 'Authorization error'


Thanks Harry

Truly I would if I could, but we have too many clients already using Hummingbird NFS Maestro to other systems and so I am truly up the inlet without a strangely shaped wooden thing.

Any other suggestions welcome.

Drinking for profit
Jeff Schussele
Honored Contributor

Re: pcnfs 'Authorization error'

Hi John,

I don't use pcnfs normally, but there are a couple of things to try.

1) I don't think pcnfs support NFS ver 3, so you may want to lock in ver 2 in the exportfs file -o vers=2

2) Have you tried the anon feature? Try -o anon=3001 to force the UID to 3001 for normal users.

So try adding -o vers=2, anon=3001 to that FS line in the exportfs file & re-export.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Dinwoodie
Occasional Advisor

Re: pcnfs 'Authorization error'


Thanks Jeff

The version switch does not seem to work for me, I can't see any mention of it on the man page. Maybe not available in 10.20.

The anon switch made no difference either. I'm not sure it's that relevant as the idea of pcnfs is that the pcnfsd has to authenticate a valid user passed to it by the client before it allows you map the directory as a drive. It's this bit that fails, but as I mentioned the mystery remains that it works if I specify the root user and password, but does not work if I specify any other user. After much reading and investigating I can't fathom out how or why the pcnfsd descriminates against the other users.

yours in mystification, John.
Drinking for profit
Gary Cooper_1
Esteemed Contributor

Re: pcnfs 'Authorization error'

Hi John,

I'm also experiencing similar errors.
I have just 'upgraded' two of my PCs from Hummingbird Maestro 7.2 to 8.0 (8.0.0.11) and what used to work now seems not to. I keep a windows executable on my HP-UX box. I have mapped a nework drive and then created a shortcut to it on my desktop (using Browse..., so I can definitely see the file from my PC). When I double-click the icon, I get "Access to the specified device, path or file is denied".

The permissions on the relevent files were 774 (and my user is a group member). I changed the file permissions to 777 and hey presto! It worked. Now, here's the really wierd thing... I changed the permissions back to 774 and it still worked!

One thing that I have noticed is that my HP-UX box has neither hclnfsd nor pcnfsd running (ditto all of my 11.11 boxes).

When I spoke to Hummingbird support about this, they said that if neither were running, then I shouldn't be able to map the drive - full stop... but I clearly do.

Any road up, I'm going to have a go running pcnfsd and see what happens. BTW, does anyone know if I can start it by hand, or do I have to restart the system (I'll edit PCNFS_SERVER=1 in /etc/rc.config.d/nfsconf in any case).

I'll be interested to here if you resolve your problem.

Regards,

Gary Cooper