LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-06-2011, 11:42 AM   #1
cnwtx
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Rep: Reputation: Disabled
Need to remove password on 10.10


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
 
Old 09-06-2011, 12:42 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
Old 09-06-2011, 12:54 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.

Hope this helps some.

Last edited by tronayne; 09-06-2011 at 12:57 PM.
 
Old 09-06-2011, 01:05 PM   #4
cnwtx
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-06-2011, 01:55 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Well in that case just log in as root and you can destroy what ever you want.
 
Old 09-06-2011, 02:02 PM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
NB: For empty passwords some PAM modules need the option nullok afair.
 
Old 09-07-2011, 07:57 PM   #7
cnwtx
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
@Reuti, could you explain a little more in depth?

@widget, what do I need to delete to remove the password?
 
Old 09-08-2011, 01:24 AM   #8
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by cnwtx View Post
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.
 
Old 09-08-2011, 04:56 AM   #9
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by cnwtx View Post
@Reuti, could you explain a little more in depth?
Please check man pam_unix2 and man pam_pwcheck for nullok. My experience was, that you need a line like:
Code:
auth	required	pam_unix2.so nullok
for the auth service, despite the fact that the man page states it’s only about changing passwords to an empty one.
 
Old 09-08-2011, 04:43 PM   #10
cnwtx
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Sorry, I'm kinda new to linux, could you do a step-by-step instructions of how to do this?
Thanks, Cliff
 
Old 09-09-2011, 03:44 AM   #11
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
What did you try so far?
 
Old 09-09-2011, 10:07 AM   #12
cnwtx
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove Root password BangorScott Mandriva 27 07-20-2012 04:32 AM
Is there a way to remove password protect from pdf bee505r Linux - Software 5 08-01-2011 01:39 PM
remove the suspend password cuda Fedora 1 12-28-2007 09:15 AM
how to remove password rayan Linux - Newbie 1 03-27-2006 12:36 AM
How to remove IPC$ password from samba tulip4heaven Linux - Networking 1 10-15-2005 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration