Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Neil Bothwick
On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote:

  Some ENV variables are unset by sudo.

You can alter that behaviour in /etc/sudoers. I have

Defaults:%wheel !env_reset

and don't see this.

  But anyway, sudo su makes zero sense :P

 sudo su makes sense if you want to use the root account while having the
 root account locked.

The root account is hardly locked if you can log into it with sudo su
(or sudo screen) but sudo -s or sudo -i make more sense in this
situation.


-- 
Neil Bothwick

Politicians are like nappies
Both should be changed regularly, and for the same reason


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread ubiquitous1980
Neil Bothwick wrote:
 On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote:

   
 Some ENV variables are unset by sudo.
   

 You can alter that behaviour in /etc/sudoers. I have

 Defaults:%wheel !env_reset

 and don't see this.

   
 But anyway, sudo su makes zero sense :P
   

   
 sudo su makes sense if you want to use the root account while having the
 root account locked.
 

 The root account is hardly locked if you can log into it with sudo su
 (or sudo screen) but sudo -s or sudo -i make more sense in this
 situation.


   
localhost ubiquitous1980 # passwd -l root
Password changed.
localhost ubiquitous1980 # exit
exit
ubiquitous1...@localhost ~ $ su
Password:
su: Authentication failure
ubiquitous1...@localhost ~ $ sudo su
Password:
Your account has expired; please contact your system administrator
su: User account has expired
(Ignored)
localhost ubiquitous1980 #



Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Neil Bothwick
On Sun, 28 Feb 2010 18:48:56 +0800, ubiquitous1980 wrote:

  The root account is hardly locked if you can log into it with sudo su
  (or sudo screen) but sudo -s or sudo -i make more sense in this
  situation.

 localhost ubiquitous1980 # passwd -l root
 Password changed.
 localhost ubiquitous1980 # exit
 exit
 ubiquitous1...@localhost ~ $ su
 Password:
 su: Authentication failure
 ubiquitous1...@localhost ~ $ sudo su
 Password:
 Your account has expired; please contact your system administrator
 su: User account has expired
 (Ignored)
 localhost ubiquitous1980 #

What's your point?


-- 
Neil Bothwick

Windoze95 Quote: Why is the Pentium 166 so fast? - Its for booting
faster, if Windows crashed again.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread ubiquitous1980
Neil Bothwick wrote:
 On Sun, 28 Feb 2010 18:48:56 +0800, ubiquitous1980 wrote:

   
 The root account is hardly locked if you can log into it with sudo su
 (or sudo screen) but sudo -s or sudo -i make more sense in this
 situation.
   

   
 localhost ubiquitous1980 # passwd -l root
 Password changed.
 localhost ubiquitous1980 # exit
 exit
 ubiquitous1...@localhost ~ $ su
 Password:
 su: Authentication failure
 ubiquitous1...@localhost ~ $ sudo su
 Password:
 Your account has expired; please contact your system administrator
 su: User account has expired
 (Ignored)
 localhost ubiquitous1980 #
 

 What's your point?


   
That you stated that the root account was hardly locked if I can sudo su
into it.  If you take me as truthful, then you can see that I have done
exactly that: locked the account and sudo su'ed into it.  I think you
already knew that was possible, so I am countering the semantics of the
issue.



Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Neil Bothwick
On Sun, 28 Feb 2010 22:03:36 +0800, ubiquitous1980 wrote:

 That you stated that the root account was hardly locked if I can sudo su
 into it.  If you take me as truthful, then you can see that I have done
 exactly that: locked the account and sudo su'ed into it.  I think you
 already knew that was possible, so I am countering the semantics of the
 issue.

My point was that if you can get into it, it is not truly locked. You
have prevented one means of accessing it, but not totally locked it.

Anyway, sudo -i/s is a cleaner way of opening a root session IMO.


-- 
Neil Bothwick

Nothing is illegal if one hundred businessmen decide to do it.


signature.asc
Description: PGP signature


[gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread walt

On 02/27/2010 08:32 PM, Dan Cowsill wrote:

On Sat, Feb 27, 2010 at 10:57 PM, ubiquitous1980nixuser1...@gmail.com  wrote:

If I have logged in through sudo such as $ sudo su, when I then use man
pages, they are covered in ESC.  This does not occur when using normal
user accounts or the root account through su.  Wondering what is going
on.  Thanks.




Kind of curious about this myself.  It has just been a minor annoyance
to me for the last couple of years, but it seems to show up only when
logged onto root.


There are several environment variables that affect the output of man,
e.g. PAGER, LESS, LESSCOLOR, LESSOPEN, LESSIGNORE, the contents of
~/.lessfilter and probably other things I can't remember.

Any of those might be different for root.




Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Alan McKinnon
On Sunday 28 February 2010 07:06:43 ubiquitous1980 wrote:
 Nikos Chantziaras wrote:
  On 02/28/2010 05:57 AM, ubiquitous1980 wrote:
  If I have logged in through sudo such as $ sudo su, when I then use man
  pages, they are covered in ESC.  This does not occur when using normal
  user accounts or the root account through su.  Wondering what is going
  on.  Thanks.
  
  Some ENV variables are unset by sudo.
  
  But anyway, sudo su makes zero sense :P
 
 sudo su makes sense if you want to use the root account while having the
 root account locked.  Some, like Ubuntu, do it for security reasons.
 Not sure if they are valid, but I thought I would put this little
 problem out there for someone to make comment on.

I use sudo su a lot,a nd make it available to other root users on my 
servers. It all makes perfect sense it the context of:

1. The password for the root account is secret. Changing it is a real ball-
ache, something not undertaken lightly.
2. The password is know to very very few persons, and ideally would be kept in 
a locked safe needing signed CTO approval to open it.
3. I have a provisioning system that deploys user, their keys and password 
hashes.
4. The person running sudo su is authorized to do so, so he gets root. 
There's an audit trail too as not just anyone can get to my remote sysloggers.
5. When someone leaves, in the old days we had to manually change 100+ root 
passwords, and of course always forget at least one. Now I run one command on 
my user provisioning system and within 30 minutes that person's access is 
gone, and I can guarantee a) it's gone everywhere b) there are no back doors
6. Not all OSes out there support sudo -i

So in the context of multi-admin servers, sudo su (or sudo -i if you will) 
make perfect sense, and su far less so.


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread Nikos Chantziaras

On 02/28/2010 05:57 AM, ubiquitous1980 wrote:

If I have logged in through sudo such as $ sudo su, when I then use man
pages, they are covered in ESC.  This does not occur when using normal
user accounts or the root account through su.  Wondering what is going
on.  Thanks.


Some ENV variables are unset by sudo.

But anyway, sudo su makes zero sense :P




Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread ubiquitous1980
Nikos Chantziaras wrote:
 On 02/28/2010 05:57 AM, ubiquitous1980 wrote:
 If I have logged in through sudo such as $ sudo su, when I then use man
 pages, they are covered in ESC.  This does not occur when using normal
 user accounts or the root account through su.  Wondering what is going
 on.  Thanks.

 Some ENV variables are unset by sudo.

 But anyway, sudo su makes zero sense :P


sudo su makes sense if you want to use the root account while having the
root account locked.  Some, like Ubuntu, do it for security reasons. 
Not sure if they are valid, but I thought I would put this little
problem out there for someone to make comment on.



Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread Dale

chrome://messenger/locale/messengercompose/composeMsgs.properties:

Nikos Chantziaras wrote:
   

On 02/28/2010 05:57 AM, ubiquitous1980 wrote:
 

If I have logged in through sudo such as $ sudo su, when I then use man
pages, they are covered in ESC.  This does not occur when using normal
user accounts or the root account through su.  Wondering what is going
on.  Thanks.
   

Some ENV variables are unset by sudo.

But anyway, sudo su makes zero sense :P


 

sudo su makes sense if you want to use the root account while having the
root account locked.  Some, like Ubuntu, do it for security reasons.
Not sure if they are valid, but I thought I would put this little
problem out there for someone to make comment on.

   


I don't use sudo or su but I have seen this a time or two.  I have no 
clue why tho.  It was a while ago but I was in a console at the time.  I 
usually use a Konsole within KDE.  I don't recall ever seeing this 
problem there.


I was curious but never thought is would be more than just me that saw this.

Dale

:-)  :-)