On Sun, 4 Mar 2001 05:42:53 -0800 (PST)
r j <[EMAIL PROTECTED]> wrote:
>
> case $USER in
> root*)
> PS1="It's \[\033[1m\]\t\[\033[0m\] on \d.\nYou are
> \[\033[0;31m\]\u\[\033[0m\] at { \[\033[0;31m\]\w\[\033[0m\]
> }\n\[\033[0;31m\]\\$> \[\033[0m\]"
> ;;
> *)
> PS1="It's \[\033[0;31m\]\@\[\033[0m\] on \d.\nYou are at {
> \[\033[1m\]\w\[\033[0m\] }\n\[\033[1m\]\\$> \[\033[0m\]"
> ;;
> esac
Firstly - Some explaination.
1) I watch this list as one of Civilemes' Crashtesters
2) I am a genuine newbie to linux (12 months)
3) I run L-M 7.1 on a stock AMD-K6 2/500 with 32mb RAM
4) I only use KDE as distributed with L-M 7.1 from Cheapbytes.
I saw the script from rj (as above) liked the idea, cut and pasted it to
my /etc/bashrc while running from Konsole as user su'ed to root.
I tested there, fixed spacing problems etc due to the line truncation,
and switched back and forth between user and root until satisfied it was
working. I then returned to KDE and continued with the document I had
been working on in StarOffice 5.2 for a couple of hours.
I live in a remote area, power failures are not uncommon, I don't have
UPS protection - don't consider it a priority as a single user. The
power failed and in due course was restored.
I booted as normal to Init 3, logged on as user and executed startx to
go back to KDE.
X (I assume at this point) displays a message saying:'Xauth .Xauthority
will not be written - permission denied. (Or very similar), I hit return
expecting to be returned to the bash prompt, all I got was the linefeed,
so I used CTRL-C again expecting to be returned to the prompt, and X or
KDE continued to load, and behaved 'normally'.
I patched up the SO document, saved, exited, SO, retrived and read thru
the mail, and logged out of KDE, and got another error message:
cat: /home/user/.Xauthority - Permission denied
localhost being added to local control list.
I then contacted the contributor - rj - directly who has made some
suggestions including removal etc.
The script additions have been commented out of /etc/bashrc - the new
prompt configuration is removed but the X/KDE problem remains
The script additions where removed and the problem remains
I rebooted and the problem remains.
'Something' changed the permissions of my /home/user/.Xauthority to:
-rw------- 1 root root 235 Mar 6 15:07 .Xauthority
Timestamp indicates time the changes were made (I think)
and each envocation of X/KDE produces the following 2 files - timestamp
varies.
-rw-r--r-- 2 john john 0 Mar 7 00:32 .Xauthority-c
-rw-r--r-- 2 john john 0 Mar 7 00:32 .Xauthority-l
Now this is a simple script - even to a newbie such as myself - it
shouldn't orta do this.. and worse - it is repeatable and repeating.
Cheers (I think)
John
---
Mailto: [EMAIL PROTECTED]
"The number of UNIX installations has grown to 10, with more expected"
(The UNIX Programmer's Manual, 2nd Edition, June 1972.)