LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-23-2007, 11:39 AM   #1
Tillus
Member
 
Registered: Dec 2004
Posts: 55

Rep: Reputation: 15
Talking Can't login root and squeeky noice


When I first installed Etch I managed to allow for root to log in at startup. Somehow the system has since changed that back, an now I've searched virtually the whole computer and can't find the screen with the checkbox. If anyone could help with this I would be so greatful, since I love to have a separate root desk.

Also, when playing music in Juk and fiddling with the windows (moving, stuff like that) there is this squeeking noice in speakers. Does someone know how to get rid of it? It's just downright annoying.

I'm on a Compaq Intel PIII
Win + Etch (not single-user)
Sounblaster live! soundcard
256 MB

Thanks
Tillus
 
Old 08-23-2007, 11:51 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
This worked on my Ubuntu box; I was able to get a graphical root log-in. Not sure if it'll work in Debian.

sudo passwd
 
Old 08-23-2007, 12:07 PM   #3
Tillus
Member
 
Registered: Dec 2004
Posts: 55

Original Poster
Rep: Reputation: 15
where did you print that?

I tried the login, but that failed. Also tried terminal, didn't work either.

Last edited by Tillus; 08-23-2007 at 12:12 PM.
 
Old 08-23-2007, 12:17 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Try this: Desktop (menu, top) -> Administration -> Login Window (enter root pw) then select the Security tab. Check the "Allow local administration login"
 
Old 08-23-2007, 01:19 PM   #5
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
From what I understand of the question he wants to log on to an X session as root.

We can try to make him understand the dangers and explain that it is better to use su and sudo, but do you think he'll listen?
 
Old 08-23-2007, 05:44 PM   #6
Tillus
Member
 
Registered: Dec 2004
Posts: 55

Original Poster
Rep: Reputation: 15
Probably not, but don't let that stop you from trying. Besides, I don't think it's possible from KDE anyway. The only settings dialog for the login window I can find is for gdm.

Also, if anyone knows how to get rid of that shreeking noise, especially when streaming.

Last edited by Tillus; 08-23-2007 at 05:52 PM.
 
Old 08-23-2007, 06:03 PM   #7
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
It *is* possible in KDE, but as I have said above I very strongly urge you to reconsider. Why do you think windows users are hit so often and so hard?

It is because on windows, by default, you run as administrator, giving *every* program full access to everything. This is basically what you do when you run your X-session as root. Every glitch in the program, every exploit in the program, buffer overflow etc means the misbehaving piece of software can do *anything* with your system.

Also, running as a user protects us from ourselves. And please don't give me the excuse that you never mess up. Ok, wait, let's for a moment assume you never mess up ok... now you are typing the command rf -r ./ for instance, but the dot on the keyboard is sticky and didn't register your keypress. you press enter and you have just told your OS to remove EVERYTHING from EVERY partition and device mounted. Pretty scary huh?

I am a system administrator and sofware developer. I have much experience with Linux and I tell you: I run my X-Session as a user, ALWAYS. when I need to do something that requires root privileges, either there is the pam module that pops up and asks me for the root password, or on the console I use su, not sudo because su always requires you to enter the root password.

I strongly believe that it is your duty as Linux user to run as a user. If we all run as root then I can pretty much guarantee you that we will be experiencing a very high amount of malware targeted to us.

If you are still not convinced, then I challenge you to give me a valid reason to run your desktop as root.
 
Old 08-23-2007, 06:23 PM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Tillus,

Debian removes the capability of logging in to KDE as root. That is for safety. You can run individual programs as root by choosing "Run..." from the KDE menu and run as a different user.

Command line programs you can run from within a terminal and entering the "su" command.

There is really, really, really no reason to log in to KDE as root, and it is fairly dangerous.

jlinkels
 
Old 08-23-2007, 07:14 PM   #9
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by jlinkels View Post
Tillus,



There is really, really, really no reason to log in to KDE as root, and it is fairly dangerous.

jlinkels
Agreed. You don't need to log-in as root. If you need to administer your system then just invoke su to get a root terminal. For example as a regular user you can edit, save your sources.list.

#nano /etc/apt/sources.list

I admire the way that Debian functions:-)
 
Old 08-23-2007, 08:45 PM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Hitest,

Unfortunately my editing took a long time, and my post was after x_terminator_or_3. His post made mine redundant, but I didn't see that.

About sources.list, no you canNOT edit it as a regular user:
Code:
-rw-r--r-- 1 root root 729 2007-08-06 21:57 /etc/apt/sources.list
You'd have to chmod the file. For a single (personal) machine that is fully acceptable though.

jlinkels
 
Old 08-23-2007, 09:15 PM   #11
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
True, but even then I advocate the use of the su command to invoke an editor with root-access. Yes, even gedit has root-access when invoked from the root-cli So does nano... So: no need to chmod any config files to edit them as a regular user.

@Tillus: as a new Linux user you should familiarize yourself with the way Linux works, 'cause it differs fundamentally from any Win-OS. Read some books and howtos about Linux, either online or on paper.
 
Old 08-23-2007, 09:16 PM   #12
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by jlinkels View Post
Hitest,

Unfortunately my editing took a long time, and my post was after x_terminator_or_3. His post made mine redundant, but I didn't see that.

About sources.list, no you canNOT edit it as a regular user:
Code:
-rw-r--r-- 1 root root 729 2007-08-06 21:57 /etc/apt/sources.list
You'd have to chmod the file. For a single (personal) machine that is fully acceptable though.

jlinkels
You can not invoke a root shell as a regular user and edit the file? I just tried it and it works fine.

Last edited by hitest; 08-23-2007 at 10:29 PM.
 
Old 08-25-2007, 02:02 AM   #13
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Tillus

Because I know you have all your data backed up, and your operating system(s) also, who cares what can happen when logged into X as root when you have no fear. Check post #3 in this thread.
 
Old 08-25-2007, 09:05 AM   #14
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Hehehe, now I read that page the link points to, it reminds me of that other OS. Whenever I need to do something as administrator, I have to log off as current user (writing 400MB of roaming profile), log in as administrator (load 30 MB of profile), do the admin job, log off (write 30 MB profile) and log in as user again (and load 400 MB roaming profile) and check if worked what I just tried. Usually not, and it would not be the first time that I keep switching between user and administrator for an entire morning.

Some people simply choose for convenience

jlinkels
 
Old 08-25-2007, 09:25 AM   #15
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
The problem is not only the problem HE can create in running as root. The most important is that somebody who can take control of a buggy software (kde,gnome,firefox as least) will have _full access_ to his box.
I'm currently able to crash kde and gnome in a few clicks. If it turns out that this is exploitable to execute some code, then this code will run as root and will be able to install, say a rootkit that can remain undetected for months, unless the person has a strong knowledge on this OS.

Security concept #1 is: Run with least priviledge. It's common sense... The higher you jump the more harm you make when you fall..

Quote:
Originally Posted by Tillus
If anyone could help with this I would be so greatful, since I love to have a separate root desk.
If you run your complete WM as root, you don't understand anything about security.
The only case where it's maybe not a problem is with an unconnected machine and nobody plugs anything into it AND you are sure you will never make a mistake (which is false)

But anyway, can you answer this question:

Quote:
Originally Posted by x_terminat_or_3
If you are still not convinced, then I challenge you to give me a valid reason to run your desktop as root.
People here are ready to help you to administer the machine without loggin in as root so ask for a specific reason to run WM as root.

Last edited by nx5000; 08-25-2007 at 09:26 AM.
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
Noice Peter84 Ubuntu 1 05-17-2005 06:59 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM

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

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

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