- 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
Discussions
Discussions
Forums
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
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