LinuxQuestions.org
Help answer threads with 0 replies.
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, 05: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, 06:05 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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, 06: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, 06:20 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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, 11:26 AM   #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 11:32 AM. Reason: I'm always less than perfect the first time. Edit->Compile->Test
 
Old 01-02-2009, 11:34 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 11:38 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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, 11:51 AM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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 04:47 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
changing the "prompt" pelegk2 Linux - General 5 11-24-2004 05:12 AM
Changing PS1 "on the fly" for root gandalf2041 Linux - General 1 11-22-2003 01:37 PM
how to "exit to command prompt" hesher Linux - Newbie 3 06-07-2003 07:11 AM

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

All times are GMT -5. The time now is 07:31 AM.

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
Open Source Consulting | Domain Registration