Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-26-2001, 10:09 PM   #1
LQ Newbie
Registered: Feb 2001
Posts: 8

Rep: Reputation: 0

After installing Red Hat I want to allow my Prof to access to our server without a password, or rather that's the way he wants it. Ran into some great difficulty in trying to set up a normal user account without a password. Is there any other way to set up a user account with root permissions and no password??

Old 02-26-2001, 11:17 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Thumbs down


HUGE security risk, but here it goes...

Edit the password file and copy and paste the user root. On the new line rename the root user to whatever.

Edit the shadow file. If your system supports shadow passwords. Again copy the root line and paste it. Rename the root user as you did before and after the first colon you see a bunch of junk, that is the encryped password. Delete the entire field so the line looks like this:

whatever::11252:0::::: # the numbers may be different

This removes the password for the whatever user.

Prepare to get hacked...

Setting up .rhosts and having professor no password rsh in is a better idea. At least a tiny bit more secure.


Old 02-27-2001, 05:49 PM   #3
LQ Newbie
Registered: Feb 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Telnet without password

I got it to work, but my professor said he should be able to Telnet into our machine. It won't let him because it requires a password. Any idea if it is possible for him to Telnet into our machine?
Old 02-27-2001, 07:40 PM   #4
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,438

Rep: Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990Reputation: 3990
AHH.... PLEASE do not do this. Telnet is bad enough. Telnet without is password is crazy. Telnet without a password for a user that has root privs?? At a BARE minimum set up ssh with a key-pair. This should make everyone happy. He will not have to type a password and you will have a chance to keep that Linux box long enough to learn
Old 02-28-2001, 01:07 PM   #5
LQ Newbie
Registered: Jan 2001
Posts: 13

Rep: Reputation: 0
what i want to know is why cant he type in a password? its probably next top the easiest thing in the world.
Old 02-28-2001, 01:31 PM   #6
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30

This professor is either an idiot or he is testing you. Even then.. he sounds like an idiot.
Old 03-02-2001, 09:51 AM   #7
LQ Newbie
Registered: Mar 2001
Posts: 2

Rep: Reputation: 0
easy way out

if this is for an assignment... you could just log in as root and type rm -Rf *

then just tell your RETART professor that his server was hacked and that you should recieve an A++ because you succesfully removed the first line of defense. Then cite the lack of functionality as evidence.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
HOW-TO? Create User, Set Password with script longtex SUSE / openSUSE 13 10-02-2005 02:35 PM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
Is it possible to create a user with no password paul.nel Linux - General 11 02-28-2005 04:54 PM
create new user - password encryption shadow_mas Linux - Newbie 3 03-28-2004 04:14 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:25 PM.

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