RE: [GRASS-user] Ubuntu 6.06 Dapper: strange sudo hints printed a tstartup

I can confirm the sudo tip on my Ubuntu Dapper box, using yesterday's CVS.

~ Eric.

-----Original Message-----
From: grassuser-bounces@grass.itc.it
To: grassuser@grass.itc.it
Sent: 7/13/2006 6:14 PM
Subject: [GRASS-user] Ubuntu 6.06 Dapper: strange sudo hints printed
atstartup

Hi,

When I start Grass 6.1, 5.5 or 6.01 on Ubuntu Dapper I receive strange
hints about using sudo for some purpose. No matter if I start Grass with
-gui or -text. I don't understand why I would need sudo for anything
with Grass.

Example:

  Welcome to GRASS 6.1.cvs (2006)
  GRASS homepage: http://grass.itc.it/
  This version running thru: Bash Shell (/bin/bash)
  Help is available with the command: g.manual -i
  See the licence terms with: g.version -c
  Start the graphical user interface with: gis.m &
  When ready to quit enter: exit
  To run a command as administrator (user "root"), use "sudo
  <command>".
  See "man sudo_root" for details.

  To run a command as administrator (user "root"), use "sudo
  <command>".
  See "man sudo_root" for details.

    ^^^
    those look strange!

  GRASS 6.1.cvs (xy):~ >

I also have the same behaviour on Dapper, using yesterday's CVS.

Carlos

On 7/14/06, Patton, Eric <epatton@nrcan.gc.ca> wrote:

I can confirm the sudo tip on my Ubuntu Dapper box, using yesterday's CVS.

~ Eric.

-----Original Message-----
From: grassuser-bounces@grass.itc.it
To: grassuser@grass.itc.it
Sent: 7/13/2006 6:14 PM
Subject: [GRASS-user] Ubuntu 6.06 Dapper: strange sudo hints printed
atstartup

Hi,

When I start Grass 6.1, 5.5 or 6.01 on Ubuntu Dapper I receive strange
hints about using sudo for some purpose. No matter if I start Grass with
-gui or -text. I don't understand why I would need sudo for anything
with Grass.

Example:

        Welcome to GRASS 6.1.cvs (2006)
        GRASS homepage: http://grass.itc.it/
        This version running thru: Bash Shell (/bin/bash)
        Help is available with the command: g.manual -i
        See the licence terms with: g.version -c
        Start the graphical user interface with: gis.m &
        When ready to quit enter: exit
        To run a command as administrator (user "root"), use "sudo
        <command>".
        See "man sudo_root" for details.

        To run a command as administrator (user "root"), use "sudo
        <command>".
        See "man sudo_root" for details.

                ^^^
                those look strange!

        GRASS 6.1.cvs (xy):~ >

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Solved.

The Ubuntu Dapper has a new "feature", that prints the sudo message
reminder when you start a login bash and your user is in a group with
permissions to invoke sudo. It's a reminder only. You can trace it
back to /etc/profile file that calls /etc/bash/bashrc that shows...

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
    case " $(groups) " in *\ admin\ *)
    if [ -x /usr/bin/sudo ]; then
  cat <<-EOF
  To run a command as administrator (user "root"), use "sudo <command>".
  See "man sudo_root" for details.
  
  EOF
    fi
    esac
fi

Interesting enough, there is a direct way to stop it: if a file named
.sudo_as_admin_sucessful exists in home, you get no message. But
Init.sh pseudo-login in GRASS modifies HOME in the process, so the
filename check is not done at $HOME but at $LOCATION directory!

I can do...

$ touch gis/spearfish60/PERMANENT/.sudo_as_admin_sucessful
$ grass61 -text gis/spearfish60/PERMANENT

... and get no messages.

I hope this help you.

M.

2006/7/14, Carlos Guâno Grohmann <carlos.grohmann@gmail.com>:

I also have the same behaviour on Dapper, using yesterday's CVS.

Carlos

On 7/14/06, Patton, Eric <epatton@nrcan.gc.ca> wrote:
> I can confirm the sudo tip on my Ubuntu Dapper box, using yesterday's CVS.
>
> ~ Eric.
>
> -----Original Message-----
> From: grassuser-bounces@grass.itc.it
> To: grassuser@grass.itc.it
> Sent: 7/13/2006 6:14 PM
> Subject: [GRASS-user] Ubuntu 6.06 Dapper: strange sudo hints printed
> atstartup
>
> Hi,
>
> When I start Grass 6.1, 5.5 or 6.01 on Ubuntu Dapper I receive strange
> hints about using sudo for some purpose. No matter if I start Grass with
> -gui or -text. I don't understand why I would need sudo for anything
> with Grass.
>
> Example:
>
> Welcome to GRASS 6.1.cvs (2006)
> GRASS homepage: http://grass.itc.it/
> This version running thru: Bash Shell (/bin/bash)
> Help is available with the command: g.manual -i
> See the licence terms with: g.version -c
> Start the graphical user interface with: gis.m &
> When ready to quit enter: exit
> To run a command as administrator (user "root"), use "sudo
> <command>".
> See "man sudo_root" for details.
>
> To run a command as administrator (user "root"), use "sudo
> <command>".
> See "man sudo_root" for details.
>
> ^^^
> those look strange!
>
> GRASS 6.1.cvs (xy):~ >
>
> _______________________________________________
> grassuser mailing list
> grassuser@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

--
-- marcos boullón magán
-- universidade de Santiago de Compostela

Marcos!

Thanks for solving this!

Maciek