LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-05-2006, 08:44 AM   #1
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Rep: Reputation: 15
ubuntu can't login as root


hi,

how come you can't login as root on ubuntu?
also su - doesn't work.

grtz
 
Old 04-05-2006, 08:55 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Ubuntu uses sudo instead of a normal root account. You can create a password for root doing "sudo password root" as a normal user (the one who logged in first). If you don't wan't to use sudo, remove the main user from the admin group or run "visudo" and disable all permissions for the admin group to run root privileges.

Last edited by reddazz; 06-05-2006 at 01:53 PM.
 
Old 04-05-2006, 11:08 AM   #3
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok sudo passwd root is what i needed.
now i can su - as i am used in debian

grtz
 
Old 06-05-2006, 12:29 PM   #4
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
what about starting X aplications as root?

Hi,

you log-in as normal user, you open a terminal and
you become root, now can you launch X application?

If you digit: "xterm" does it start or you see some
X-errors about priviledges?

In theory if you digit (as root): "xhost +" you'd be
able to run program in X but it doesn't work on my
linuxbox.

Help me please.

deadlinx
 
Old 06-05-2006, 03:02 PM   #5
angustia
Member
 
Registered: Apr 2003
Location: chile
Posts: 58

Rep: Reputation: 15
what's wrong with sudo?
if you want an admin console run "sudo -s"

Last edited by angustia; 12-30-2006 at 07:58 AM.
 
Old 06-05-2006, 04:56 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by angustia
what's wrong with sudo?
if you wan't a admin console run "sudo -s"
Some (like myself) do not like Ubuntu's implementation of sudo and prefer using the proper root account for sysadmin.
 
Old 06-05-2006, 07:14 PM   #7
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Quote:
Some (like myself) do not like Ubuntu's implementation of sudo and prefer using the proper root account for sysadmin.
But why? - You can do anything by adding "sudo" before that command?! - I mean, surely you can switch the user (and desktop), change some settings, and switch back. - Nevertheless, what's wrong with "sudo'ing" for some command?
 
Old 06-05-2006, 08:30 PM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by robbbert
But why? - You can do anything by adding "sudo" before that command?! - I mean, surely you can switch the user (and desktop), change some settings, and switch back. - Nevertheless, what's wrong with "sudo'ing" for some command?
I will speak for myself and not others. Firstly I hate typing sudo in front of every command I want to run. After a while, it becomes tedious especially when I need to run many commands. Also for security reasons I prefer non root users including my normal user login not to have any root privileges.
 
Old 06-06-2006, 06:14 AM   #9
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
the reason

Hi,

I use a root account on Ubuntu Dapper.
The problem is, as I've written that if I
log-in as user and then I use a terminal
as root for starting for example oowriter
it doesn't work at all.

deadlinx
 
Old 06-06-2006, 08:30 AM   #10
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Wow -- another reason to hate Ubuntu. I doubt I'll ever be using this distro in the near future.
 
Old 06-06-2006, 08:37 AM   #11
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
Quote:
Originally Posted by Harlin
Wow -- another reason to hate Ubuntu. I doubt I'll ever be using this distro in the near future.
Thanks for sharing. It certainly doesn't make sense for you to use a distro you hate.
 
Old 06-06-2006, 11:25 AM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by deadlinx
Hi,

I use a root account on Ubuntu Dapper.
The problem is, as I've written that if I
log-in as user and then I use a terminal
as root for starting for example oowriter
it doesn't work at all.

deadlinx
Why would you need to run OOo as root?
 
Old 06-06-2006, 12:51 PM   #13
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Quote:
Originally Posted by meng
Thanks for sharing. It certainly doesn't make sense for you to use a distro you hate.
No worries there. I'm not a big fan of Mark Shuttleworth and I do indeed hate the distro.

Harlin
 
Old 06-06-2006, 01:38 PM   #14
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Thanks reddazz.
Quote:
Also for security reasons I prefer non root users including my normal user login not to have any root privileges.
In a business environment, I would understand that. But I'm just happy to install (lots of) software and testing some configurations etc. on my private PC. In my situation sudo comes real handy!
Quote:
The last thing the world needs is another flamewar.
That's mean. I'd be in the mood for a little bait.
Anyways, there'd been a time for Stallmans and Thorvalds but now the Shuttleworthes rule da world!
 
Old 06-06-2006, 03:19 PM   #15
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by robbbert
Thanks reddazz.

In a business environment, I would understand that. But I'm just happy to install (lots of) software and testing some configurations etc. on my private PC. In my situation sudo comes real handy!
Security should be a priority even in a non business environment. Most of my machines are for personal use and tinkering, but I still prefer a proper root account instead if sudo. I also take security issues seriously because my systems are connected to the net 247.

Sudo is indeed very handy and I suspect that, thats the reason why Ubuntu decided to use it and "disable" the root account. This obviously makes it easy for people migrating from OSes such as windows where most people are used to running as admin. The problem that I see with Ubuntu is that the root account is actually not disabled. Its there but it just doesn't have a password. If someone managed to access your normal user account and password, they could easily enable the full root account and have total control over your system. Obviously this is a worst case scenario and may not happen to most people.

Last edited by reddazz; 06-06-2006 at 03:20 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 07:17 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
root login problem in ubuntu 5.10 Pr_009 Ubuntu 16 02-25-2006 07:39 PM
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


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

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