LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-01-2007, 08:17 PM   #1
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Rep: Reputation: 15
Adding root privaliges to user accounts or auto login as root


Hello, I am tryig to find out how to auto login as a root user or to give root privaliges to a user account.

All I can find is people saying it is a bad idea (which I agree with but I am building a live os so damage cannot be done!!)

Can anybody let me know how it is done

The system I am running is a derivative of Mandrake and running KDE!

Regards

Jym
 
Old 01-01-2007, 08:25 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I've played with Knoppix, and they seem to have just turned off the passwords. A user still has to type "su", of course.
 
Old 01-01-2007, 08:43 PM   #3
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
Hi so you are saying I should just change the user root password to nothing

Jym
 
Old 01-01-2007, 08:44 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
If you need a system for allocating various root tasks to ordinary users, solutions are readily available. Check out the sudo and super programs, which are included in most Linux distributions.

running as root is bad because?... - LinuxQuestions.org
http://www.linuxquestions.org/questi...d.php?t=240613
 
Old 01-01-2007, 08:47 PM   #5
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
I agree that running as root is bad when not sure what your doing. But for a livecd to run as root is ok as you just need to restart and all settings are back to norm
 
Old 01-01-2007, 11:21 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
"Hi so you are saying I should just change the user root password to nothing"

It does kind of defeat the purpose of a livecd if the user has to be bothered with a password, doesn't it?
 
Old 01-02-2007, 06:28 AM   #7
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
Yea, a live cd should just auto login and have no passwords, I'm just trying to find out how to auto login as root as this distro is designed for restoring lost partitions and files on your hdd etc... so most of the apps on it require root privilages.
 
Old 01-02-2007, 10:33 AM   #8
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
Just an update... I cant exactally tell you what I have done because I have tryed soo many things, but my system is now auto logging in as root, wont be long now and the first beta release will be fully compiled.

Cheers for your help
 
Old 01-03-2007, 09:37 AM   #9
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Well, Val-Ent, I'm sure that we will be hearing from you again soon, in a very different context.

You've just taken all your system's clothes off, you know. And laid bare every file on it. Just like the good ol' days of MS-DOS?

And you will regret it, soon enough.

You apparently accomplished what you set out to do, but you will surely rue the day you did it.
 
Old 01-04-2007, 01:57 AM   #10
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
dont worry i know what i am doing well enough to not to mess up the system... and even if i do i have got restore points all the way backed up in an iso folder on my desktop - I've spent long enough working on the Cisco IOS in root mode and never had to restore... but cisco network associates are trained to know that

Besides the point what good is a live cd that needs a password to install it? It isn't any good is it?
 
Old 01-04-2007, 04:51 AM   #11
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
Hi there it's not YOU who will be messing up the system but if this machine is connected to the Internet in anyway whatsoever you'll just be inviting people to use this for all sorts of dubious pratices.

It's not only YOUR machine that will be hosed up --If someone can remotely logon as Root to any machine anywhere on the Net on the entire planet almost anything is possible -- and if anything criminal takes place the IP address will be traced back to your machine and you will be held responsible even if you were nowhere near your machine at the time.

Root should only be used in very special circumstances and never ever allow a remote ROOT login (especially passwordless) from the Net.

If you want to access your machine remotely use a normal logon and use commands like su or sudo to perform root level tasks.


If you just want to tinker well it's not a good practice but it's Ok to learn but DON'T be on the net while you do this.

Cheers

-K

Last edited by 1kyle; 01-04-2007 at 04:54 AM.
 
Old 01-04-2007, 05:59 AM   #12
Val-Ent
Member
 
Registered: Dec 2006
Location: Kent England
Distribution: Currently working on my own modded distro based on Mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
There is no access to remote login, and I am not just tinkering...

Why can't people stick to answerign a question instead of telling me why I dont want to do what I DO want to do (with good reason)
 
Old 03-02-2010, 12:18 PM   #13
kenb
LQ Newbie
 
Registered: Oct 2002
Location: Lexington, SC
Distribution: Fedora, Red Hat, SuSe, Slax, Ubuntu
Posts: 5

Rep: Reputation: 0
Solution:

SOLUTION:

add this line:
su - -c "/bin/bash startx" root

to /etc/rc.d/after.local

Then change your default run level to 3 in /etc/inittab

done.
 
Old 03-02-2010, 12:34 PM   #14
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
OK, so it's a live cd. Does that stop some malicious code (or a malicious attacker) mounting your disk drives and shredding everything on there? I'd imagine not.
 
Old 03-02-2010, 02:16 PM   #15
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
kenb,

This thread is THREE years old. Please do not resurrect dead threads.

And you have FIVE posts to LQ in EIGHT years ?

And the OP, Val-Ent hasn't posted here since 10/1/2007 !

What are you trying to achieve here, apart from offering bad advice ?

Please let sleeping threads lie in peace.
 
  


Reply


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
Root and all user accounts disabled mht17 Linux - Newbie 3 05-10-2011 06:23 PM
auto login as root (or other user) in console mode Peter_Peck Linux - General 4 05-01-2009 02:05 AM
can i view user accounts with root? guggenheim Linux - General 2 03-17-2004 05:35 PM
programs won't run on user (non-root) accounts....? once here Slackware 16 12-02-2003 08:44 AM
I can not login to any local users accounts, except root. jbirtwell Linux - General 7 08-25-2003 03:33 PM


All times are GMT -5. The time now is 11:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration