- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to set a user without password on Linux ?
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
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
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
тАО04-27-2005 12:46 AM
тАО04-27-2005 12:46 AM
I have a device which is a terminal,wants to login to the Linux automatically. That is, the users who use the device doesn't have to type in any user authentication info. before they can sign in to the Linux server.
( Security issue is not concerned at this moment, however, better solution will be appreciated )
Thanks a lot !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 01:37 AM
тАО04-27-2005 01:37 AM
SolutionModify '/etc/shadow', and remove the encrypted password for the given user, i.e.
genericuser:$1$2PCgTfmF$BbNzJv.sc7iNJ2xB.iHfP.:12407:0:99999:7:::
to:
genericuser::12407:0:99999:7:::
If you ensure the matching /etc/passwd entry has an 'x' in the 2nd field (like all shadow-encrypted passwords), then the account will have 'no' password.
There is no nice neat command to remove a password in this manner. The 'passwd' command will force an unencryptable password (!!) if none is supplied.
WARNING: Manually modifying the passwd and shadow files is dangerous. Ensure you have a backup copy before doing anything, and make sure you can still log in (in another session) as user/root before logging the current session out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 02:43 AM
тАО04-27-2005 02:43 AM
Re: How to set a user without password on Linux ?
simply remove seconds column from the user in /etc/passwd.So the entry will look like the following.
user::500:500::/home/user:/bin/bash
use "authconfig" utility to set/unset shadow passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:44 PM
тАО04-27-2005 04:44 PM
Re: How to set a user without password on Linux ?
ex:
user1:x:19910:19901:/home/user1:/bin/bash
change to
user1::19910:19901:/home/user1:/bin/bash
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 04:48 AM
тАО04-28-2005 04:48 AM
Re: How to set a user without password on Linux ?
-paul.