- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NO Password
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
05-06-2009 05:36 AM
05-06-2009 05:36 AM
NO Password
Could you tell me the command to find no password users in server,
Thanks
Nanda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 05:45 AM
05-06-2009 05:45 AM
Re: NO Password
There is no command for that.
You can edit /etc/passwd and null out the password field.
Of course this will cause you problems on your next security audit.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 05:49 AM
05-06-2009 05:49 AM
Re: NO Password
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1108594
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1103234
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 05:57 AM
05-06-2009 05:57 AM
Re: NO Password
username NP
Then that means the user does not have a password set.
This could be easily scripted as well:
for USER in $(awk -F : '{print $1}' /etc/passwd)
do
passwd -s ${USER}
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 06:13 AM
05-06-2009 06:13 AM
Re: NO Password
on untrusted system you can use this command:
awk -F: '{if($2 ~ /\*/ ){print $1 " has curently no password"}}' /etc/passwd
on trusted system, use the /etc/shadow file.
regars,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 06:15 AM
05-06-2009 06:15 AM
Re: NO Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 06:36 AM
05-06-2009 06:36 AM
Re: NO Password
# passwd -s
root PS
# passwd -s *
Invalid login name.
# passwd -s \*
Invalid login name.
duh!
Regards,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 07:35 AM
05-06-2009 07:35 AM
Re: NO Password
logins -p will give you the list of users, that doesn't have password.
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 07:53 AM
05-06-2009 07:53 AM
Re: NO Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 11:31 AM
05-06-2009 11:31 AM
Re: NO Password
In my defense, I *said* I wasn't able to check it....after looking at the online "man" page, what I should have said was:
as root on non-trusted system, run:
passwd -s -a
oh, well....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2009 02:08 AM
05-07-2009 02:08 AM
Re: NO Password
I said duh! but it was not pejorative.
Please don't think it had a critical meaning.
Best regards,
Cedrick Gaillard.