- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restricting normal user logins
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
Forums
Discussions
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
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
07-02-2002 04:38 AM
07-02-2002 04:38 AM
restricting normal user logins
Please let me know how can i restritcy any normal user login in HPUX,As i am going to do some admin work on the system and i do not want any user to login except root.It is same like /etc/noilogin file on Sun Solaris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:40 AM
07-02-2002 04:40 AM
Re: restricting normal user logins
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd686663ce855d511abcd0090277a778c,00.html
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:41 AM
07-02-2002 04:41 AM
Re: restricting normal user logins
you can simply comment out all user entries in /etc/passwd by putting a # in front of the line. This would do it for you.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:42 AM
07-02-2002 04:42 AM
Re: restricting normal user logins
1. The best is to go to boot the system in single user mode and do the admin work.
2. init s ( this is same as the single user mode but here all the filesystems are also mounted )
I dont think that there is such a file or similar file called /etc/noilogin in HPUX.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:43 AM
07-02-2002 04:43 AM
Re: restricting normal user logins
I am not using local /etc/passwd , my machine is NIS client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:43 AM
07-02-2002 04:43 AM
Re: restricting normal user logins
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x038fe8644a22d411ade70090279cd0f9,00.html
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:48 AM
07-02-2002 04:48 AM
Re: restricting normal user logins
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x406a1cc6003bd6118fff0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x038fe8644a22d411ade70090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5e730b0717d1d5118ff40090279cd0f9,00.html
Check out Patrick Walleck's comment in the last thread.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:58 AM
07-02-2002 04:58 AM
Re: restricting normal user logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:01 AM
07-02-2002 05:01 AM
Re: restricting normal user logins
I used a script that would only allow certain people access to the shell, ie developers not normal users.
When you want to restrict logins all you do is rename the original script and have a script that displays a message and immediately exits.
That way users get a message and don't start ringing you up when you are busy saying I can't get in.
HTH
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:52 AM
07-02-2002 05:52 AM
Re: restricting normal user logins
Try this link. It may work, but you need the latest login patch on the system for this,
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058669367
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 06:08 AM
07-02-2002 06:08 AM
Re: restricting normal user logins
There is another way too
in /etc/profile jsut add the following lines
loginid=`who am i | awk '{print $1}'`
echo $loginid
if [ $loginid ! = root ]
then
exit
fi
this will throw otu anyone who is not root.
Manoj Srivastava