FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 02-03-2008, 08:15 AM
"Binish A.R"
 
Default root password?

The choice of editor depends on the env variable EDITOR.
Set the env variable to say vi, export EDITOR=vi
and visudo would open the file in vi instead of nano

--- On Sun, 2/3/08, Peter Garrett <peter.garrett@optusnet.com.au> wrote:

By default on Ubuntu, visudo uses the "nano"
editor, which is not exactly what you'd expect



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 08:38 AM
Peter Garrett
 
Default root password?

On Sun, 3 Feb 2008 01:15:06 -0800 (PST)
"Binish A.R" <arbinish@yahoo.com> wrote:

> The choice of editor depends on the env variable EDITOR.
> Set the env variable to say vi, export EDITOR=vi
> and visudo would open the file in vi instead of nano

Actually, in Debian and Ubuntu the editor is set by the alternatives
system. "visudo" will use the alternative set for "editor". You can change
it using the command

sudo update-alternatives --config editor

The EDITOR and VISUAL environment variables are not set by default. You can
confirm this by typing

echo $EDITOR
echo $VISUAL

Having said that, it certainly will also work to do,for example

export EDITOR=vi ; visudo

( or indeed export VISUAL=vi )

By default, if you type "editor" you will get whatever is set by the
alternatives system - normally nano, unless for example you have installed
"mc", in which case you get "mcedit" unless you change it with
update-alternatives. All this depends on the priority set - see

sudo update-alternatives -display editor

Peter
--
"INX Is Not X" Live CD based on Ubuntu 7.04 : http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 08:44 AM
JosephK
 
Default root password?

On 01:15 Sun 03 Feb , Binish A.R wrote:
>
> The choice of editor depends on the env variable EDITOR.
> Set the env variable to say vi, export EDITOR=vi
> and visudo would open the file in vi instead of nano
>

Or use update-alternatives.

--
Regards, Joseph

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 11:18 AM
Karl Larsen
 
Default root password?

Knute Johnson wrote:
> I installed 7.10 onto a USB jump drive and tried to create a new
> user. In the process I did something bad to the sudoers file. I
> can't edit it because I can't sudo. I can't login as root because I
> don't know the password. What's the password for root on the live
> CD?
>
> Thanks,
>
>
>
>
I never found the password. But after loading the live CD I went to
System -> Admin -> Users and Groups and you should see your messed up
user and root. Select each to fix them and on the root make sure you
give it YOUR password. Then you will know.


Karl


--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 11:29 AM
Karl Larsen
 
Default root password?

I just set env variable to say joe, with export EDITOR=joe. I need to
test it :-)

Karl



Binish A.R wrote:
> The choice of editor depends on the env variable EDITOR.
> Set the env variable to say vi, export EDITOR=vi
> and visudo would open the file in vi instead of nano
>
> --- On *Sun, 2/3/08, Peter Garrett /<peter.garrett@optusnet.com.au>/* wrote:
>
>
> By default on Ubuntu, visudo uses the "nano"
> editor, which is not exactly what you'd expect
>
>


--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 12:23 PM
Rosalind Mitchell
 
Default root password?

On Sunday 03 February 2008 09:15:06 Binish A.R wrote:
> <table cellspacing=&aps0&aps cellpadding=&aps0&aps border=&aps0&aps
> ><tr><td style="font: inherit;"><br>The choice of editor depends on the env
> variable EDITOR.<br>Set the env variable to say vi, export EDITOR=vi<br>and
> visudo would open the file in vi instead of nano <br><br>--- On <b>Sun,
> 2/3/08, Peter Garrett <i>&lt;peter.garrett@optusnet.com.au&gt;</i></b>
> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255);
> margin-left: 5px; padding-left: 5px;"><br><pre> By default on Ubuntu,
> visudo uses the "nano"<br>editor, which is not exactly what you&apsd expect
> <br><br></pre></blockquote></td></tr></table>

Can I put out a plea for plain text submissions to this and other groups
please? The above is what I see at this end. Not exactly a model of
lucidity.

<dons flame-proof suit>

Rosie

--
Currently Reading ATKINSON, KATE: One Good Turn
The Book of Enitharmon: http://swanofkennet.livejournal.com

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 12:46 PM
Peter Garrett
 
Default root password?

On Sun, 3 Feb 2008 13:23:29 +0000
Rosalind Mitchell <rcm@swimbarrow.co.uk> wrote:

> On Sunday 03 February 2008 09:15:06 Binish A.R wrote:
> > <table cellspacing=&aps0&aps cellpadding=&aps0&aps border=&aps0&aps

[snipped all the html garbage ]

> Can I put out a plea for plain text submissions to this and other groups
> please? The above is what I see at this end. Not exactly a model of
> lucidity.

I quite agree on all counts... but I'm interested to find out what actually
happens at your end. On your mail I see

User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405)

Does kmail not segregate text/html from text/plain ?

Here on Sylpheed, I see the "Binish A.R" post as two parts, one text/html
and one text/plain... actually both are readable, but I would have thought
that it was possible to tell Kmail to read text/plain by default?

Or is this some kind of magic of which I'm unaware? <grin>

> <dons flame-proof suit>

Not really required in this case ;p Could be handy though - where did you
get yours? Is it GPL ?

Peter
--
"INX Is Not X" Live CD based on Ubuntu 7.04 : http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 02:49 PM
Nils Kassube
 
Default root password?

Peter Garrett wrote:
> I quite agree on all counts... but I'm interested to find out what
> actually happens at your end. On your mail I see
>
> User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405)
>
> Does kmail not segregate text/html from text/plain ?

Well, Kmail shows the HTML garbage as it is because there is no plain text
part for the main message in the original mail. So if Kmail would show
the plain text part, it would be only the mailing list signature. If
there are both HTML and plain text for the main message, it displays the
plain text version of the main message. Anyway, that is a question of
preference settings. Kmail can be set to prefer the HTML display, but
fortunately that isn't mandatory.

> Here on Sylpheed, I see the "Binish A.R" post as two parts, one
> text/html and one text/plain... actually both are readable, but I
> would have thought that it was possible to tell Kmail to read
> text/plain by default?

Does Sylpheed show the HTML part as is or does it show it without the
code? And if it is without the code, is it like plain text or with the
markup?


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 03:02 PM
Pete Clapham
 
Default root password?

The root account is enabled, but it isn't
given a password, so you can't access it directly.* What you have to do
is to sudo passwd root and enter a password.* Since you've zapped your
sudoers file, you probably can't do that.* Personally, I much prefer to
do a su and know I'm a superuser than to depend on sudo for
everything.* But that's my preference; evidently most Ubuntu users have
a different preference.



cheers,

pete



Peter Loron wrote:


As
far as I know, the root account is not enabled by default. Best bet is
to boot up in recovery mode, and edit sudoers.



-Pete



----- Original Message -----

From: "Knute Johnson" <knute@frazmtn.com>

To: ubuntu-users@lists.ubuntu.com

Sent: Saturday, February 2, 2008 8:59:58 PM (GMT-0800)
America/Los_Angeles

Subject: root password?



I installed 7.10 onto a USB jump drive and tried to create a new

user. *In the process I did something bad to the sudoers file. *I

can't edit it because I can't sudo. *I can't login as root because I

don't know the password. *What's the password for root on the live

CD?



Thanks,







--



Knute Johnson

Molon Labe...







--

ubuntu-users mailing list

ubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




--
Pete Clapham
Department of Biological, Geological, and Environmental Sciences
Cleveland State University
Cleveland, Ohio, 44115

Voice: [216] 687-4820
Fax: [216] 687-6972
w.clapham@csuohio.edu




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 02-03-2008, 03:29 PM
Peter Garrett
 
Default root password?

On Sun, 03 Feb 2008 11:02:50 -0500
Pete Clapham <w.clapham@csuohio.edu> wrote:

> The root account /is/ enabled, but it isn't given a password, so you
> can't access it directly. What you have to do is to sudo passwd root
> and enter a password.

Or just do

sudo -i

> Since you've zapped your sudoers file, you
> probably can't do that.

Yes he can. If you boot in "recovery" mode you get a root prompt... see my
other post.

> Personally, I much prefer to do a su and know
> I'm a superuser than to depend on sudo for everything. But that's my
> preference; evidently most Ubuntu users have a different preference.

<captain obvious tag>
Either way is fine, except that if you give yourself a root password, the
trick above won't give you a root prompt by default, so you'd better make
sure you remember your root password
</captain obvious tag>


--
"INX Is Not X" Live CD based on Ubuntu 7.04 : http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org