mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
dot.login:
Finally transform the "Don't login as root..." message to make it clear that `su' is meant to be a command. Will save us a lot of questions about the user named `su'. Make the message magically disappear if the user did an ``su - root'', since it might be a bit silly to ask him to perform an `su'... dot.cshrc: Remove the no-op `-g' options from the ls aliases, and replace them by `-o'. This way, if root does an `ls -l', he will see the immutable flag and (hopefully) not be too surprised about the "Permission denied".
This commit is contained in:
parent
e93ad7be43
commit
650bd71d67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9368
@ -1,4 +1,4 @@
|
||||
# $Id: dot.cshrc,v 1.11 1994/09/22 08:23:02 rgrimes Exp $
|
||||
# $Id: dot.cshrc,v 1.12 1994/10/27 05:26:59 phk Exp $
|
||||
#
|
||||
alias mail Mail
|
||||
set history=1000
|
||||
@ -10,8 +10,8 @@ set path=(/sbin /usr/sbin /bin /usr/bin /usr/local/bin)
|
||||
alias cd 'set old=$cwd; chdir \!*'
|
||||
alias h history
|
||||
alias j jobs -l
|
||||
alias ll ls -lg
|
||||
alias ls ls -g -k
|
||||
alias ll ls -lo
|
||||
alias ls ls -o -k
|
||||
alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs'
|
||||
|
||||
alias z suspend
|
||||
|
@ -1,6 +1,9 @@
|
||||
# $Id: dot.login,v 1.5 1994/06/15 22:58:47 jkh Exp $
|
||||
# $Id: dot.login,v 1.6 1994/09/16 04:20:13 rgrimes Exp $
|
||||
#
|
||||
tset -Q \?$TERM
|
||||
stty crt erase ^H
|
||||
umask 2
|
||||
echo "Don't login as root, use su"
|
||||
if ("$0" != "-su") then
|
||||
echo "Don't login as root, login as yourself an use the 'su' command"
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user