|
|
ssh'ing in as root is a bad idea
Okay, I know this isn't what this post is about, but logging into boxes as root is a just plain bad idea. The first thing you should do when setting up a machine is to disable ssh root login (it's in the .ssh/config file). Login as yourself and then use sudo as needed or in extreem cases /bin/su -. It's a MUCH smarter and safer approach.
ssh'ing in as root is a bad idea
I agree but the given file name/path is incorrect. To disable logging in as root for the SSH server, edit the file /etc/sshd_config
ssh'ing in as root is a bad idea
ironic - just reading this from work, thought it would be a good idea... had to log into root via SSH to change it ;) lol
ssh'ing in as root is a bad idea
Thanks for the config file correction! Sorry about that.
sudo su - is another bad idea
Yeah!!! and fix the sudoers file when you can!
sudo su - is another bad idea
Yes. Also it's a good habit to explicitely run /bin/su -, rather than just su -. Reduces chance of someone throwing another su into the search path and grabbing your password.
sudo su - is another bad idea
No, that's all back to front, surely?
I'd assume that an 'admin' user is allowed to do root operations, and sudo just helps prevent them doing a lot of them by accident. If you don't want a user to be root then don't make them an admin. You can tweak the sudoers file to give them any additional permissions beyond normal. Admittedly Apple's use of 'sudo' here is perhaps a bit non-standard but then the idea of 'admin' users is just about as non-standard. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|