Operating System - HP-UX
1833779 Members
2114 Online
110063 Solutions
New Discussion

[Help!] I don't want NIS+ user to use "niscat passwd.org_dir" to look at......

 
Neo Zhu
Occasional Contributor

[Help!] I don't want NIS+ user to use "niscat passwd.org_dir" to look at......

NIS+ Server IP: 192.168.80.202
NIS+ Client IP: 192.168.80.38

Now:at NIS+ Server,I have 2 users, one is user1 and the other is user2,
Purpose I wanna implement:After ssh the NIS+ client, I don't want user1 or user2 to use the command "niscat passwd.org_dir" to look at any conments of file "passwd.org_dir". Or user1 can't look at the encrypted information of passwd.org_dir.

Can anyone tell me how to implement that?

[code]ssh user1@192.168.80.38[/code]
[code]niscat passwd.org_dir[/code]

[code]
root:*NP*:0:0::/root:/usr/bin/bash:*NP*
............................................
user1:PUHF95SxdLvFo:60005:60005:users:/export/home/user1:/bin/bash:
user2:s0gTFTxXgp7fA:60006:60006:users:/export/hoome/user2:/bin/bash:
[/code]
use keylogout,"niscat passwd.org_dir":
[code]
user1:*NP*:60005:60005:users:/export/home/user1:/bin/bash:*NP*
user2:*NP*:60006:60006:users:/export/hoome/user2:/bin/bash:*NP*
[/code]

I wanna implement this:type the "niscat passwd.org_dir" after using the command "keylogin":
[code]
user1:PUHF95SxdLvFo:60005:60005:users:/export/home/user1:/bin/bash:
user2:*NP*:60006:60006:users:/export/hoome/user2:/bin/bash:*NP*
[/code]
Or
[code]
user1:*NP*:60005:60005:users:/export/home/user1:/bin/bash:
user2:*NP*:60006:60006:users:/export/hoome/user2:/bin/bash:*NP*
[/code]

I do removed the relative rights, but it still doesn't work.

[code]niscat -o passwd.org_dir[/code]
[code]Object Name : "passwd"
Directory : "org_dir.ds.org."
Owner : "dsbj-tm10.ds.org."
Group : "admin.ds.org."
Access Rights : ----------------
Time to Live : 12:0:0
Creation Time : Wed Jul 30 09:38:44 2008
Mod. Time : Wed Jul 30 17:10:28 2008
Object Type : TABLE
Table Type : passwd_tbl
Number of Columns : 8
Character Separator : :
Search Path :
Columns :
[0] Name : name
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : r---r---r---r---
[1] Name : passwd
Attributes : (TEXTUAL DATA)
Access Rights : ----------------
[2] Name : uid
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : r---r---r---r---
[3] Name : gid
Attributes : (TEXTUAL DATA)
Access Rights : r---r---r---r---
[4] Name : gcos
Attributes : (TEXTUAL DATA)
Access Rights : r---rmcdrmcdr---
[5] Name : home
Attributes : (TEXTUAL DATA)
Access Rights : r---r---rmcdr---
[6] Name : shell
Attributes : (TEXTUAL DATA)
Access Rights : r---rmcdrmcdr---
[7] Name : shadow
Attributes : (TEXTUAL DATA)
Access Rights : ----------------
[/code]

Can anyone figure it out? Thanks!