Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP ASAP - .profile

0 views
Skip to first unread message

Barb4

unread,
Jan 31, 1998, 3:00:00 AM1/31/98
to

Help! I've been trying to change the .profile for root, so when you login it
will change the ls to ls -la, su to su -, and also a command to grep for the
directory, so you can list directories only. I had this working on our Digital
Unix 3.2C server, but when we upgraded it didn't work. So, I've tried many
iterations to no avail. Today, I entered this (thinking it *had* to take it as
a literal command), and now I'm totally locked out!!
alias ls=`ls -la`
alias su=`su -`
alias lsd='ls -l | grep ^d'
When I try to su to root, the system searches for alias, comes back and tells
me it isn't found, and continues running through (ex:)

system: alias not found
1502: alias not found
Jan: alias not found
3: alias not found
20:14: alias not found
.login: alias not found
-rw-r--r--: alias not found
1: alias not found
root: alias not found
system: alias not found

I can't get back in to change the file. YIKES!! HELP!! ASAP!!

Thanks in advance!
Ba...@aol.com


Niels Christian Bank-Pedersen

unread,
Jan 31, 1998, 3:00:00 AM1/31/98
to

ba...@aol.com (Barb4) writes:

>When I try to su to root, the system searches for alias, comes back and tells
>me it isn't found, and continues running through (ex:)

>I can't get back in to change the file. YIKES!! HELP!! ASAP!!

Have you tried "su" (not "su -") ?

/Niels Chr.
--

Niels Christian Bank-Pedersen (NCB1-RIPE, TDI1-RIPE).
UN*X is user friendly. It's just selective about who its friends are.

Stephen

unread,
Feb 2, 1998, 3:00:00 AM2/2/98
to

Barb4 (ba...@aol.com) wrote:

: system: alias not found


: 1502: alias not found
: Jan: alias not found
: 3: alias not found
: 20:14: alias not found
: .login: alias not found
: -rw-r--r--: alias not found
: 1: alias not found
: root: alias not found
: system: alias not found

I'd say alias isn't being found. Which shell is set for root? It also
looks like you missed a comment line in there somewhere and it's trying
to run your comments. Need more info. You can mail me if you'd like, and
I'll take a look at it.

: I can't get back in to change the file. YIKES!! HELP!! ASAP!!

Try su'ing to root w/out the dash (to avoid taking the enviro):

$ su root
Passwd:
#

Stephen

0 new messages