hello everyone, I am a newbie.
These days I was confused with such a problem.
As shown above, when I login with target SHELL setting to csh or once I run "csh", an alert message of "/sbin/.: Permission denied." jumps out.
But if I add the "-f" option, there will not be this alert message. I also doubt whether there is some problem with my .cshrc file. which is writen as below.
Could anyone teach me where is the point? Thanks a lot in advance.
These days I was confused with such a problem.
Code:
%su -
Password:
/sbin/.: Permission denied.
tm3#
%su -f
Password:
%
tm3# csh
/sbin/.: Permission denied.
tm3# csh -f
%
As shown above, when I login with target SHELL setting to csh or once I run "csh", an alert message of "/sbin/.: Permission denied." jumps out.
But if I add the "-f" option, there will not be this alert message. I also doubt whether there is some problem with my .cshrc file. which is writen as below.
Could anyone teach me where is the point? Thanks a lot in advance.
Code:
tm3# cat .cshrc
# $FreeBSD: src/etc/root/dot.cshrc,v 1.30.6.1 2008/11/25 02:59:29 kensmith Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "`/bin/hostname -s`# "
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
tm3#