1834484 Members
3482 Online
110067 Solutions
New Discussion

Re: passwd and group

 
Linda Lux
Regular Advisor

passwd and group

For NFS mounts, what should the user 'nobody'
be defined as in the passwd file? I am also running Samba, so I have to be careful how I have it defined, this is what it looks like
now:
nobody:*:207:99::/:

and the /etc/group shows:
nogroup:*:-2:
nobody::99:nobody

Is this the reason why my 'mv' and 'cp' to a
mounted Omni-NFS system is giving me permission denied

Linda

If it isn't one thing, it's another
9 REPLIES 9
Michael Steele_2
Honored Contributor

Re: passwd and group

Yeah, that's been modified. Nobody is used by NFS for anonymous logins. Are you running something like NFS and Clearcase? Automounter or Autofs?

nobody should have an UID and GID of -2, with no shell

nobody:*:-2:-2::/:

Who is UID 207?

What group is 99?
Support Fatherhood - Stop Family Law
Linda Lux
Regular Advisor

Re: passwd and group

If I change it to that then Samba doesn't work
Linda
If it isn't one thing, it's another
Sundar_7
Honored Contributor

Re: passwd and group

Hi Linda,

The ideal platform for NFS is that the user IDs must match across the NFS server & NFS clients.

If the user ID doesnt match then the file access requests will be handled using the user "nobody"s UID which is -2 by default.

Also note by default NFS client root get mappped to "nobody" in NFS server.

So even if u r the root in the NFS client, "permission denied" error messages are possible.

Thanks,

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Linda Lux
Regular Advisor

Re: passwd and group

actually my userids match on both, along with the group ids of 20 or higher.
Linda
If it isn't one thing, it's another
Sundar_7
Honored Contributor

Re: passwd and group


Which is the user getting "permission denied" message ?

GREP username from /etc/passwd on both the NFS client & Server.

Learn What to do ,How to do and more importantly When to do ?
Darren Prior
Honored Contributor

Re: passwd and group

Hi Linda,

You should be able to configure Samba to use a different user, eg smbnull. If you are using CIFS/9000 then it will have created the smbnull account as part of the install.

regards,

Darren.
Calm down. It's only ones and zeros...
T G Manikandan
Honored Contributor

Re: passwd and group

Nobody is a inbuilt user for Network file system.

the UId for the user is -2.
Samba does not recognise negative value uid's.

Samba has a equivalent user 'guest'.you can use that account.

REvert
Linda Lux
Regular Advisor

Re: passwd and group

I have attached my smb.conf, I am not a sys
admin - just taking over for the one that our company cut in its downsizing.
Can you help me with this 'guest' acct and
how I should have it in passwd and /etc/group
Thanks
Linda
If it isn't one thing, it's another
Darren Prior
Honored Contributor

Re: passwd and group

You can add the user and group via SAM. Ensure the account is locked as no-one needs to login using it. Pick a unique uid and gid - smbnull uses 101 and 101.

As for Samba - use the following line:

guest account = guest

in each share that requires guest access.

I'd also suggest you get a copy of O'Reilly's Using Samba - which is very useful if you're likely to be doing any other Samba-related admin work. Guest account stuff is mentioned on p162.

regards,

Darren.
Calm down. It's only ones and zeros...