|
|
Try su
the command "su" is more flexible. You can't login as root, but you can su to root. And when you exit a session after that you initiated with login, your terminal window is dead. When you exit after su, you are returned to your normal shell user account.
Can't Try su
Correct me if I am wrong, but if you are logged in as a non-admin user, you are not allowed to SU. You can still use the sudo command (I think) but of course then you have to type sudo before every command.
Can't Try su
Yes, you sure can su as a normal user. That's who it's for. As root, you can su to _any_ user. So, you can su root, then - as 'Doug' su'd to root, you can su to 'Kathy', too. You can be anybody.
Can't Try su
Forgot about this:
Note of Caution
This is indeed a handy bit of knowledge, but there are a few points that we all need to start taking into consideration, most importantly: security.
I have three machines in my office, two more or less public machines as mentioned in the original post. Even though they are just a couple of feet apart, I will do the same as my students are often sitting at these machines. I can't kick them off just to do something, so I'll connect remotely and then use sudo. As of 10.0.2, ssh is now standard, so it's easy (and secure) to ssh other.machine from my desk, sudo mail, for example, and then log out. The students never know the machine is dually being used, and, more importantly, they have no way of gaining information about root! Logging into root, though handy, is considered insecure as others could gain knowledge of the login information. Telnet and rlogin (both very, very handily used in the past) are also suspect these days in relation to security. Use ssh and sudo (or, if you are doing several things, su), and keep your machines secure. Just a note of caution. Cheers, ptervin
twist on this ...
I'm using my box as a home system and as a webpage development system. |
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.14 seconds |
|