FedoraThis forum is for the discussion of the Fedora Project.
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 agree with keep with the out of box security. use 'sudo su -' and you'll be at cmd from root, then you can use yum or launch 'nautilus' for a gui file browsing experience.
Got to agree with John VV here, you really DON'T want to be logged in as root all the time.
You can do all sorts of stuff that would damage or completely break your install.
An alternative solution should you wish to be logged in as root for a limited amount of time:
Firstly, when logged in as root do the following:
Code:
# vim /etc/sudoers
Add the following line - this basically will make your ordinary user a passwordless sudeor
Code:
yasfir ALL=(ALL) NOPASSWD: ALL
At this stage, if you ran a command like # sudo su - you would be logged in as root without entering a password.
To take it one step further, if you're lazy to type in sudo su - (as I am) you can do the following. Do all of the following as your local user that you'd login to your box with (in my case yasfir).
In a directory of your choice (I used my home dir - /home/yasfir) create a new script with a short/simple name that is easy to type:
Code:
# vim yas
Add in the following into the script:
Code:
#!/bin/bash
sudo su -
Thereafter change permissions of this script to make it executable (chmod 755 should do the trick). Then ensure that wherever
this script lives, you add that location to your PATH environment variable; so in my case for example:
Code:
# more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/home/yasfir
export PATH
After doing the above; when logged as a local user (in my case yasfir), just typing in the name of your script (in my case yas) will simply log you in as root.
Why on Earth does the paranoia of the WinTel environ have to permeate everywhere.
Turning off all that rubbish in Vista was bad enough, but Windows 7 is making it very hard for me to use my own PC. FC is doing likewise. THE CHOICE IS MINE surely?
I started in IT in '64, ventured into Unix in '77, and until 2 years ago was supporting a financial system running Unix V that handled $1Bn per business day - the only reason we were forced to retire it was that the hardware could no longer be supported - not Unix V.
And Guess What? We logged in as root !! $1Bn per day and we logged in as root !
Since its migration to SPARC, the system has become unstable by comparison - cest la guerre - that's progress I suppose.
So again, if I have my PCs and Servers at home, I find it infuriating and frankly obnoxious that I have to find ways to circumvent the things such as SEL and GDM etc.
It's like putting on a seat-belt whey you enter the car. It SHOULD be done, for safety reasons. Once you have a habit to do so, you are MUCH lesser prone to slip with your security.
I still use my Linux Desktop with root password, but I use my Laptop with regular user password, frustrating or not. I discipline my self to reduce possible security (or stability!!!!) issues. Even if I would not have needed strong security (and I do), I might use same bad practice on someone else's system and create them possible security issue I would have been responsible for.
The desktop with root password access is installed when CentOS 5.0 came out and I haven't known any better, and since I heavily installed, updated, compiled, etc.. various packages for CentOS/RHEL I was almost always inside Krusader with root access (and still am), but in a week or two that desktop will be reinstalled and proper user will be established and I will force my self to use it. Especially since I am not the only one to use it. There were quite a few incidents in my IT support career where kids on Windows tried to delete windows folder to free some space for their games!!!
BTW, strong and emphasized warnings on this topic ARE welcomed and warranted, to model newbies to think safety first.
Why on Earth does the paranoia of the WinTel environ have to permeate everywhere.
Turning off all that rubbish in Vista was bad enough, but Windows 7 is making it very hard for me to use my own PC. FC is doing likewise. THE CHOICE IS MINE surely?
I started in IT in '64, ventured into Unix in '77, and until 2 years ago was supporting a financial system running Unix V that handled $1Bn per business day - the only reason we were forced to retire it was that the hardware could no longer be supported - not Unix V.
And Guess What? We logged in as root !! $1Bn per day and we logged in as root !
Since its migration to SPARC, the system has become unstable by comparison - cest la guerre - that's progress I suppose.
So again, if I have my PCs and Servers at home, I find it infuriating and frankly obnoxious that I have to find ways to circumvent the things such as SEL and GDM etc.
Rant over from a member new to this forum
Well not everyone started in IT in '64, and started with Unix in '77. The point is that just as the various flavours of Linux are diverse, so are the users; there are all sorts of users from Noobs all the way to Guru's (much like the users in the forum).
Just take a read of some of the questions posted in the "Linux Newbies" Forum and you'll be able to see this.
The Fedora project are concious of this and thus for safety reasons its always better NOT to login as root.
for someone with a lot of *nix exp it is not a problem to remove the safety ( think of it as a "safety" on a loaded gun)
in the hands of a rookie... use your imagination
in the hands of a pro.. a bit different
i root log in every now and then -- it makes some things easer . but it is not something i do all the time
also a terminal login as root is different than running xorg as root
xorg is where the problem lies
for new inexperienced users to turn off SELinux ( or app-guard )- "it's to hard to use" and boot into Gnome as root " because i can not be bothered to type in a password" this is what we want stopped ,we WANT people to LEARN something
I don't see the big issue of having to type su <password> to get root permission. If I wanted to run as root I'd definitely do so without a gui.
But then I've always been doing this. Imagine some kid if someone jests that they should type "rm -rf /", that kid being lazy and logged in as root does this. Or someone compromises his/her system when that person is logged in as root.. Being root in *nix and admin in windoze is kinda different.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.