LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-20-2005, 01:21 PM   #1
neoAThome
Member
 
Registered: Jan 2005
Location: /Milkyway/Solar_Sys/Earth/usa/
Distribution: K-Ubuntu (64-bit) and FC4 which messed up kubuntu also
Posts: 31

Rep: Reputation: 15
How to login under ROOT


i installed 10.1
i gave it a root password and then created a user also. Now the problem is that whenever i login i do not have the root privilages...... so to run the commands that i want ..... i have to come down to init 3 level and then do the commands....

i tried to give myself root privilages by adding myself to the GROUP : root but that didnt help.

Anyone who can help ??
(i am ready to install again)
 
Old 01-20-2005, 01:27 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You should use su to gain root privileges or use sudo - just run man sudo to find out how to do it.
 
Old 01-20-2005, 01:31 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
By default, for security reasons Mandrake does not add enable root login via x. You can use Mandrake Control Center to enable but instead open up a console window and use the su - command. It is the same thing as dropping to level 3 and logging in as root. IMHO it is bad practice to give root privileges to a regular user.
 
Old 01-20-2005, 01:44 PM   #4
eldzis
LQ Newbie
 
Registered: Jan 2005
Location: /latvia/valmiera/
Distribution: Gentoo...
Posts: 14

Rep: Reputation: 0
i ahd the same problem, but as there above was said, never use root witouth reason, su is the best alternative...
 
Old 01-20-2005, 01:59 PM   #5
neoAThome
Member
 
Registered: Jan 2005
Location: /Milkyway/Solar_Sys/Earth/usa/
Distribution: K-Ubuntu (64-bit) and FC4 which messed up kubuntu also
Posts: 31

Original Poster
Rep: Reputation: 15
thx guys
 
Old 01-20-2005, 03:03 PM   #6
neoAThome
Member
 
Registered: Jan 2005
Location: /Milkyway/Solar_Sys/Earth/usa/
Distribution: K-Ubuntu (64-bit) and FC4 which messed up kubuntu also
Posts: 31

Original Poster
Rep: Reputation: 15
one problem.........
when i start the terminal or things like 'configure your computer' it asks for the root password.
when i use su my promp changes from :
xyz@localhost $
to
root@localhost #
but is there some way by which whenever i autologin i am the root
( i do not have any security concerns as i use this laptop at home)

any suggestions ??
 
Old 01-20-2005, 07:49 PM   #7
greenmeanie
Member
 
Registered: Sep 2004
Distribution: FreeBSD5.4
Posts: 82

Rep: Reputation: 15
kde

if your talking about the login screen before you go into KDE there are setting in KDE to make sure ROOT will show up all the time @ login.
 
Old 01-20-2005, 08:03 PM   #8
neoAThome
Member
 
Registered: Jan 2005
Location: /Milkyway/Solar_Sys/Earth/usa/
Distribution: K-Ubuntu (64-bit) and FC4 which messed up kubuntu also
Posts: 31

Original Poster
Rep: Reputation: 15
and how is that....... could you please tell me more about it .... ????
 
Old 01-20-2005, 08:51 PM   #9
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
If I understand you correctly, you're wanting to log in as root and operate your (home, laptop) system as root.

It is too dangerous! I don't think there's a single experienced user here (I don't qualify as all that experienced, after
only two years of basically head-scratching but some successes, but there are real gurus around) who would advocate
operating as root.

At least if you use su in a terminal, or use sudo, it's a reminder of the power you've just TEMPORARILY assumed.
You're less apt to make some drastic mistake.

Linux is not forgiving, and once things are wiped out--they're wiped out.

I would plead with you not to log in as root except in those times, maybe once or twice a year, when it's really
the easiest way to solve some otherwise tricky problem. It's almost NEVER necessary. And it can be fatal.
 
Old 01-20-2005, 10:18 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you want to execute a single kde program as root, you can use the 'kdesu' command to start it.

Another way is to drag the icon from the menu to the task bar, right clicking and selecting configure, and selecting 'execute as user' and entering root. You can have a kwrite icon on the task bar then and when you want to edit a configuration file, just click on the icon and enter the root password.
 
Old 01-21-2005, 12:23 AM   #11
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Let me add to this. The secuity you get from NOT being root is not just from outside attacks. It is from your own fingers. You make a mistake as root and bang! bye bye linux.

Unlike Windows, you don't need to be root to use the computer effectively. You can even install some programs using your home directory. When you need to be root then:

1. Open a terminal and type su. You will be asked for the root password. or
2. Assuming you're using X, press Ctrl-Alt-F1 (0r F2 or F3...) and log in as root there. Press Ctrl-Alt-F7 to get back to X or
3. If there is a program you often run that needs you to be root (for example "Configure your Computer" and you are not prompted for the root password then edit the menu entry by putting

kdesu -c

in front of the command (assuming you're running KDE. No doubt Gnome has something similar.
 
Old 01-22-2005, 05:45 PM   #12
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
[no doubt gnome has something similar]: correct, 'gksu'.
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

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

All times are GMT -5. The time now is 05:59 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