LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2010, 08:03 AM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720

Maybe Ubuntu does not have the "POSIX Programmers Manual" in it?
 
Old 02-25-2010, 08:11 AM   #17
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Or maybe Ubuntu just decided to do something a bit different.....they need to maintain their tradition of annoying the traditionalists (eg no root user)
 
Old 02-25-2010, 08:23 AM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
And I am still puzzled about how a Linux system can work without a root user. Who do all the system files belong to?
 
Old 02-25-2010, 11:51 AM   #19
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
For what it's worth (on Slackware 13.0):
Code:
c@CW8:~$ help alias
alias: alias [-p] [name[=value] ... ]
     `alias' with no arguments or with the -p option prints the list
    of aliases in the form alias NAME=VALUE on standard output.
    Otherwise, an alias is defined for each NAME whose VALUE is given.
    A trailing space in VALUE causes the next word to be checked for
    alias substitution when the alias is expanded.  Alias returns
    true unless a NAME is given for which no alias has been defined.
c@CW8:~$ apropos alias | grep bash
alias []             (1)  - bash built-in commands, see bash(1)
unalias []           (1)  - bash built-in commands, see bash(1)
c@CW8:~$ man alias
No manual entry for alias
c@CW8:~$ man unalias
No manual entry for unalias
 
Old 02-25-2010, 01:22 PM   #20
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by MTK358 View Post
And I am still puzzled about how a Linux system can work without a root user. Who do all the system files belong to?
Hmmm--never looked. My guess is they are owned by root, but the access is controlled thru sudo.

Note that *buntu and its progeny do have a root account---it is simply disabled by default.
 
Old 02-25-2010, 01:41 PM   #21
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
What do you mean "disabled"?

Does it mean that it does not let you log in as root from a login prompt?
 
Old 02-25-2010, 01:58 PM   #22
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Correct. You first have to enable the account by issuing "sudo passwd root".
 
Old 02-25-2010, 03:47 PM   #23
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
What's the point of disabling it? Seems like that would just confuse users later on...
 
Old 02-25-2010, 04:18 PM   #24
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You would have to ask the Ubuntu folks this question---I tried once, but the answer did not make sense.
 
Old 02-25-2010, 04:30 PM   #25
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
the only thing i can think of is to minimize the possibility of a remote root brute force attack thru ssh ?
 
Old 02-25-2010, 04:33 PM   #26
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
If you use sudo in Ubuntu, does it ask for your password?

(I don't know because I have only tried ubuntu as a Live CD)
 
Old 02-25-2010, 06:04 PM   #27
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Original Poster
Rep: Reputation: 146Reputation: 146
Yep. You can do "sudo su" to become root. To note, like some other non-ubuntu distros, you have to make a super user password and a user one. In Ubuntu, you only have one.
Here's an excerpt form the sudoers file:

Quote:
# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
When you try to become root via "su" you get an authentication failure. You can't login as root either.

(I leave nopasswd commented for protection, as is the defualt, so you do need a passwd unless you change it)

@ pixellany I love Ubuntu but I totally agree with you. Why make things harder?

Last edited by lupusarcanus; 02-25-2010 at 06:05 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
how to create a send to shortcut nkd Linux - Desktop 2 10-24-2008 04:03 AM
How to create shortcut in Applications sandy1234sa Linux - Software 1 03-04-2008 04:17 AM
How to create a shortcut? gmoney Linux - Software 3 10-08-2003 08:51 PM
create a shortcut/alias allelopath Linux - Software 6 04-01-2003 10:45 AM
How to create shortcut in Linux ? futurist Linux - General 2 03-21-2003 02:20 AM


All times are GMT -5. The time now is 12:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration