Shaggy Im-erbtham wrote:

> I just migrated my Samba fileserver to a new 13.5 GB HDD. Everything
went
> fine.
> It is only when I log-in, either as root or as a user that I get this
output
>
> bash: /etc/bashrc: No such file or directory
>
> How can I fix it? Or get rid of it?

Did you lost it or is it there but bash can't see ?
Have you lost aother files in /etc ?

anyway, here's my bashrc file (Mandrake), i think this is a kinda
generic stuff
:

--------------------------------------
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="[\u@\h \W]\\$ "

alias which="type -path"
alias md=mkdir
alias rd=rmdir
alias ls="ls --color=auto"
alias cd..="cd .."
---------------------------------------

And here is /etc/profile:

----------------------------------------
# /etc/profile

# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc

PATH="$PATH:/usr/X11R6/bin"
PS1="[\u@\h \W]\\$ "

# In bash2 we can't define a ulimit for user :-(
[ "$UID" = "0" ] && {
ulimit -c 1000000
}

if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
        umask 002
else
        umask 022
fi

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER" # Shaggy, in here it depends on the sys you
got
(mandrake or RH is ok)

HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL

for i in /etc/profile.d/*.sh ; do
        if [ -x $i ]; then
                . $i
        fi
done

unset i
--------------------------------------------------------
Ismael
/* If God exists, it's a pretty good mathematician. */

Reply via email to