HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: /etc/shadow
Operating System - Linux
1832620
Members
2806
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-21-2005 04:57 AM
11-21-2005 04:57 AM
/etc/shadow
Hello, currently in my /etc/shadow, in the 2nd password field, I have a password :......:. I would like to replace that filed with just a *, ie, :*:.
How would I do that.
I need to put a star so it will force the user to use kebros.
Thanks and points will be assigned.
How would I do that.
I need to put a star so it will force the user to use kebros.
Thanks and points will be assigned.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 05:03 AM
11-21-2005 05:03 AM
Re: /etc/shadow
Shalom Sanjit,
very carefully:
send s/....../*/g /etc/passwd > /tmp/passwd.new
Edit it with vi, make sure its okay.
Take out root and admin users you don't want affected.
Shut down authentication.
You may need to put quotes around the asterisck.
SEP
very carefully:
send s/....../*/g /etc/passwd > /tmp/passwd.new
Edit it with vi, make sure its okay.
Take out root and admin users you don't want affected.
Shut down authentication.
You may need to put quotes around the asterisck.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
11-21-2005 05:16 AM
11-21-2005 05:16 AM
Re: /etc/shadow
awk -F ":" -v OFS=":" '$2="*" { print $0 }' /etc/shadow > /etc/shadow.locked
Extrange question, and dangerous, you will be disabling root account.
User usermod -L username to lock an user account.
Extrange question, and dangerous, you will be disabling root account.
User usermod -L username to lock an user account.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP