DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-04-14 18:40:58

JaCh0o
Member
Registered: 2011-03-04
Posts: 7

[DEBIAN] Lenny Problem with /etc/profile

there is iniside profile file:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

export PATH

umask
022

by now and when i try to login on my account theres an info:
-sh: /etc/profile: line 23: syntax error: unexpected end of file

whats wrong ??

Offline

 

#2 2011-04-14 19:22:56

nogi
Member
From: Heddesheim, Germany
Registered: 2010-03-31
Posts: 28

Re: [DEBIAN] Lenny Problem with /etc/profile

JaCh0o wrote:

there is iniside profile file:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

export PATH

umask
022

by now and when i try to login on my account theres an info:
-sh: /etc/profile: line 23: syntax error: unexpected end of file

whats wrong ??

The number of "if"s and "fi"s do not match.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB