The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
The Small Fonts Package 0.1 (Default branch) iBot Software Releases - RSS News 0 11-04-2008 11:00 AM
Small Footprint CIM Broker 1.3.2 (Default branch) iBot Software Releases - RSS News 0 10-08-2008 04:30 AM
Damn Small Linux 4.4 (Default branch) iBot Software Releases - RSS News 0 06-11-2008 01:10 PM
Small Footprint CIM Broker 1.3.1 (Default branch) iBot Software Releases - RSS News 0 05-09-2008 07:20 PM
Small Footprint CIM Broker 1.2.5 (Default branch) iBot Software Releases - RSS News 0 01-08-2008 06:20 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-24-2009
KmJohnson KmJohnson is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 7
small ? on /etc/default/security edit?

Hi all,
Has anyone ever been burned by editing /etc/default/security with vi? or should this only be edited inside of SAM or some such tool?

I want to turn on /etc/nologin as a tool to lock out all users but keep my system in multi mode for DB maintenance. TIA -KJ

PS I have been burned editing some AIX txt files that should only be modified by smitty…
  #2 (permalink)  
Old 06-24-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
/etc/default/security should ONLY be edited with vi or by SAM...

AIX has plenty of stanza regulated and data type filesthat are very triky... but try to some true data files in HP-UX with vi the results would be the same...
There is one ascii file you have to be carefull: /etc/syslog.conf
  #3 (permalink)  
Old 06-25-2009
KmJohnson KmJohnson is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 7
I found my answer...
I am not sure if this is bad "form" to cross post to a second forum, but HP has it posted:
Preventing Users from Logging In
"Preventing Users from Logging In"

You can also use the ch_rc command to modify the NOLOGIN variable (see ch_rc(1M)).
http://docs.hp.com/img/s.gif#
/usr/sbin/ch_rc -a -p NOLOGIN=1 /etc/default/security

#
/usr/sbin/ch_rc -a -p NOLOGIN=0 /etc/default/security

Sorry if this is not cool in the groups eyes... -KJ

Last edited by KmJohnson; 06-26-2009 at 10:48 AM..
  #4 (permalink)  
Old 06-26-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
Well in fact you had 2 questions.. you had the answer to the one in title, maybe we all believed you knew what you wanted to add/modify but was unsure if to be done with vi or a special tool as often the case in AIX...
We like to see the source if not personal doc ( being honest is most important ), and so there is no bad "form" as long as the link you provide can be seen by all ( public - no need of account/passwd) but the proper way...

Thanks for your contribution

All the best
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0