Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am completely new to Linux and I need some help. I know how to successfully enter into the root directory for the server, however, I am not sure on how the root directory for the desktop. Therefore, what command(s) should I use to access the desktop's root directory?
Please describe in more detail what you are trying to achieve and why. People new to Linux often do not realize there are number of ways to get job done in Linux, things that are impossible in Windows are possible in Linux. So describing the goal instead of asking how may lead to surprising solutions.
Hello,
I am completely new to Linux and I need some help. I know how to successfully enter into the root directory for the server, however, I am not sure on how the root directory for the desktop. Therefore, what command(s) should I use to access the desktop's root directory?
I am going to take a guess, and assume you mean "How do I log in to the GUI/Window manager as root on the console?"
Short answer is: you don't...it's disabled for VERY GOOD SECURITY REASONS. As you're new to Linux, be aware that you should *NEVER* log in as root (or even ASSUME root with "su -"), unless you have an excellent reason for doing so. Treat the root account like a loaded gun.
Longer answer: you CAN, but how you enable that access depends on the version/distro of Linux and the window manager/login manager you're using. While it CAN be modified, it isn't simple (usually), and that takes you back to "Don't EVER LOG IN AS ROOT"
I apologize about my post. I should have been more clear on my question. I am learning Linux for the first time by taking a course that is provided by the RHA (Red Hat Academy). What I am trying to do, or the goal of this assigned practice, is to configure a host name on the desktop's root file, as seen in the attachment.
Picture Note: In the attachment, I am assuming that the letter X is my foundation number.
As a result, I was wondering how I can access the desktop's root file in the terminal and be able to set the provided host name on the system.
What distro/version are you using and what have you tried so far?
As general information, hostnames are commonly stored in a file in the /etc directory. The exact name and format of the file(s) in question can vary slight depending on the particular distro.
The Linux distro/version that I am using in the course is Red Hat Enterprise Linux Server 7.0.
On the other hand, however, I think I figured it out. On the home screen, there are 4 icons: Home, Trash, View Server and View Desktop. I clicked on View Desktop and signed in. After signing in, I right-clicked the home screen, went to Open in Terminal and used the su - command in the terminal to access root. As a result, I believe that I am now able to finish the question I provided earlier.
I don't know how legal that is, if you have apache installed it goes in there.
4 red hat I found this
Quote:
Permanent hostname change on RedHat based systems
RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit
Files
/etc/hosts /etc/sysconfig/network
Note
Note that hostname doesn't change anything permanently. After reboot original names from /etc/hosts are used again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.