image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
LinkBack Thread Tools
  #9  
Old December 22nd, 2001, 09:18 AM
houchin's Avatar
Registered User
 
Join Date: Oct 2001
Location: Rochester, NY
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
houchin is on a distinguished road
Don't enable root!

Or just do what almost everyone, includding Apple, recommends: Don't enable the root password. sudo can do everything you need.

use "sudo <cmd>" to just execute single commands, or "sudo -s" to start a new command line shell with root privledges.

By enabling root, you open up a whole lot of security issues, especially for network connected systems (almost all of the sendmail and such hacks rely on the attacker having root access). If you don't enable root access, then all of these attacks are cut off.
Reply With Quote
  #10  
Old December 22nd, 2001, 09:58 AM
Mac fan
 
Join Date: May 2001
Location: Argentina
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
alito is on a distinguished road
Sudo?

what is sudo command?
i have to type sudo?
Reply With Quote
  #11  
Old December 22nd, 2001, 08:52 PM
houchin's Avatar
Registered User
 
Join Date: Oct 2001
Location: Rochester, NY
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
houchin is on a distinguished road
sudo stands for "superuser do"

It allows you to execute other commands as if you were logged in as root.
You log into the system and open terminal as normal. Just put "sudo"
before the command you want to execute as root (or superuser).
For example, to edit the inet config file, you would enter:

sudo vi /etc/inetd.conf

It will then ask you for your password, and you give it your normal password
(as long as you're an admin user). If you "sudo" another command within
a few minutes, it remembers that you've already proved your an admin and you don't have to type your password.

If you have a lot of stuff to do as root, type "sudo -s" as a command all by itself and it starts a new shell as root. Type "exit" when you're done to return to non-root status.

You do not want to enable the root password, because thsi will prevent a lot of security problems which rely on someone logging on as root (like through sendmail)
Reply With Quote
  #12  
Old December 23rd, 2001, 03:25 AM
Registered User
 
Join Date: Dec 2001
Location: Massachusetts
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
ZeroAltitude is on a distinguished road
But what about launching certain GUI apps?

Hi,

The thing I have not yet figured out (just 3 weeks in, forgive me!) is how you'd launch GUI apps from the command line with sudo <command>. I enabled root partly because there were some apps that 'won't run in console mode' but needed to be root to do some of the things I wanted.

I know how to tell X apps how to launch in a running X display, but how do you run Aqua apps from the command line in mac OSX?

-ZeroAltitude
Reply With Quote
  #13  
Old December 23rd, 2001, 08:50 AM
houchin's Avatar
Registered User
 
Join Date: Oct 2001
Location: Rochester, NY
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
houchin is on a distinguished road
You can try:

sudo open -a <app>

For example, to launch BBEdit 6.5 as root, you could enter

sudo open -a "BBEdit 6.5"

(The quotes are only required if there's a space in the application name)

This is the equivalent of double clicking on a file in the finder.

You can also get the shareware app "Pseudo" which does it with a GUI
interface.
Reply With Quote
  #14  
Old March 12th, 2002, 06:46 PM
xoot's Avatar
Got xoot?
 
Join Date: Mar 2002
Location: /Users/xoot
Posts: 1,679
Thanks: 0
Thanked 0 Times in 0 Posts
xoot is on a distinguished road
2 steps to make enabling root EASIER (via Terminal)

1) Type "sudo passwd root" and type in the root password

2) Root user is enabled! Now you can just select the "other user" checkbox in System Preferences and logout. Then, click on other user and type in:

"root" for the login field

Your password for the password field

__________________
the xootblog - weirdness for the masses

"(Insert here)" - xoot

"God really had to go today." - googolplex
Reply With Quote
  #15  
Old March 12th, 2002, 07:12 PM
rezba's Avatar
simpleutilisateurpuissant
 
Join Date: Oct 2001
Location: france
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
rezba is on a distinguished road
yes, but you're log as root for the all session. sudo allows you to temporarily act as root, just for what you need. wich is more secure.
Reply With Quote
  #16  
Old March 12th, 2002, 09:37 PM
xoot's Avatar
Got xoot?
 
Join Date: Mar 2002
Location: /Users/xoot
Posts: 1,679
Thanks: 0
Thanked 0 Times in 0 Posts
xoot is on a distinguished road
I meant logging into the GUI, not into Terminal.
__________________
the xootblog - weirdness for the masses

"(Insert here)" - xoot

"God really had to go today." - googolplex
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A bit of nostalgia: A Salute to Mac OS X simX Apple News, Rumors & Discussion 31 March 24th, 2005 07:45 AM
HP Photosmart 1315 and USB Print Sharing zwheeloc Mac Classic System & Software 12 February 6th, 2003 09:20 PM
Apache 1.3.20, garbled apple_hfs_module jiblet Mac OS X System & Mac Software 23 September 21st, 2001 04:26 PM
Disk image mount problem aufreak Mac OS X System & Mac Software 13 May 10th, 2001 07:52 PM
HORIBLE EVIL BUG, Wrecks computer bfc Mac OS X System & Mac Software 12 October 22nd, 2000 03:52 PM


All times are GMT -5. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.