Ignite-UX

Re: error saying exceeded file size

 
SOLVED
Go to solution
Patrick Wallek
Honored Contributor

Re: error saying exceeded file size

How he sudo'd to root may have an impact on the environment he gets.  'sudo su' vs. 'sudo su -' would likely yield different results.

 

From the 'su' man page:

      su recognizes the following options:

           -         If the - option is specified, the new shell starts up
                     as if the new user had initiated a new login session.
                     If the - option is omitted, the new shell starts as if
                     a subshell was invoked.  See more details below.

 <...snip out the '-d' option info...>

      If the - option is specified, the new shell starts up as if the new
      user had initiated a new login session.  Exceptions are as follows:

        +  The HOME variable is reset to the new user's home directory.

        +  If the new user name is root, the path and prompt variables are
           reset:

           PATH=/usr/bin:/usr/sbin:/sbin
           PS1=#

           For other user names:

           PATH=/usr/bin
           PS1=$

        +  The TERM variable is retained.

        +  The rest of the environment is deleted and reset to the login
           state.  However, the login files are normally executed anyway,
           usually restoring the expected value of PATH and other variables.

      If the - option is omitted, the new shell starts as if a subshell was
      invoked.  Exceptions are as follows:

        +  If the new user name is root, the path and prompt variables are
           reset:

           PATH=/usr/bin:/usr/sbin:/sbin
           PS1=#

        +  The previously defined HOME and ENV environment variables are
           removed.

        +  The rest of the environment is retained.

I have never had a problem with my environment when using 'sudo' to become root on a server, but then I always do 'sudo su -'.