LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2009, 06:55 AM   #1
scotthill
LQ Newbie
 
Registered: Jan 2009
Posts: 25

Rep: Reputation: 15
Changing the command prompt PS1="****"


I have a command prompt that I like and edited .bashrc to get it to happen on every terminal instance. However as soon as I do a SU command the prompt changes back to the original. Where is the file to configure the root users prompt?


Also if you happen to know, when in terminal mode if you do an "info" or "help" screen how do you get back to the command prompt without closing the window and starting over?

I've still had no luck getting my Apache server to work.
 
Old 01-02-2009, 07:05 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Where is the file to configure the root users prompt?
/root/.bashrc

Quote:
Also if you happen to know, when in terminal mode if you do an "info" or "help" screen how do you get back to the command prompt without closing the window and starting over?
q ?
 
Old 01-02-2009, 07:15 AM   #3
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
Hi scotthill

In some systems, you can create root/.bashrc for superuser so that /home/user/.bashrc is for the user. It could be different in some other distros. You may want to google about .bash_profile as well. Do a "source /etc/profile" to see if it works.

I think, if I get you right to escape from a "manual" page like from "man emacs" you can simply type a "q" to drop back to the command prompt.

Sorry, I am not able to comment about the Apache server.

Cheers,
Isix
 
Old 01-02-2009, 07:20 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I've still had no luck getting my Apache server to work.
Perhaps you can open a new thread, and give more info
distribution, problem, errormessages.....
 
Old 01-02-2009, 12:26 PM   #5
scotthill
LQ Newbie
 
Registered: Jan 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
Perhaps you can open a new thread, and give more info
distribution, problem, errormessages.....
Editing the root->.bashrc got me the prompt I wanted. Thanks.

Q: A further question is, why I cant see the .bashrc file in the root using Terminal with the "ls" command even though I'm logged on as SuperUser? When I couldn't see it I tried to create it with gedit. Gedit said the file existed already. Then I did "gedit .bashrc" which worked even though the "ls" command doesn't see the file. How many other interesting files are invisible.

Q: Do you know how to get the Gnome "File Browser" to work under a SU permission set? Can you start FileBrowser from a SU terminal to get there?

My Apache Server says on boot: "Can not bind to 192.168.1.100 creating log file failed" 192.168.1.100 is my static IP address for the Fedora box. I can ping that ip address do problems locally and on other machines in the house. There are some other screwy symptoms. Is there a log file that has a record of the Apache output on boot? I'll post a new thread on my Apache problem soon.


Q: Why does gedit give me this error even though it loads and worksgedit:2925): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

Last edited by scotthill; 01-02-2009 at 12:32 PM. Reason: I'm always less than perfect the first time. Edit->Compile->Test
 
Old 01-02-2009, 12:34 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally Posted by scotthill View Post
Editing the root->.bashrc got me the prompt I wanted. Thanks.

Q: A further question is, why I cant see the .bashrc file in the root using Terminal with the "ls" command even though I'm logged on as SuperUser? When I couldn't see it I tried to create it with gedit. Gedit said the file existed already. Then I did "gedit .bashrc" which worked even though the "ls" command doesn't see the file. How many other interesting files ar invisible.
These are dot files, or hidden files. ls -a will reveal them to you.

Quote:


My Apache Server says on boot: "Can not bind to 192.168.1.100 creating log file failed" 192.168.1.100 is my static IP address for the Fedora box. I can ping that ip address do problems locally and on other machines in the house. There are some other screwy symptoms. Is there a log file that has a record of the Apache output on boot? I'll post a new thread on my Apache problem soon.
You might want to start a new thread on this, it's really unrelated to your topic and it won't get much exposure to the right people.

-Chad
 
Old 01-02-2009, 12:38 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Q: A further question is, why I cant see that file in Terminal with the "ls" command even though I'm logged on as SuperUser? When I couldn't see it I tried to create it with gedit. Gedit said the file existed already. Then I did "gedit .bashrc" which worked even though the "ls" command doesn't see the file.
because it is a hidden file (mark the "." before the filename)
To see it type
ls -a

Quote:
Q: Do you know how to get the Gnome "File Browser" to work under a SU permission set? Can you start FileBrowser from a SU terminal to get there?
in a terminal type sudo nautilius

Quote:
Q: Why does gedit give me this error even though it loads and worksgedit:2925): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
Because you execute it as root?
 
Old 01-02-2009, 12:51 PM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,834

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by scotthill View Post
Q: Do you know how to get the Gnome "File Browser" to work under a SU permission set? Can you start FileBrowser from a SU terminal to get there?
The root user by default is not given authority to connect to a running x-server started by another user (just like all other users). This has been covered multiple times here, so I suggest searching the forums for it if you want to set it up.

But you can also run any gui program with root permissions from a normal user's terminal by using gksu or gksudo: e.g. "gksudo nautilus".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting to Ubuntu 8.4, gives me a command prompt..."BusyBox"???? tenchidbz Linux - Software 2 06-13-2008 05:47 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
changing the "prompt" pelegk2 Linux - General 5 11-24-2004 06:12 AM
Changing PS1 "on the fly" for root gandalf2041 Linux - General 1 11-22-2003 02:37 PM
how to "exit to command prompt" hesher Linux - Newbie 3 06-07-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration