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
03-11-2003 06:37 PM
03-11-2003 06:37 PM
I have 3 UNIX Servers.
I have all the users in my SERVER1 (NIS Server).
I wanted to prevent certain users to login in my SERVER2.
What's the best thing to do?
regards...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2003 07:55 PM
03-11-2003 07:55 PM
Re: NIS
==> Edit SERVER2 /etc/passwd and insert these above your last line that typically looks like this ..
+::0:0:::
or
+::-2:60001:::
The lines you should put above it are ..
-skchan::0:0:::
-jim::0:0:::
-robbie::0:0:::
I think that should do it and you would want to test it thoroughly afterwards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2003 09:01 PM
03-11-2003 09:01 PM
Re: NIS
Nothings happened. Still the user (i.e. "rickyn") I put on the SERVER2://etc/passwd gets thru.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2003 09:08 PM
03-11-2003 09:08 PM
Re: NIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2003 09:23 PM
03-11-2003 09:23 PM
Re: NIS
See attached file...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2003 09:40 PM
03-11-2003 09:40 PM
Solutiontftp:*:510:1:Trivial FTP user:/usr/tftpdir:false
and paste above ..
-rickyn::0:0:::
Basically the ..
+::-2:-2:::
should be last. So the last 2 lines in the file should be ..
-rickyn::0:0:::
+::-2:-2:::
As for the /etc/nsswitch.conf file, change these so that the + and - syntax can be used by the password file.
passwd: compat
group: compat
Now try the login again ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2003 12:26 AM
03-12-2003 12:26 AM
Re: NIS
Its working now. Many thanks...
If its not to much to you, could you provide brief explanation on the solution you have provided.
Thanks in advance and best regards...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2003 12:45 AM
03-12-2003 12:45 AM
Re: NIS
+::-2:60001:::
which in my opinion is more secure. But it's still ok to have ..
+::-2:-2:::
No big deal. So remember the order of that entry is important. Let say for some reason you want to create a local temporary user account (not NIS), you can edit the /etc/passwd file and put the appropriate entry above the escape sequence entry and that password entry would only apply to that particular machine. Bottomline .. escape sequence MUST be at the last line. The "-" key is used to disallow login of a particular NIS account, as simple as that.
Finally the /etc/nsswitch.conf file. Your original entry ..
passwd: files nis
group: files nis
basically tell the system to first look in the local /etc/passwd and /etc/group for an entry. If not found then fall-back and query NIS map. The rule is if you want the "+" and "-" to behave well you got to put "compat" instead.
Hope that explains it .. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2003 12:54 AM
03-12-2003 12:54 AM
Re: NIS
Very well said...I got it.
regards...