> Quakeboy02
Should be safe since that line should still require a password, however are you certain you don't have any open ports and are not running a service like SSH? Some distributions ship with SSH live and open. Also I once saw a guy do "sudo rm -rf /*" at work... just having to put sudo infront doesn't stop you doing it if your use to typing sudo when doing similar commands. Personally I have never even got anywhere close to executing that command however. Quote:
It's actually safer to have a seperate administrator account and user account (the traditional Windows Method and similarly the method I use on my Mac), however there are applications that actually take advantage of this EXTREMELY bad method of administrating a PC... it's really rather shameless how professional software development companies require administrator rights for their applications for them to be run at all and this is when they are already installed. Quote:
However even so as Jschiwal's post also says, it's a bad thing. I am yet to see what protection this is all suppose to offer anyway. I mean most if not all up-to-date distributions warn you heavily about login in as root on GUI or stop you all together on the and I can't see what on the CLI would be any more open to being logged in as root over using sudo. All I really see coming out of it, is teaching people how to abuse SUDO and not really consider using sudo for things like only giving people the privellages on the indivual commands or scripts that they need. |
one good advice would be
look at the command before you execute it and if you see you have executed something bad (like sudo rm -r /) first try control+C if that fails cut the power |
Quote:
Mostly I was just pointing out that logging in as root is akin to carrying a loaded gun with the safety off. Sudo is like that safety, but if you always use sudo, you get the habit of turning the safety off at any excuse. That's not good, either. In my case, I do very little maintenance work, so I'm not a victim of habit. The few admin things (mostly updates) that need to be done in the GUI force gksu to come up, so I'm protected on that front. You poor buggers that deliberately expose ports to the internet: good luck! :) |
Alot of computers aren't even running a firewall or behind a hardware one... I know where I work it's a part of our policy to enable the OS supplied firewalls by default with necessary ports open, but would you believe some of our customer's rather then put up with the luxery of opening/closing ports on the firewall would rather just turn the damned thing off... I kid you not. I always advise the customers against such actions of course.
Sudo is as much a safety latch as SU or login as root, you don't login as root unless your doing things that need to be ran as root. In reality it doesn't stop you killing a system if you run the wrong command... The only thing that stops that is not doing none root activities as root in the first place. You shouldn't need to be root or have root to remove directories if user settings are set correctly as most of the file system you shouldn't really be touched that often, mostly what you should be touching is in /home and should already be under your control to remove. Quote:
|
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 07:20 PM. |