|
|
|
Regain lost space hidden in trash on external disks
replace exit with sudo -k
otherwise any command someone types prefaced with sudo will execute as root without asking for a password. This happens even if you close the terminal window and make a new one.
Regain lost space hidden in trash on external disks
You can also edit your /etc/sudoers file and add this line to turn off the sudo grace period:
Defaults:ALL timestamp_timeout=0 You'll need to use the "sudo visudo" command to do this. There are a few other things you can do to tighten down the sudo command, such as enabling logging and restricting which users can use it, so interested users may find it useful to also do a "man sudoers" and read about the various options.
Regain lost space hidden in trash on external disks
... for 5 minutes since you originally entered the password, until sudo forgets the password.
Or, alternately, you could just be not paranoid about someone maliciously running a sudo command on your computer within the next 5 minutes while you're distracted somehow, not noticing a stranger on your keyboard and in a terminal in time to prevent them carrying out their evil plan... :-) (whereby they need root access to accomplish their nefarious activities, and for some reason simply deleting your documents isn't sufficiently evil) sudo -k is worth pointing out, for sure - it's good for people to know about - but your post sounds unnecessarily alarmist, to me :-) |
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,476 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.03 seconds |
|