UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know this sounds like a stupid idea, but because of the situation that this computer is used, it can't have a user password. How do I get rid of it?
-Cliff
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Yes this is a stupid idea.
You should be able to set it to login automatically. You would be better off to just boot to it, log in and leave the bugger run from then on.
Doing away with the password is going, sooner or later, to bring the OS to its knees as someone makes a mistake that the password would stop.
This is Linux, you can remove the kernel or any system file, if they are not password protected something like that will happen in time.
If others are using this box you would be better off to have a second user with very limited permissions and log in as that and then let them at it with out too much worry. You could with that second user leave the user name and password with the box. As long as others do not have "sudo" permissions (not members of the sudoers group) you should not have problems and the box could be shut down without you having to be there to reboot it. That second user could be auto logged in even.
Leave the main user the only one with admin permissions with a different and secure password.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Well, you can't -- at least not with the passwd utility and /etc/passwd.
What you can do, however, is have a remote machine connect with ssh where, on your machine, you have hit the return key for the prompts for a passphrase (using ssh-keygen) then copying the ~/.ssh/id_rsa.pub file to the remote machine's ~/.ssh/authorized_keys file. While you're at it, you want to copy the remote machine's id_rsa.pub file to "this" machine's ~/.ssh/authorized_keys file (so, yeah, you have to run ssh-keygen on that box too).
That will allow the remote machine to simply
Code:
ssh hostname
and the user will be connected without a password prompt (and, as a bonus, it's a secure connection).
And, if for some reason you can't use ssh from the remote box... well, you're kinda stuck.
Well, I have it set to log in automatically, but I want to get rid of the password prompt to do something. For example a "Authentication Required" message.
I know this sounds like a stupid idea, but because of the situation that this computer is used, it can't have a user password. How do I get rid of it?
-Cliff
Can't you just set the password to something easy that each user can remember? For example, "1234" or "user" or "whatever".
Note that using weak passwords is a security risk in itself; but it is probably better than no password at all.
I've tried doing it through the Ubuntu user manager, but that's not working. I'm really pretty new to using the linux terminal, so I'm not really sure on what to do with your previous post, could you explain step-by-step? Thank you.
-Cliff
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.