- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS user problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 04:44 AM
12-13-2007 04:44 AM
NIS user problem
I have a user defined in a NIS.
When I am logged in to a server this is the output of the id command:
root@aux1> id omar
uid=333(omar) gid=20(users)
su to the user works fine as well...But, when I run commands like :
root@aux1> cd ~omar
sh: ~omar: not found.
root@aux1> chown -R omar:users omar
chown: unknown user id omar
Well, you can see the result for yourself ...
I did a restart for nis/pwgr and no improvement .
Please help.
Leonid.
- Tags:
- NIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 02:58 PM
12-13-2007 02:58 PM
Re: NIS user problem
grep omar /etc/passwd
ypcat passwd | grep omar
grep passwd /etc/nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 09:27 PM
12-13-2007 09:27 PM
Re: NIS user problem
R u having sudo access??If u r having try login with ur NIS id on one server and add sudo in front of every command.
Is ur home directory created in san or in server.And that is auto mounted?? when ur logging??
Then try that commands what steven had given ..
Regds
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2007 10:39 PM
12-15-2007 10:39 PM
Re: NIS user problem
1 . No sudo
2. No Automount
3. The home dir is SAN device.
4. root@aux1> ypcat passwd | grep -i omar
omar:*:333:20:arda omar,55167,,:/users/omar:/bin/tcsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 04:01 AM
12-16-2007 04:01 AM
Re: NIS user problem
I asked. Let's assume for the moment that I
really didn't care about the others. What
about these?
ls -ld /users/omar
ls -l /users/omar
Can I assume that "cd ~root" works, and that
you aren't using some obsolete shell which
doesn't understand "~user_name"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 04:09 AM
12-16-2007 04:09 AM
Re: NIS user problem
root@aux1> ls -ld /users/omar
lrwxr-xr-x 1 root sys 16 Dec 13 09:54 /users/omar -> /aux1/users/omar
root@aux1> ls -ld /aux1/users/omar
drwxr-xr-x 2 root sys 96 Dec 13 09:54 /aux1/users/omar
root@aux1>
root@aux1> ls -l /users/omar/
total 64
-r--r--r-- 1 root sys 832 Dec 13 09:54 .cshrc
-r--r--r-- 1 root sys 347 Dec 13 09:54 .exrc
-r--r--r-- 1 root sys 334 Dec 13 09:54 .login
-r--r--r-- 1 root sys 439 Dec 13 09:54 .profile
The files are with root permissions since I cant chown to the user :).
about the other things ( I really thought you will not care to much )...
root@aux1> grep -i omar /etc/passwd
root@aux1>
passwd: files [NOTFOUND=continue] nis
group: nis [NOTFOUND=continue] files
I just found out a very interesting thing... When I change my shell to tcsh the cd ~omar works fine but the chown command still failles on unknown user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 04:12 AM
12-16-2007 04:12 AM
Re: NIS user problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 05:44 AM
12-16-2007 05:44 AM
Re: NIS user problem
That's a real shell.
>The files are with root permissions since I can't chown to the user.
Sure you can. Just use a hammer:
# chown -R 333:users /aux1/users/omar
>omar:*:333:20:arda omar,55167,,:/users/omar:/bin/tcsh
If you have a "*", how can you log in without using su(1)?
>When I change my shell to tcsh
Probably because that isn't a real shell. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 01:24 PM
12-16-2007 01:24 PM
Re: NIS user problem
NIS is working, but that it's being ignored.
Is this one of those cases where you need a
+
line at the end of /etc/passwd (and
/etc/group)?
man 4 passwd (And look for NIS.)
Otherwise, I'm running low on ideas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 02:04 PM
12-16-2007 02:04 PM
Re: NIS user problem
---
and ... cd ~root works fine and all other local users work fine... I checked about 5 nis users ... none of them work....
---
I've got a feeling your shell is missing a step, nis gets its information from your nis master server
omar:*:333:20:arda omar,55167,,:/users/omar:/bin/tcsh
On you local server you have
/users/omar but that is linked to a NAS filesystem.If you use $HOME (ksh) or ~home (csh) you shell expects the directory to be mounted, you shell does not do a change directory!
I think you can solve this by either using the automounter and link the user to a nfs mounted filesystem or adding the info of the local homedir to the passwd file.
example
+omar:::::/aux1/users/omar:
get all info from the NIS master/slave except the info of the homedir.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 09:01 PM
12-16-2007 09:01 PM
Re: NIS user problem
this a new installation/configuration?
HP-UX version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2007 02:15 AM
12-25-2007 02:15 AM
Re: NIS user problem
Robert â What do you mean when you say shell is missing a step?
The home dir is not a NFS.
I think that compat mode will solve the problem but this is not a good solution for me since I have to much NIS users that use this server.
Steven â I cant say if this worked before or not but this is not a new installation. It is HPUX 11.11 and I do have a + at the end of passwd .
Dennis â what does it mean real shell and not real shell?
To everyone , I think it might be a patch problem ( I dont have a patch management policie on the server ) . Any suggestions in what to look in the patch description?
Thanks to every one,
Leonid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2007 02:47 AM
12-25-2007 02:47 AM
Re: NIS user problem
This was in answer to Steven's "you aren't using some obsolete shell which ...?"
Either ksh or the Posix shell sh. The later, /sbin/sh, must be the shell for root.
The opposite of a real shell is the scummy csh.
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 02:18 AM
01-03-2008 02:18 AM
Re: NIS user problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 06:37 PM
01-18-2008 06:37 PM
Re: NIS user problem
Installing PHNE_36168 solved the problem
Leonid.