Unix Technical Forum

Re: How To Lock a NIS Account

This is a discussion on Re: How To Lock a NIS Account within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi, vi /etc/nis/shadow in column 2 (separatos is replace the hashed password with "*LK*" distribute the nis-map, ready. look ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:22 AM
Harald
 
Posts: n/a
Default Re: How To Lock a NIS Account

Hi,

vi /etc/nis/shadow
in column 2 (separatos is replace the hashed password with "*LK*"
distribute the nis-map, ready.

look into /etc/nsswitch.conf at line with passwd, is nis the first parameter
or local ?

bye,
harry




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:22 AM
Big Chuck
 
Posts: n/a
Default Re: How To Lock a NIS Account

Harald wrote:

> Hi,
>
> vi /etc/nis/shadow
> in column 2 (separatos is replace the hashed password with "*LK*"
> distribute the nis-map, ready.
>
> look into /etc/nsswitch.conf at line with passwd, is nis the first parameter
> or local ?
>
> bye,
> harry
>
>
>
>


I always have local first and the nis:

Here is my NIS config:
passwd: files nis
group: files nis
hosts: files dns nis
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
netgroup: files nis
automount: files
aliases: files nis
services: files
sendmailvars: files
printers: user files
auth_attr: files
prof_attr: files
project: files


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:23 AM
Pyro
 
Posts: n/a
Default Re: How To Lock a NIS Account

"Harald" <harald.kaspari@it-kaspari.de> wrote in message news:<bhfsqb$b3m$05$1@news.t-online.com>...
> Hi,
>
> vi /etc/nis/shadow
> in column 2 (separatos is replace the hashed password with "*LK*"
> distribute the nis-map, ready.
>
> look into /etc/nsswitch.conf at line with passwd, is nis the first parameter
> or local ?
>
> bye,
> harry


I think just put a "*" before the hash string is better than replace
them by something else. You can "unlock" this account by delete the
"*" latter.

Pyro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com